Help building on AIX 4.2.1.0



Dear All,

I'm having great trouble making glib 1.2.1 under AIX 4.2.1.0 using CSet++ 3.1.4 
(via a symbolic link named cc).

running configure with just --prefix, --x-includes and --x-libraries switches 
and then a simple make ends up (after successfully compiling loads of .o files) 
producing (and ending with) the following output:


Making all in gmodule
/galileo/work_area/nce/download/gimp/glib-1.2.1/gmodule
        /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. 
-I../gmodule     -DG_LOG_DOMAIN=g_log_domain_gmodule 
    -g  -D_REENTRANT -D_THREAD_SAFE -c gmodule.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gmodule 
-DG_LOG_DOMAIN=g_log_domain_gmodule -g -D_REENTRANT -D_THREAD_SAFE -c  -DPIC 
gmodu
le.c -o gmodule.lo
        /bin/sh ../libtool --mode=link cc  -g  -D_REENTRANT -D_THREAD_SAFE  -o 
libgmodule.la -rpath /galileo/work_area/nce/dist/gtk+
+/lib -version-info 0:1:0       -release 1.2 gmodule.lo -ldl  
mkdir .libs
generating symbol list for `libgmodule.la'
/usr/bin/nm -B  gmodule.o  | sed -n -e 's/^.*[  ]\([BCDT]\)[    ][      
]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | sed 's/.* 
//' | sort | uniq > .libs/libgmodule.exp
cc -o .libs/libgmodule-1.2.so.0.0.1  gmodule.o   -ldl -lc  
-bE:.libs/libgmodule.exp -bM:SRE -bnoentry
ld: 0711-317 ERROR: Undefined symbol: g_threads_got_initialized
ld: 0711-317 ERROR: Undefined symbol: g_thread_use_default_impl
ld: 0711-317 ERROR: Undefined symbol: .g_static_mutex_get_mutex_impl
ld: 0711-317 ERROR: Undefined symbol: g_thread_functions_for_glib_use
ld: 0711-317 ERROR: Undefined symbol: .g_strdup
ld: 0711-317 ERROR: Undefined symbol: g_free
ld: 0711-317 ERROR: Undefined symbol: .g_static_private_set
ld: 0711-317 ERROR: Undefined symbol: .g_strconcat
ld: 0711-317 ERROR: Undefined symbol: .g_log
ld: 0711-317 ERROR: Undefined symbol: .g_free
ld: 0711-317 ERROR: Undefined symbol: .g_static_private_get
ld: 0711-317 ERROR: Undefined symbol: .g_malloc
ld: 0711-317 ERROR: Undefined symbol: .g_logv
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: 1254-004 The error code from the last command is 8.

The contents of gmodule/.libs/libgmodule.exp are:
g_log_domain_gmodule
g_module_build_path
g_module_close
g_module_error
g_module_make_resident
g_module_name
g_module_open
g_module_supported
g_module_symbol


It's my understanding that to use xlc to produce object files with unresolved 
symbols, one uses the -r switch, but I tried manually adding this switch in 
libtool to the cc line and got some **really** weird errors.

Should I try and add the built .o files that have these symbols in them, or 
could there be something wrong with my libtool?

Any help gratefully received.

Craig Emery.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]