Hi Steve -
Do you have the libc6-dev package installed? If you do not, I suggest
that you install the build-essential package.
dpkg -S file will reveal the package which contains file if such
package is installed.
I am using Ubuntu Intrepid, so not sure if this solution is correct
for you.
Younès -
Noticed while checking this that I get the following error on Ubuntu
Intrepid:
gcc -I. -Ilib/private -Ilib/public -Ilib/private/plugin/gzip -Ilib/private/plugin/cunit -Ilib/private/plugin/tiger -Ilib/private/plugin/event -Ilib/private/plugin/event/compat -Ilib/private/plugin/regex -Ilib/private/plugin/python -Ilib/private/plugin/ruby -Ilib/private/os -Ilib/private/plugin/event/os/linux -Ilib/private/plugin/cunit/os/linux -Wall -W -Wunused -ansi -pedantic -Werror -Wno-long-long -Wunused-function -std=gnu89 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -g -pedantic-errors -Wextra -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_ALLOCA_H=1 -DEBUG=1 -o lib/private/plugin/event/http.o -c lib/private/plugin/event/http.c
In file included from /usr/include/sys/resource.h:25,
from lib/private/plugin/event/http.c:49:
/usr/include/bits/resource.h:161: error: comma at end of enumerator list
make: *** [lib/private/plugin/event/http.o] Error 1
This looks to be a bug in glibc 2.8 exposed by warc-tools. The glibc
package version installed on my machine is 2.8~20080505-0ubuntu7.
best,
Erik Hetzner
> Younès -
>
> Noticed while checking this that I get the following error on Ubuntu
> Intrepid:
>
> gcc -I. -Ilib/private -Ilib/public -Ilib/private/plugin/gzip -Ilib/
> private/plugin/cunit -Ilib/private/plugin/tiger -Ilib/private/plugin/
> event -Ilib/private/plugin/event/compat -Ilib/private/plugin/regex -
> Ilib/private/plugin/python -Ilib/private/plugin/ruby -Ilib/private/
> os -Ilib/private/plugin/event/os/linux -Ilib/private/plugin/cunit/os/
> linux -Wall -W -Wunused -ansi -pedantic -Werror -Wno-long-long -
> Wunused-function -std=gnu89 -D_LARGEFILE_SOURCE -
> D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -g -pedantic-errors -Wextra -
> DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_ALLOCA_H=1 -DEBUG=1 -o lib/
> private/plugin/event/http.o -c lib/private/plugin/event/http.c
> In file included from /usr/include/sys/resource.h:25,
> from lib/private/plugin/event/http.c:49:
> /usr/include/bits/resource.h:161: error: comma at end of enumerator
> list
> make: *** [lib/private/plugin/event/http.o] Error 1
>
> This looks to be a bug in glibc 2.8 exposed by warc-tools. The glibc
> package version installed on my machine is 2.8~20080505-0ubuntu7.
Yes. We're aware of this bug in "resource.h" header file (we saw it
first on 64bit machine).
Just remove the comma and rebuild. Evrything should be fine.
Another solution is to play with #defines ...
Regards
Younès
> best,
> Erik Hetzner
> ;; Erik Hetzner, California Digital Library
> ;; gnupg key id: 1024D/01DB07E3
i upgraded to Hardy, and installed libc6-dev 2.7-10ubun,
and warc-tools compiled fine.
i'll look for the resource.h comma when i upgrade to
Intrepid.
just to confirm, i upgraded to Ubuntu 8.10/Intrepid,
then got the same error:
In file included from /usr/include/sys/resource.h:25,
from lib/private/plugin/event/http.c:49:
/usr/include/bits/resource.h:161: error:
comma at end of enumerator list
make: *** [lib/private/plugin/event/http.o] Error 1
removed the comma, and compilation was successful.
thanks for your help,
Hi Younès -
Thanks for the fix, compiles fine. This has apparently been reported
to Ubuntu [1]. I am not sure if this is an Ubuntu modification or a
glibc bug.
best,
Erik
1. <https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/302087>
fyi - bug fixed in glibc
<http://sourceware.org/bugzilla/show_bug.cgi?id=9720>
-Erik