From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10eb76,3034d6e528afdbe9,start X-Google-Attributes: gid10eb76,public X-Google-Thread: fee84,3034d6e528afdbe9,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-02-25 09:09:45 PST Xref: gmd.de comp.unix.osf.osf1:2323 comp.lang.tcl:11124 Newsgroups: comp.unix.osf.osf1,comp.lang.tcl Path: gmd.de!xlink.net!sol.ctr.columbia.edu!usc!cs.utexas.edu!swrinde!sgiblab!munnari.oz.au!yarra-glen.aaii.oz.au!anthony From: anthony@aaii.oz.au (Anthony Baxter) Subject: Making a shared libtcl on DEC Alpha OSF/1 Message-ID: Sender: usenet@yarra-glen.aaii.oz.au (Network News) Organization: Australian Artificial Intelligence Institute Date: Thu, 24 Feb 1994 03:04:01 GMT 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.