pdftex1.21a build, linker problem
Aloha, i'm building pdftex on a sort-of standard sparc-sun-solaris2.8. I get a linker problem in building ctangleboot ... /bin/sh ../libtool --mode=link gcc -o ctangleboot ctangleboot.o cwebboot.o lib/lib.a ../kpathsea/libkpathsea.la -lm gcc -o ctangleboot ctangleboot.o cwebboot.o lib/lib.a ../kpathsea/.libs/libkpathsea.a -lm ld: fatal: symbol `main' is multiply-defined: (file ctangleboot.o and file lib/lib.a(main.o)); ld: fatal: File processing errors. No output written to ctangleboot collect2: ld returned 1 exit status gmake: *** [ctangleboot] Error 1 It seems, that the build process is assuming a ld that quietly suppresses multiply defined objects. This shouldn't be so. Wishing a happy day LOBI
On 2005-02-08 15:09:02 +0100, andreas.lobinger@freenet.de wrote:
i'm building pdftex on a sort-of standard sparc-sun-solaris2.8. I get a linker problem in building ctangleboot ... /bin/sh ../libtool --mode=link gcc -o ctangleboot ctangleboot.o cwebboot.o lib/lib.a ../kpathsea/libkpathsea.la -lm gcc -o ctangleboot ctangleboot.o cwebboot.o lib/lib.a ../kpathsea/.libs/ libkpathsea.a -lm ld: fatal: symbol `main' is multiply-defined: (file ctangleboot.o and file lib/lib.a(main.o)); ld: fatal: File processing errors. No output written to ctangleboot collect2: ld returned 1 exit status gmake: *** [ctangleboot] Error 1
It seems, that the build process is assuming a ld that quietly suppresses multiply defined objects.
Olaf? Best regards Martin -- Martin Schröder, ms@artcom-gmbh.de ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany Voice +49 421 20419-44 / Fax +49 421 20419-10 http://www.artcom-gmbh.de
Martin Schröder writes:
On 2005-02-08 15:09:02 +0100, andreas.lobinger@freenet.de wrote:
i'm building pdftex on a sort-of standard sparc-sun-solaris2.8. I get a linker problem in building ctangleboot ... /bin/sh ../libtool --mode=link gcc -o ctangleboot ctangleboot.o cwebboot.o lib/lib.a ../kpathsea/libkpathsea.la -lm gcc -o ctangleboot ctangleboot.o cwebboot.o lib/lib.a ../kpathsea/.libs/ libkpathsea.a -lm ld: fatal: symbol `main' is multiply-defined: (file ctangleboot.o and file lib/lib.a(main.o)); ld: fatal: File processing errors. No output written to ctangleboot collect2: ld returned 1 exit status gmake: *** [ctangleboot] Error 1
It seems, that the build process is assuming a ld that quietly suppresses multiply defined objects.
Olaf?
That's likely true. Not sure yet how I'm going to fix this... -- Olaf Weber (This space left blank for technical reasons.)
It seems, that the build process is assuming a ld that quietly suppresses multiply defined objects.
That's likely true. Not sure yet how I'm going to fix this...
Look at xdvik as it is included in teTeX-3.0. There, we have a check whether multiple definitions are allowed. That could be used for adding #ifdef's in the C files (protecting main()). Thomas
participants (4)
-
andreas.lobinger@freenet.de
-
Martin Schröder
-
Olaf Weber
-
Thomas Esser