W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2003

HTMemory.h parse errors

From: James Thornton <thornton@cs.ecs.baylor.edu>
Date: Sun, 12 Jan 2003 12:11:48 -0600
Message-ID: <3E21AFE4.704D27C@cs.baylor.edu>
To: www-lib@w3.org

Even though I have specified the options given by libwww-config, I am
getting HTMemory.h parse errors. Any ideas?

gcc -c -Iutils -Iport/include    -DHAVE_LIBWWWUTILS=1
-DHAVE_LIBWWWCORE=1 -DHAVE_LIBZ=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1
-DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UNISTD_H=1
-DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1
-DHAVE_GETHOSTNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKTIME=1
-DHAVE_SELECT=1 -DHAVE_STRCSPN=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1
-DHAVE_STRSTR=1 -DHAVE_PTHREAD_CREATE=1 -DHAVE_SOCKET=1 -DHAVE_CONNECT=1
-DHAVE_GETHOSTBYNAME=1 -DGETHOSTBYNAME_R_ARGS=6 -DHAVE_DAEMON=1
-DHAVE_GETOPT_LONG=1 -DHAVE_GETOPT_LONG_ONLY=1  -o obj-2.96/normalize.o
utils/normalize.c -Iutils -g -Wall -Wno-sign-compare -O3 -pipe -g -O2
-DHAVE_CONFIG_H  -I/usr/include/w3c-libwww -I/usr/local/include
-I/usr/local/include/w3c-libwww
In file included from /usr/include/w3c-libwww/HTUtils.h:337,
                 from /usr/include/w3c-libwww/HTFormat.h:55,
                 from /usr/include/w3c-libwww/HTReq.h:57,
                 from /usr/include/w3c-libwww/WWWCore.h:59,
                 from utils/normalize.c:23:
/usr/include/w3c-libwww/HTMemory.h:84: parse error before
`HTMemoryCall_add'
/usr/include/w3c-libwww/HTMemory.h:84: warning: type defaults to `int'
in declaration of `HTMemoryCall_add'
/usr/include/w3c-libwww/HTMemory.h:84: warning: data definition has no
type or storage class
/usr/include/w3c-libwww/HTMemory.h:92: parse error before
`HTMemoryCall_delete'
/usr/include/w3c-libwww/HTMemory.h:92: warning: type defaults to `int'
in declaration of `HTMemoryCall_delete'
/usr/include/w3c-libwww/HTMemory.h:92: warning: data definition has no
type or storage class
/usr/include/w3c-libwww/HTMemory.h:93: parse error before
`HTMemoryCall_deleteAll'
/usr/include/w3c-libwww/HTMemory.h:93: warning: type defaults to `int'
in declaration of `HTMemoryCall_deleteAll'
/usr/include/w3c-libwww/HTMemory.h:93: warning: data definition has no
type or storage class
make: *** [obj-2.96/normalize.o] Error 1


-----//-----

my libwww-config output....

[root@roam w3c-libwww-5.4.0]# libwww-config --version
5.2.8

[root@roam w3c-libwww-5.4.0]# libwww-config --cflags 
-I/usr/include/w3c-libwww -DHAVE_CONFIG_H

[root@roam w3c-libwww-5.4.0]# libwww-config --libs  
-L/usr/lib -lmd5 -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwinit
-lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher
-lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans
-lwwwcore -lwwwutils -ldl -lz
Received on Sunday, 12 January 2003 13:11:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:43 GMT