Re: Help building on AIX 4.2.1.0




Craig.Emery@ft.com (Craig Emery) writes:

> 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:

> 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

[...]

> 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?

libtool, at least until quite recently, didn't do a very
good job with AIX,  so maybe yes... Actually, there were
also some problems with getting dlloaded modules built
to work with libgmodule on AIX, so I'm not sure gmodule
work even if it links.

But one thing you can try is removing the '#' in the
following line in gmodule/Makefile.am and then re-running automake,
reconfiguring and rebuilding. (See the file HACKING for
instructions on getting automake). 

===
libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
# we should really depend on $(libglib) for libgmodule.la, but libtool has a
# problem with this ;(
===

That might just work with the latest versions of libtool.

Regards,
                                        Owen




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