pdftex1.21a build, linker problem
![](https://secure.gravatar.com/avatar/a0bd5cf8256da35c57e1e7174a9657fc.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/65c6b74fd4fb8d79a653d0b87beeb594.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/b6331822ffe41d6f43aa40081bf7eaca.jpg?s=120&d=mm&r=g)
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.)
![](https://secure.gravatar.com/avatar/0646d707890c65d32c01e7956f6fbdea.jpg?s=120&d=mm&r=g)
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