[BUGS] Compile problems with libFoundation, SOPE

Brad Rushworth brad at bravo.net.au
Mon Jun 30 07:56:25 EST 2008


Hey guys,

I've been working on installing SOGo for over a week, slowly fixing 
problems as I see them. This is my current problem and I'm not too 
knowledgeable about how to resolve it.

Does any one have any suggestions about how to fix this?

I'm trying to install SOGo:
http://sogo.opengroupware.org/

Installation roughly as per:
http://sope.opengroupware.org/en/build/thirdparty.html
http://sope.opengroupware.org/en/build/sope.html
http://www.inverse.ca/english/contributions/sogo/documentation.html
http://www.linuxjournal.com/article/9895

Can't find much to help me with a FreeBSD install though. Needed a fair 
bit of customisation so far to make it work on FreeBSD.

Can't use GNUstep-make in the ports because it is v2 whereas SOPE 
requires v1:
http://mail.opengroupware.org/pipermail/sogo/2007-August/000175.html

GNUstep-make v1 is included in the SOPE download.

So far, I have compiled gnustep-make in the sope directory and 
installed. The gnustep-objc didn't come with the download. But I have 
downloaded sope-4.7.1 and thus libFoundation 1.1.x so:
> IMPORTANT: This step must be skipped starting with libFoundation 1.1.x, SOPE 4.5.8 and OGo 1.1.5. In libFoundation 1.1.0 we are using the libobjc provided by the operating system (more exactly GCC).

Now I'm compileing libFoundation. Had to modify the following:

[root at 192_168_1_5 /data/brad/sogo/sope/libFoundation]# diff 
config.h.in.old config.h.in
43c43
< #undef HAVE_SIGSETMASK
---
 > #define HAVE_SIGSETMASK 1
90c90
< #undef HAVE_GETUID
---
 > #define HAVE_GETUID 1
111c111
< #undef HAVE_GETTIMEOFDAY
---
 > #define HAVE_GETTIMEOFDAY 1


Now it compiles but won't link. I had to install the port 
lang/gnustep-objc which amongst other things installed 
/root/GNUstep/Library/Libraries/libobjc.so

Unfortunately, this port is marked IGNORE and I had to remove the IGNORE 
from the makefile to make it compile.
http://www.freshports.org/lang/gnustep-objc/

Now that's done, I get this:


