Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Making a shared libtcl on DEC Alpha OSF/1
@ 1994-02-24  3:04 Anthony Baxter
  1994-02-24 16:37 ` David J. MacKenzie
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony Baxter @ 1994-02-24  3:04 UTC (permalink / raw)


Hiya.

Has anyone been able to build a shared libtcl.so for DEC Alpha machines?
My initial attempts failed, because libtcl seems to contain its own 'main' 
function.

transcript:
alamein/root/271 # ld -shared -no_archive -o libtcl.so -all libtcl.a -none -lm -lc  
ld:
Warning: Unresolved:
Tcl_AppInit
alamein/root/272 # cp libtcl.so /usr/local/lib
alamein/root/273 # cc -O -I. -I. -DHAVE_UNISTD_H=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DTCL_LIBRARY=\"/usr/local/lib/tcl\" tclAppInit.o -L/usr/local/lib -ltcl -lm -o tclsh
alamein/root/274 # ldd tclsh
        libtcl.so ()  => /usr/local/lib/libtcl.so
        libm.so (osf.1)  => /usr/shlib/libm.so
        libc.so (osf.1)  => /usr/shlib/libc.so
alamein/root/275 # ./tclsh
16408:./tclsh: /sbin/loader: Fatal Error: search_for_undefineds: symbol main should not have any relocation entry

Is there a problem with _not_ including tclMain.o in the library, but
instead including on the command line? I notice theres some other stuff in
tclMain.c, apart from main() - can this be split off into a seperate file?

Thanks,
Anthony
--
anthony baxter @ /\/\||   |= Sarah McLachlan mailing =| australian artificial 
email: anthony@aaii.oz.au |= list: mail fte-request@ =| intelligence institute
phone: +613 663 7922      |= yoyo.cc.monash.edu.au.  =| 1 grattan st, carlton  
Practice random kindness and senseless acts of sarcasm.    australia 3053.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-02-24 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-24  3:04 Making a shared libtcl on DEC Alpha OSF/1 Anthony Baxter
1994-02-24 16:37 ` David J. MacKenzie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox