On Sun, 1 Aug 2004, Norman Gray wrote:
> It _should_ work now.... But if not, it'll have to be tomorrow.
Thanks. Works now.
And, building shared libraries does actually happen now. Thanks.
I see that -single_module is now added by default (it's only really
needed if common blocks are used but it's clearly simpler to always add
it) but it doesn't really do any harm.
CHR builds fine but I'm currently having problems linking hds to chr (ie
install dynamic chr, then try to build hds (hds_machine)):
/bin/sh ./libtool --mode=link g77 -Wall -I/Users/timj/star/include
-fno-second-underscore -L/Users/timj/star/lib -o hds_machine
hds_machine.o libhds.la `ems_link` `chr_link` `cnf_link` -L/usr/lib -lgcc
g77 -Wall -I/Users/timj/star/include -fno-second-underscore -o
.libs/hds_machine hds_machine.o -L/Users/timj/star/lib
./.libs/libhds.dylib /Users/timj/star/lib/libemsf.dylib -L/usr/lib
/Users/timj/star/lib/libems.dylib /Users/timj/star/lib/libchr
/Users/timj/star/lib/libcnf.dylib -lgcc
/usr/bin/ld: multiple definitions of symbol _s_copy
./.libs/libhds.dylib(single module) definition of _s_copy
/Users/timj/star/lib/libchr(single module) definition of _s_copy
/usr/bin/ld: multiple definitions of symbol _i_indx
./.libs/libhds.dylib(single module) definition of _i_indx
/Users/timj/star/lib/libchr(single module) definition of _i_indx
/usr/bin/ld: multiple definitions of symbol _s_cmp
./.libs/libhds.dylib(single module) definition of _s_cmp
/Users/timj/star/lib/libchr(single module) definition of _s_cmp
collect2: ld returned 1 exit status
make[1]: *** [hds_machine] Error 1
make: *** [all] Error 2
It seems like libg2c.a is being linked into the shared library
and then included by the g77 link itself. Strange thing is that
libchr.dylib doesn't include a definition for _s_cmp despite the error
message. But .libs/libhds.dylib does include a _s_cmp definition.
Strange.
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|