Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: anthony@aaii.oz.au (Anthony Baxter)
Subject: Making a shared libtcl on DEC Alpha OSF/1
Date: Thu, 24 Feb 1994 03:04:01 GMT	[thread overview]
Message-ID: <anthony.762059041@eden-valley> (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.


             reply	other threads:[~1994-02-24  3:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-02-24  3:04 Anthony Baxter [this message]
1994-02-24 16:37 ` Making a shared libtcl on DEC Alpha OSF/1 David J. MacKenzie
read-only archive

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