bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Todo for libposix branch?


From: Reuben Thomas
Subject: Re: Todo for libposix branch?
Date: Wed, 4 May 2011 08:08:42 +0100

On 4 May 2011 00:56, Bruce Korb <address@hidden> wrote:
>
> 1.  configure, build and install the thing.  Perhaps from:
>    http://autogen.sourceforge.net/data/
>    or roll your own, but the distribution should be there, I think.

I configured, built and installed from gnulib git; no problem there.

> 2.  fiddle a project to detect that it is "sufficiently recent" to
>    cover the needs of this unnamed project.  That is an interesting
>    issue, though:  the concept behind "configure" is that you do
>    feature tests rather than version testing.  However, if you choose
>    to not test the version of libposix and test the features you
>    need of libposix, then I have an extremely difficult time trying
>    to understand the point of libposix -- you are back to running
>    a bunch of feature tests that take too long.  Testing for a
>    libposix current as of some marker (version number or date)
>    seems right to me, though there are some caveats to consider
>    regarding "retired" POSIX features.

I ignored this problem. My principle interest at present is to build
the luaposix Lua bindings for POSIX APIs, so any version of libposix
makes things better and is hence "new enough".

> 3.  configure, build, test, install and test installation of said project.

Since luaposix doesn't use autotools, this simply consists of adding
-I/usr/local/include/libposix and -lposix to appropriate points in the
Makefile.

I then get the error:

cc -fPIC -I/usr/local/include -I/usr/local/include/libposix -pedantic
-Wall -DVERSION=\"v5.1.8-22-g802ba6c\" -D_XOPEN_SOURCE=700   -c -o
lposix.o lposix.c
In file included from /usr/local/include/libposix/sys/stat.h:44:0,
                 from lposix.c:12:
/usr/local/include/libposix/time.h:469:1: error: expected ‘;’, ‘,’ or
‘)’ before ‘__timer’
/usr/local/include/libposix/time.h:491:1: error: expected ‘;’, ‘,’ or
‘)’ before ‘__timer’
In file included from lposix.c:25:0:
/usr/local/include/libposix/glob.h:381:23: fatal error: glob-libc.h:
No such file or directory
compilation terminated.

The first error is eliminated by passing -std=gnu99, but maybe this
should not be necessary? The second seems indeed to be a case of
glob-libc.h not being installed.

-- 
http://rrt.sc3d.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]