Hi - there appears to be problem with building shared libraries
for LAM-7.1.1 on Solaris 8/Intel using gcc 3.4.3 and the Solaris's
ld.
Enclosed is the configure script, error message, and a nm listing
of the incomplete shared library created in the .libs directory.
If I remove the --enable-shared option for the configure script
LAM builds and installs without any problems.
Any help would greatly appreciated!
-- Ken
configure script:
----------------
#!/bin/sh
CC="/usr/devtools/bin/gcc"
LDFLAGS="-R/usr/lam/lib -R/usr/devtools/lib"
FC=/usr/devtools/bin/g77
PATH="/usr/devtools/bin:/usr/ccs/bin:/usr/bin:"
export CC FC LDFLAGS LD_LIBRARY_PATH PATH
make distclean
rm -f config.cache
./configure --prefix=/usr/lam \
--enable-shared \
--with-fc=g77 \
--with-mpi-stubs \
--with-trillium
make
error message:
-------------
Making all in bfctl
make[2]: Entering directory `/usr/lam/src/lam-7.1.1/otb/bfctl'
if /usr/devtools/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../../share/include
-I../../share/include -DLAM_BUILDING=1 -D_REENTRANT -O3 -MT bfctl.o -MD -MP
-MF ".deps/bfctl.Tpo" -c -o bfctl.o bfctl.c; \
then mv -f ".deps/bfctl.Tpo" ".deps/bfctl.Po"; else rm -f ".deps/bfctl.Tpo";
exit 1; fi
/bin/bash ../../libtool --mode=link /usr/devtools/bin/gcc -O3 -R/usr/lam/lib
-R/usr/devtools/lib -o bfctl bfctl.o ../../share/liblam/liblam.la -lsocket
-lnsl -lthread -lthread
mkdir .libs
/usr/devtools/bin/gcc -O3 -o .libs/bfctl bfctl.o
../../share/liblam/.libs/liblam.so -ldl -lsocket -lnsl -lthread -R/usr/lam/lib
-R/usr/devtools/lib
Undefined first referenced
symbol in file
kexit bfctl.o
kinit bfctl.o
lamfail bfctl.o
nid_get bfctl.o
ao_parse bfctl.o
ao_taken bfctl.o
ao_intparam bfctl.o
ao_setopt bfctl.o
show_help bfctl.o
ao_init bfctl.o
rbfparms bfctl.o
rbfsweep bfctl.o
nid_parse bfctl.o
nid_usage bfctl.o
rbfsweep1 bfctl.o
ld: fatal: Symbol referencing errors. No output written to .libs/bfctl
collect2: ld returned 1 exit status
make[2]: *** [bfctl] Error 1
make[2]: Leaving directory `/usr/lam/src/lam-7.1.1/otb/bfctl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/lam/src/lam-7.1.1/otb'
make: *** [all-recursive] Error 1
liblam.so.0.0.0:
---------------
[Index] Value Size Type Bind Other Shndx Name
[27] | 0| 0|SECT |LOCL |0 |26 |
[28] | 0| 0|SECT |LOCL |0 |27 |
[25] | 0| 0|SECT |LOCL |0 |24 |
[24] | 0| 0|SECT |LOCL |0 |23 |
[23] | 0| 0|SECT |LOCL |0 |22 |
[22] | 67048| 0|SECT |LOCL |0 |21 |
[21] | 67044| 0|SECT |LOCL |0 |20 |
[20] | 67040| 0|SECT |LOCL |0 |19 |
[19] | 67036| 0|SECT |LOCL |0 |18 |
[18] | 67032| 0|SECT |LOCL |0 |17 |
[17] | 67024| 0|SECT |LOCL |0 |16 |
[16] | 67016| 0|SECT |LOCL |0 |15 |
[15] | 66792| 0|SECT |LOCL |0 |14 |
[14] | 66756| 0|SECT |LOCL |0 |13 |
[13] | 1216| 0|SECT |LOCL |0 |12 |
[12] | 1207| 0|SECT |LOCL |0 |11 |
[11] | 1194| 0|SECT |LOCL |0 |10 |
[10] | 936| 0|SECT |LOCL |0 |9 |
[9] | 872| 0|SECT |LOCL |0 |8 |
[8] | 848| 0|SECT |LOCL |0 |7 |
[7] | 840| 0|SECT |LOCL |0 |6 |
[6] | 816| 0|SECT |LOCL |0 |5 |
[5] | 784| 0|SECT |LOCL |0 |4 |
[4] | 488| 0|SECT |LOCL |0 |3 |
[3] | 264| 0|SECT |LOCL |0 |2 |
[2] | 148| 0|SECT |LOCL |0 |1 |
[26] | 0| 0|SECT |LOCL |0 |25 |
[1] | 0| 0|FILE |LOCL |0 |ABS |.libs/liblam.so.0.0.0
[57] | 66792| 0|OBJT |GLOB |0 |14 |_DYNAMIC
[29] | 67076| 0|OBJT |LOCL |0 |21 |_END_
[53] | 66756| 0|OBJT |GLOB |0 |13 |_GLOBAL_OFFSET_TABLE_
[58] | 0| 0|NOTY |WEAK |0 |UNDEF |_Jv_RegisterClasses
[60] | 872| 0|OBJT |GLOB |0 |8 |_PROCEDURE_LINKAGE_TABLE_
[30] | 0| 0|OBJT |LOCL |0 |1 |_START_
[44] | 67020| 0|OBJT |LOCL |0 |15 |__CTOR_END__
[34] | 67016| 0|OBJT |LOCL |0 |15 |__CTOR_LIST__
[45] | 67028| 0|OBJT |LOCL |0 |16 |__DTOR_END__
[35] | 67024| 0|OBJT |LOCL |0 |16 |__DTOR_LIST__
[36] | 67032| 0|OBJT |LOCL |0 |17 |__EH_FRAME_BEGIN__
[46] | 67032| 0|OBJT |LOCL |0 |17 |__FRAME_END__
[47] | 67036| 0|OBJT |LOCL |0 |18 |__JCR_END__
[37] | 67036| 0|OBJT |LOCL |0 |18 |__JCR_LIST__
[59] | 0| 0|FUNC |WEAK |0 |UNDEF
|__deregister_frame_info_bases
[48] | 1144| 0|FUNC |LOCL |0 |9 |__do_global_ctors_aux
[40] | 936| 0|FUNC |LOCL |0 |9 |__do_global_dtors_aux
[55] | 67040| 0|OBJT |GLOB |0 |19 |__dso_handle
[61] | 0| 0|FUNC |WEAK |0 |UNDEF
|__register_frame_info_bases
[51] | 67048| 0|OBJT |GLOB |0 |20 |_edata
[54] | 67076| 0|OBJT |GLOB |0 |21 |_end
[56] | 1220| 0|OBJT |GLOB |0 |12 |_etext
[62] | 1207| 8|FUNC |GLOB |0 |11 |_fini
[52] | 1194| 13|FUNC |GLOB |0 |10 |_init
[50] | 1216| 4|OBJT |GLOB |0 |12 |_lib_version
[39] | 67048| 1|OBJT |LOCL |0 |21 |completed.1
[31] | 0| 0|FILE |LOCL |0 |ABS |crti.s
[49] | 0| 0|FILE |LOCL |0 |ABS |crtn.o
[43] | 0| 0|FILE |LOCL |0 |ABS |crtstuff.c
[33] | 0| 0|FILE |LOCL |0 |ABS |crtstuff.c
[42] | 1032| 0|FUNC |LOCL |0 |9 |frame_dummy
[41] | 67052| 24|OBJT |LOCL |0 |21 |object.2
[38] | 67044| 0|OBJT |LOCL |0 |20 |p.0
[32] | 0| 0|FILE |LOCL |0 |ABS |values-Xa.c
--
"We are drowning in information and starving for knowledge."
- Rutherford D. Roger
|