compiling problem on ubuntu

8 views
Skip to first unread message

siznax

unread,
Dec 31, 2008, 5:44:08 PM12/31/08
to warc-tools
i checked out r241, and make fails immediately.

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
-c lib/private/plugin/regex/regex.c -o lib/private/plugin/regex/
regex.o
lib/private/plugin/regex/regex.c:30:23: error: sys/types.h: No such
file or directory

i'm running Ubuntu Feisty (i know, need to upgrade :).

Linux 2.6.20-16-server #2 SMP Sun Sep 23 19:57:25 UTC 2007 i686 GNU/
Linux
Ubuntu 7.04

has anyone else compiled on Ubuntu?

/st...@archive.org

WARC

unread,
Jan 2, 2009, 5:38:29 PM1/2/09
to warc-...@googlegroups.com
Hi Steve,

Did you tried to search for this missing header elsewhere ?

$ find /usr -xdev -name "types.h" -type f

Never saw this problem on our Ubuntu boxes.

Regards
Younès

Le 31 déc. 08 à 23:44, siznax a écrit :

Erik Hetzner

unread,
Jan 2, 2009, 5:59:25 PM1/2/09
to warc-...@googlegroups.com
At Fri, 2 Jan 2009 23:38:29 +0100,

WARC <voidp...@gmail.com> wrote:
>
> Hi Steve,
>
> Did you tried to search for this missing header elsewhere ?
>
> $ find /usr -xdev -name "types.h" -type f
>
> Never saw this problem on our Ubuntu boxes.

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

WARC

unread,
Jan 2, 2009, 6:11:52 PM1/2/09
to warc-...@googlegroups.com
Hi Erik,

> 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

st...@archive.org

unread,
Jan 2, 2009, 6:41:35 PM1/2/09
to warc-...@googlegroups.com
thanks Erik,

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.

/st...@archive.org

st...@archive.org

unread,
Jan 2, 2009, 7:15:13 PM1/2/09
to warc-...@googlegroups.com
hi Younès,

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,

/st...@archive.org

Erik Hetzner

unread,
Jan 2, 2009, 7:15:48 PM1/2/09
to warc-...@googlegroups.com
At Sat, 3 Jan 2009 00:11:52 +0100,

WARC <voidp...@gmail.com> wrote:
> 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 ...

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>

Erik Hetzner

unread,
Jan 8, 2009, 7:18:52 PM1/8/09
to warc-...@googlegroups.com
At Fri, 02 Jan 2009 16:15:13 -0800,

"st...@archive.org" <st...@archive.org> wrote:
>
>
> hi Younès,
>
> 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,

fyi - bug fixed in glibc

<http://sourceware.org/bugzilla/show_bug.cgi?id=9720>

-Erik

Reply all
Reply to author
Forward
0 new messages