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

Bug#639073: FTBFS: ./base/time_.h:49:8: error: redefinition of, 'struct timeval' also seen on Alpha.



This FTBFS of ghostscript:

> During a rebuild of all packages in sid, your package failed to build on
> amd64.
> 
> Relevant part:
>> gcc  -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2  -fPIC  -O2 -fPIC -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -g -O2 -g -O2 -Wall -fPIC -DUSE_LIBPAPER -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/lib/ghostscript/9.02\" -I./obj/../soobj -I./base  -g -O2 -g -O2 -Wall -fPIC -DUSE_LIBPAPER   -o ./obj/../soobj/gp_unix.o -c ./base/gp_unix.c
>> In file included from ./base/gp_unix.c:17:0:
>> ./base/pipe_.h:39:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
>> In file included from ./base/gp_unix.c:19:0:
>> ./base/time_.h:49:8: error: redefinition of 'struct timeval'

has also occurred on Alpha and other arches on debian-ports.

On Alpha the header file sys/time.h has moved to the multiarch
directory, namely: /usr/include/alpha-linux-gnu/sys/time.h.

It is not found by the search for sys/time.h.  The relevant part of the
log is:

if ( test -f /usr/include/sys/time.h ); then ./obj/../soobj/echogs -a
./obj/../soobj/gconf
ig_.h -x 23 define HAVE_SYS_TIME_H; else true; fi
if ( test -f /usr/include/sys/times.h ); then ./obj/../soobj/echogs -a
./obj/../soobj/gcon
fig_.h -x 23 define HAVE_SYS_TIMES_H; else true; fi

The search needs to be updated to also search the multiarch include
directories.

Cheers
Michael.



Reply to: