Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

undefined symbol hell

0 views
Skip to first unread message

Dave Yeo

unread,
Oct 16, 2009, 8:11:34 PM10/16/09
to
Hi, I'm trying to build Illya Vaes port of tcl-8.3.5 (Hobbes) with klibc
(GCC 3.3.5). It builds fine with EMX but with klibc I get undefined
symbols errors, eg
I:\usr\src\TK\tcl8.3.5\os2\tclStubInit.o(tclStubInit.o) : error LNK2029:
"_TclOS2OpenSerialChannel" : unresolved external
I:\usr\src\TK\tcl8.3.5\os2\strftime.o(strftime.o) : error LNK2029:
"_TclpGetTZName" : unresolved external
I:\usr\src\TK\tcl8.3.5\os2\tclStubInit.o(tclStubInit.o) : error LNK2029:
"_TclpGetTZName" : unresolved external
...
There were 14 errors detected
make: *** [tcl83.dll] Error 1

Looking at the autogenerated DEF file all these symbols are missing a
leading underscore. So I added them and got

ILink : error LNK2022: _TclOS2OpenFileChannel (alias
_TclOS2OpenFileChannel) : export undefined
ILink : error LNK2022: _TclOS2GetHAB (alias _TclOS2GetHAB) : export
undefined
ILink : error LNK2022: _TclpGetPid (alias _TclpGetPid) : export undefined
...

Next I tried changing the DEF file to use alias's like
TclOS2OpenSerialChannel=_TclOS2OpenSerialChannel
and also vice versa which gave these errors
weakld: I:\usr\src\TK\tcl8.3.5\os2\tclStubInit.o - error: Duplicate
symbol '_TclOS2OpenFileChannel' ('_TclOS2OpenFileChannel').
gcc: Internal error: Trace/BPT trap (program emxomfld.exe)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [tcl83.dll] Error 1

I have no idea how to overcome this and get the DLL to link, wondering
if anyone has any ideas
Dave

Message has been deleted
0 new messages