This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

trouble building libgcj on FreeBSD 2.2.7



I've got a fresh CVS checkout from earlier today.  egcs built without
a hitch, but I get an error trying to build libgcj:

c++ -DHAVE_CONFIG_H -I. -I../../../libgcj/libjava -I./include -Iinclude -I../../../libgcj/libjava/include -I../../../libgcj/libjava/../boehm-gc -I./../boehm-gc -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1 -I../../../libgcj/libjava/../compat-include -fno-rtti -fvtable-thunks -W -Wall -g -O2 -Wp,-MD,.deps/posix-threads.pp -c  -fPIC -DPIC ../../../libgcj/libjava/posix-threads.cc -o .libs/posix-threads.lo
../../../libgcj/libjava/posix-threads.cc: In function `void _Jv_ThreadCancel(_Jv_Thread_t *, void *)':
../../../libgcj/libjava/posix-threads.cc:277: implicit declaration of function `int pthread_cancel(...)'
gmake[2]: *** [posix-threads.lo] Error 1
gmake[2]: Leaving directory `/usr/home/pizzazon/tmp/libgcj-build/i386-unknown-freebsd2.2.7/libjava'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/pizzazon/tmp/libgcj-build/i386-unknown-freebsd2.2.7/libjava'
gmake: *** [all-target-libjava] Error 2


My config.status:
../libgcj/configure --host=i386-unknown-freebsd2.2.7 --prefix=/usr/home/pizzazon/egcs --enable-java-gc=boehm --enable-threads=posix --enable-fast-character --norecursion 

egcs was also built with --enable-threads=posix

I tried configuring and building libgcj without --enable-threads=posix 
but got the same error.  I didn't try rebuilding egcs without it
though.  Of course, I would rather have thread support.


Does someone clueful know what I should do to fix this, or where I
should start looking?

I'd also be happy with building FreeBSD executables and libraries on
my Linux machine, but I'm similarly clueless about how to do that, or
how complicated it would be to set up.  How much trouble would it be?
Where's a good place to start learning about how to do that?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]