Subject: Re: devel/libtecla does not compile with -current
To: Antoine Reilles <Antoine.Reilles@loria.fr>
From: Adam Ciarcinski <adam@albedo.art.pl>
List: current-users
Date: 02/21/2005 15:46:56
> Hi,
>
> I'm trying to install devel/libtecla, but this package does not compile
> under -current (from yesterday).
> However, it builds fine with 2.0 release.
>
> The error message i get is :
>
>
> ===> Checking for vulnerabilities in libtecla-1.5.0
> ===> Building for libtecla-1.5.0
> gmake[1]: Entering directory `/usr/pkgsrc/devel/libtecla/work/libtecla'
> gmake[1]: Nothing to be done for `default'.
> gmake[1]: Leaving directory `/usr/pkgsrc/devel/libtecla/work/libtecla'
> gmake[1]: Entering directory `/usr/pkgsrc/devel/libtecla/work/libtecla'
> cc -c -O  -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMCAP=1 -DHAVE_TERMCAP_H=1 -DHAVE_CURSES_H=1 -DHAVE_SELECT=1  -O2  -D_POSIX_C_SOURCE=199506L -DPREFER_REENTRANT -o reentrant_obj/getline.o ./getline.c
> getline.c:472: error: parse error before "fd_set"
> getline.c:472: warning: no semicolon at end of struct or union
> getline.c:473: warning: data definition has no type or storage class
> getline.c:474: error: parse error before "ufds"
> getline.c:474: warning: data definition has no type or storage class
> getline.c:486: error: parse error before '}' token
> getline.c: In function `new_GetLine':
> getline.c:1646: error: invalid application of `sizeof' to an incomplete type
> getline.c:1656: error: dereferencing pointer to incomplete type
> getline.c:1657: error: dereferencing pointer to incomplete type
[---cut---]
> gmake[1]: *** [reentrant_obj/getline.o] Error 1
> gmake[1]: Leaving directory `/usr/pkgsrc/devel/libtecla/work/libtecla'
> gmake: *** [reentrant] Error 2
> Stop.
> make: stopped in /usr/pkgsrc/devel/libtecla
>
>
> I checked for fd_set, and it is defined in sys/types.h the same way as
> in 2.0
>
> regards,
> antoine


Antoine,

The problem is not with 'fd_set', but with libtela.h definition:

#define GL_FD_EVENT_FN(fn) GlFdStatus (fn)(GetLine *gl, void *data, int 
fd, \
                                            GlFdEvent event)
typedef GL_FD_EVENT_FN(GlFdEventFn);

while building reentrant source with -D_POSIX_C_SOURCE=199506L

Check if the 'configure' phase (make configure) gives this:
checking for reentrant functions... yes
on both systems.  I guess NetBSD 2.0 gives 'no', while -current gives 
'yes'

I'm going to update the package anyway. :)

Kind regards,
Adam