W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2001

Problem compiling chunk.c using libwww-config

From: Sam Gasster <sgasster@endeavors.com>
Date: Wed, 18 Apr 2001 14:04:10 -0700
Message-Id: <p05010404b703ae9a4f57@[]>
To: www-lib@w3.org
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

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

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?

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:54 UTC