From owner-freebsd-doc Tue Dec 15 05:55:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA00394 for freebsd-doc-outgoing; Tue, 15 Dec 1998 05:55:07 -0800 (PST) (envelope-from owner-freebsd-doc@FreeBSD.ORG) Received: from oitunix.oit.umass.edu (nscs46p6.remote.umass.edu [128.119.180.28]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA00389 for ; Tue, 15 Dec 1998 05:55:03 -0800 (PST) (envelope-from gp@oitunix.oit.umass.edu) Received: (from gp@localhost) by oitunix.oit.umass.edu (8.9.1/8.9.1) id IAA18086 for freebsd-doc@freebsd.org; Tue, 15 Dec 1998 08:55:23 -0500 (EST) (envelope-from gp) Date: Tue, 15 Dec 1998 08:55:23 -0500 From: Greg Pavelcak To: freebsd-doc@FreeBSD.ORG Subject: Problems compiling teTeX-beta Message-ID: <19981215085523.D17938@oitunix.oit.umass.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95i Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I posted here and to ports about difficulty I was having compiling teTeX-beta. I apparently missed some mails, but someone pointed out to me that this question had been answered on ports before. Since some other people have written to me asking what I found out, and even more who are helping out on the doc project may be interested, here is a relevant posting from the freebsd-ports archive: >I was trying to build the teTeX-beta port (tetex-0.9-981113) under >FreeBSD 3.0-ELF, when ld failed showing the following messages: > >cc -o oxdvi.bin xdvi.o dvi_draw.o dvi_init.o events.o font_open.o gf.o pk.o psdps.o psgs.o psheader.o psnews.o special.o util.o vf.o sfDir.o sfDraw.o sfPath.o sfSelFile.o hypertex.o mime.o wwwfetch.o -L/usr/local/lib -lwww -L/usr/X11R6/lib -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 ../kpathsea/STATIC/libkpathsea.a -lm >/usr/local/lib/libwww.so: undefined reference to `HText_endAnchor' >/usr/local/lib/libwww.so: undefined reference to `HText_appendParagraph' >/usr/local/lib/libwww.so: undefined reference to `HText_appendLink' >/usr/local/lib/libwww.so: undefined reference to `HText_appendObject' >/usr/local/lib/libwww.so: undefined reference to `HText_appendText' >/usr/local/lib/libwww.so: undefined reference to `HText_endAppend' >/usr/local/lib/libwww.so: undefined reference to `HText_beginAnchor' >/usr/local/lib/libwww.so: undefined reference to `HText_beginAppend' >/usr/local/lib/libwww.so: undefined reference to `HText_setStyle' >/usr/local/lib/libwww.so: undefined reference to `HText_appendImage' >/usr/local/lib/libwww.so: undefined reference to `HText_appendCharacter' >/usr/local/lib/libwww.so: undefined reference to `HText_new2' >gmake[2]: *** [oxdvi.bin] Error 1 > >Previously I had built the libwww-5.2 port without any problems. >A few days ago, I built the same teTeX port succesfully on another >machine, this time running 2.2.8-STABLE (obviously a.out). > >If I move libwww.so to another place, and then I build teTeX again, >everything works fine (i.e., linking with the libwww static library >works). > >I made a little test, compiling and linking a tiny "Hello, world" >program with libwww, and I also got the same error messages; but when >compiled using the -static flag, the program was linked fine. > >Then I switched to examine the libwww sources. Under the "Library/src" >subdirectory I found a file named "HTextImp.h" which defines all the >functions which cause the linking errors. At the beginning of this >file there is a very interesting comment: > > If you are not using the libwww HTML parser but you are compiling > libwww as a shared library then you need to include this dummy > implementation of the HText interface in order to link succesfully. > In order to compile it in, you can do something like this > > #ifdef LIBWWW_SHARED > #include "HTextImp.h" > #endif > >It seems that this comment is clearly related to the teTeX's linking >problem. However, I don't fully understand it. Is it saying that >every program that will be linked with the shared libwww needs to >include the "HTextImp.h" header file? If this is indeed the case, >then the teTeX sources need to be modified... But then, why does the >same teTeX port link fine with the same libwww-5.2 under 2.2.8 (a.out)? > >-- JM >----------------------------------------------------------------------- >José Mª Alcaide | mailto:jose@we.lc.ehu.es >Universidad del País Vasco | http://www.we.lc.ehu.es/~jose >Dpto. de Electricidad y Electrónica | >Facultad de Ciencias - Campus de Lejona | Tel.: +34-946012479 >48940 Lejona (Vizcaya) - SPAIN | Fax: +34-944858139 >----------------------------------------------------------------------- > "Go ahead... make my day." - H. Callahan Hope this helps. Happy Holidays. Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message