Eric Brunel - 2008-10-30

Hi Aki,

I had the same problem trying to build a Python module using the libdparse.a library on Solaris. It seems 'gcc -shared' passes some weird options to Solaris's 'ld', which makes it fail. I solved the problem by calling 'ld' directly, with the -dy and -G options. In your case, the command would be:

ld -dy -G build/temp.solaris-2.9-sun4u-2.4/dparser_wrap.o
build/temp.solaris-2.9-sun4u-2.4/pydparser.o
build/temp.solaris-2.9-sun4u-2.4/make_tables.o -L../ -lmkdparse -ldparse -o
build/lib.solaris-2.9-sun4u-2.4/dparser_swigc.so

Don't know if it's applicable in your case, or if you can use the same options (I'm on Solaris 8). You might also have to try different orders for the object files and the libraries on the command line, as it seems significant for 'ld'.

HTH anyway.