Subject: Re: teTeX problem with libwww
To: Frederick Bruckman <>
From: Ruibiao Qiu <>
List: tech-pkg
Date: 12/12/2001 20:58:30
On Wed, 12 Dec 2001, Frederick Bruckman wrote:

>On Wed, 12 Dec 2001, Ruibiao Qiu wrote:
>> xdvi.o: In function `make_temporary_dir':
>> xdvi.o(.text+0x7ec): warning: tempnam() possibly used unsafely, use mkstemp() or mkdtemp()
>> /usr/pkg/lib/libwwwapp.a(HTInit.o): In function `HTConverterInit':
>  ^^^^^^^^^^^^^^^^^^^^^^^^
>Wonder why "gcc" is trying to link static. What platform
>(machine/version) is this?

This is simply an i386/1.5.2 directly installed from the ftp site.  I might
forget to set something right.  How can I make it not build static?

>In any case, it looks like "-lxmltok" or "-lwwwxml" needs to follow
>"-lwwwapp" on the command line. It's probably getting the order from
>"/usr/pkg/bin/libwww-config". You could edit that file directly, to
>see if you can come up with the right magic formula, and if you can,
>it should be changed in the "libwww" package. Some of the libraries
>may need to appear on the command line twice to eliminate all circular
>references. You can fully test any change to libwww-config with, "cd
>print/teTeX-bin && rm work/.configure_done && make", which may be a
>little less work than rebuilding teTeX-bin from scratch.

I appended -lwwwxml -lxmltok in the script, but it does not eliminate the
errors, instead it incurs more "XML_XXX" undefined references.