[root at 192_168_1_5 /data/brad/sogo/sope/libFoundation]# gmake debug=yes
Making all in Foundation...
gmake[1]: Entering directory `/data/brad/sogo/sope/libFoundation/Foundation'
Making all for library libFoundation...
gmake[2]: Nothing to be done for `internal-library-all'.
gmake[1]: Leaving directory `/data/brad/sogo/sope/libFoundation/Foundation'
Making all in Resources...
gmake[1]: Entering directory `/data/brad/sogo/sope/libFoundation/Resources'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/data/brad/sogo/sope/libFoundation/Resources'
Making all in examples...
gmake[1]: Entering directory `/data/brad/sogo/sope/libFoundation/examples'
Making all for tool Defaults...
  Linking tool Defaults ...
/root/GNUstep/Library/Libraries/libobjc.so: undefined reference to 
`pthread_attr_destroy'
/root/GNUstep/Library/Libraries/libobjc.so: undefined reference to 
`pthread_create'
/root/GNUstep/Library/Libraries/libobjc.so: undefined reference to 
`pthread_attr_init'
/root/GNUstep/Library/Libraries/libobjc.so: undefined reference to 
`pthread_exit'
/root/GNUstep/Library/Libraries/libobjc.so: undefined reference to 
`pthread_getschedparam'
/root/GNUstep/Library/Libraries/libobjc.so: undefined reference to 
`pthread_attr_setscope'
/root/GNUstep/Library/Libraries/libobjc.so: undefined reference to 
`pthread_attr_setdetachstate'
gmake[2]: *** [shared_debug_obj/./GNU/Defaults] Error 1
gmake[1]: *** [Defaults.all.tool.variables] Error 2
gmake[1]: Leaving directory `/data/brad/sogo/sope/libFoundation/examples'
gmake: *** [internal-all] Error 2




[root at 192_168_1_5 /data/brad/sogo/sope/libFoundation]# objdump -x 
/root/GNUstep/Library/Libraries/libobjc.so | grep pthread
00000000         *UND*  00000000 pthread_cond_signal
00000000         *UND*  00000000 pthread_attr_destroy
00000000         *UND*  00000000 pthread_create
00000000         *UND*  00000000 pthread_getspecific
00000000         *UND*  00000000 pthread_attr_init
00000000         *UND*  00000000 pthread_exit
00000000         *UND*  00000000 pthread_key_delete
00000000         *UND*  00000000 pthread_getschedparam
00000000         *UND*  00000000 pthread_attr_setscope
00000000         *UND*  00000000 pthread_cond_broadcast
00000000         *UND*  00000000 pthread_key_create
00000000         *UND*  00000000 pthread_cond_init
00000000         *UND*  00000000 pthread_mutex_unlock
00000000         *UND*  00000000 pthread_self
00000000         *UND*  00000000 pthread_mutex_destroy
00000000         *UND*  00000000 pthread_mutex_lock
00000000         *UND*  00000000 pthread_cond_wait
00000000         *UND*  00000000 pthread_mutex_trylock
00000000         *UND*  00000000 pthread_cond_destroy
00000000         *UND*  00000000 pthread_mutex_init
00000000         *UND*  00000000 pthread_attr_setdetachstate
00000000         *UND*  00000000 pthread_setspecific



[root at 192_168_1_5 /data/brad/sogo/sope/libFoundation]# objdump -x 
/root/GNUstep/Library/Libraries/libobjc.so | grep UND
00000000         *UND*  00000000 strcpy
00000000         *UND*  00000000 pthread_cond_signal
00000000         *UND*  00000000 printf
00000000         *UND*  00000000 pthread_attr_destroy
00000000         *UND*  00000000 pthread_create
00000000         *UND*  00000000 pthread_getspecific
00000000         *UND*  00000000 pthread_attr_init
00000000         *UND*  00000000 pthread_exit
00000000         *UND*  00000000 pthread_key_delete
00000000         *UND*  00000000 memcpy
00000000         *UND*  00000000 __stderrp
00000000         *UND*  00000000 puts
00000000  w      *UND*  00000000 __cxa_finalize
00000000         *UND*  00000000 feof
00000000         *UND*  00000000 malloc
00000000         *UND*  00000000 fflush
00000000         *UND*  00000000 abort
00000000         *UND*  00000000 _DefaultRuneLocale
00000000         *UND*  00000000 pthread_getschedparam
00000000         *UND*  00000000 calloc
00000000         *UND*  00000000 pthread_attr_setscope
00000000         *UND*  00000000 pthread_cond_broadcast
00000000  w      *UND*  00000000 __deregister_frame_info
00000000         *UND*  00000000 pthread_key_create
00000000         *UND*  00000000 realloc
00000000         *UND*  00000000 pthread_cond_init
00000000         *UND*  00000000 sscanf
00000000         *UND*  00000000 fread
00000000         *UND*  00000000 fopen
00000000         *UND*  00000000 __isthreaded
00000000         *UND*  00000000 memset
00000000         *UND*  00000000 fclose
00000000         *UND*  00000000 strcmp
00000000         *UND*  00000000 pthread_mutex_unlock
00000000         *UND*  00000000 sprintf
00000000         *UND*  00000000 pthread_self
00000000         *UND*  00000000 fwrite
00000000         *UND*  00000000 pthread_mutex_destroy
00000000         *UND*  00000000 pthread_mutex_lock
00000000         *UND*  00000000 pthread_cond_wait
00000000         *UND*  00000000 pthread_mutex_trylock
00000000         *UND*  00000000 atoi
00000000         *UND*  00000000 pthread_cond_destroy
00000000         *UND*  00000000 pthread_mutex_init
00000000         *UND*  00000000 __assert
00000000  w      *UND*  00000000 _Jv_RegisterClasses
00000000         *UND*  00000000 pthread_attr_setdetachstate
00000000         *UND*  00000000 sched_yield
00000000  w      *UND*  00000000 __register_frame_info
00000000         *UND*  00000000 vfprintf
00000000         *UND*  00000000 pthread_setspecific
00000000         *UND*  00000000 free



Any suggestions highly appreciated....


Brad


More information about the BUGS mailing list