tech-pkg archive

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

Re: Adding fix for building GNU m4 on Debian



On Tue, Jan 17, 2012 at 07:43:37PM +0100, Hubert Feyrer wrote:
> 
> Trying to build pkgsrc/devel/m4 on Debian gives me an error:
> 
>       ...
>       gcc -std=gnu99  -I.      -O2 -Wno-error -MT execute.o -MD -MP -MF
>       .deps/execute.Tpo -c -o execute.o execute.c
>       In file included from execute.c:47:0:
>       ./spawn.h:427:3: error: conflicting types for 
> 'posix_spawn_file_actions_t'
>       /usr/include/spawn.h:50:3: note: previous declaration of
>       'posix_spawn_file_actions_t' was here
>       execute.c: In function 'execute':
> 
> I have a quick fix for this, but am not sure how to really use this
> so it's only applied to Debian / where needed (i.e. not on OS X):
> 
>       # Fix building on Debian Linux,
>       # see 
> http://lists.freebsd.org/pipermail/freebsd-ports/2009-July/056108.html
>       CONFIGURE_ENV=ac_cv_func_posix_spawn=yes
> 
> How do I best add this to the pkg?

Fancy sending me your config.log? The definition is protected by
# if !GNULIB_defined_posix_spawn_file_actions_t
and m4/spawn_h.m4 seems to try to do the right thing?

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index