Skip to main content

Building PCSL with javacall

1 reply [Last post]
chukmunnlee
Offline
Joined: 2004-01-14

Hi all,

I'm trying to build PCSL with javacall. I've successfully build javacall. For PCSL I have the following settings:

export ENABLE_PCSL=true
export PCSL_OUTPUT_DIR=$JVMBuildSpace/pcsl
export PCSL_PLATFORM=javacall_i386_gcc

export FILE_MODULE="javacall" #"posix"
export MEMORY_MODILE="malloc"
export NETWORK_MODULE="javacall" #"bsd/generic"
export PRINT_MODULE="javacall" #"stdout"
export STRING_MODULE="utf16"

The build wasn't the problem. But when I tried to test it with donuts 'make donuts', there were a bunch of undefine refs to javacall like the one below

pcsl_memory.c:(.text+0x34f): undefined reference to `javacall_memory_heap_allocate'
collect2: ld returned 1 exit status
make[1]: *** [/home/homebrew/src/pmef/build_output/pcsl/javacall_i386/bin/donuts] Error 1
make[1]: Leaving directory `/home/homebrew/src/pmef/pcsl/donuts'
make: *** [donuts] Error 2

So what I did was I added the following to pcsl/donuts/GNUmakefile
ifndef DONUTS_LIBS
DONUTS_LIBS = $(OUTPUT_LIB_DIR)/libpcsl_print$(LIB_EXT) \
$(OUTPUT_LIB_DIR)/libpcsl_file$(LIB_EXT) \
$(OUTPUT_LIB_DIR)/libpcsl_memory$(LIB_EXT) \
$(OUTPUT_LIB_DIR)/libpcsl_string$(LIB_EXT) \
$(OUTPUT_LIB_DIR)/libpcsl_network$(LIB_EXT) \
$(JAVACALL_OUTPUT_DIR)/lib/libjavacall.a <------- added this

Donuts compile without any problem. My question is is this the correct way to build donuts or am I missing some other settings for PCSL and donuts.

TIA

Regards
Chuk

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
yevgenydiomidov
Offline
Joined: 2006-08-07

Hi, Chuk,

You did all right. Appropriate PCSL makefile(s) should be fixed.

Thank you for your input,
Yevgeny