Problem compiling chunk.c using libwww-config

On 2001-04-17 I checked out the libwww distribution from the CVS respository.

My system:
Linux fluorine 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown
RedHat 6.2
egcs-2.91.66

I preformed the required bootstrapping and installation.

I tested the resulting chunk executable and it worked fine.  To get
familiar with the library I decided to compile chunk.c myself.

I followed the example given on
http://www.w3.org/Library/libwww-config.html

and received an error:

gcc -o chunktest `libwww-config --cflags` Library/Examples/chunk.c 
`libwww-config --libs`
/usr/local/lib/libwwwapp.a(HTInit.o): In function `HTConverterInit':
/home/sgasster/w3c/libwww/Library/src/HTInit.c:87: undefined 
reference to `HTXML_new'
/home/sgasster/w3c/libwww/Library/src/HTInit.c:88: undefined 
reference to `HTXML_new'
collect2: ld returned 1 exit status

I looked at the Makefile in the Library/Examples directory and 
noticed that the library
list and ordering is different than that returned by libwww-config:
Here's what libwww-config returns in each case:

libwww-config --cflags
-I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H

libwww-config --libs
-L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp 
-lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher 
-lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux 
-lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl


Anyone have any idea what's up?

Thanks,
Sam

Received on Wednesday, 18 April 2001 17:04:25 UTC