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

Bug#944753: libglu FTBFS: src/libutil/error.c:60:10: error: ‘NULL’ undeclared here



Source: libglu
Version: 9.0.0-2.1
Severity: serious
Tags: ftbfs

libglu fails to build from source:

| /bin/bash ./libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"glu\" -DPACKAGE_TARNAME=\"glu\" -DPACKAGE_VERSION=\"9.0.0\" -DPACKAGE_STRING=\"glu\ 9.0.0\" -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\&component=GLU\"; -DPACKAGE_URL=\"\" -DPACKAGE=\"glu\" -DVERSION=\"9.0.0\" -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 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I..  -DLIBRARYBUILD -I../include -I../src/include -I../src/libnurbs/internals -I../src/libnurbs/interface -I../src/libnurbs/nurbtess -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libdrm  -Wall -fvisibility=hidden -g -O2 -ffile-prefix-map=/build/1st/libglu-9.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -c -o src/libutil/error.lo ../src/libutil/error.c
| libtool: compile:  gcc -DPACKAGE_NAME=\"glu\" -DPACKAGE_TARNAME=\"glu\" -DPACKAGE_VERSION=\"9.0.0\" "-DPACKAGE_STRING=\"glu 9.0.0\"" "-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=GLU\""; -DPACKAGE_URL=\"\" -DPACKAGE=\"glu\" -DVERSION=\"9.0.0\" -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 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I.. -DLIBRARYBUILD -I../include -I../src/include -I../src/libnurbs/internals -I../src/libnurbs/interface -I../src/libnurbs/nurbtess -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libdrm -Wall -fvisibility=hidden -g -O2 -ffile-prefix-map=/build/1st/libglu-9.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -c ../src/libutil/error.c  -fPIC -DPIC -o src/libutil/.libs/error.o
| ../src/libutil/error.c:60:10: error: 'NULL' undeclared here (not in a function)
|    60 |    { ~0, NULL } /* end of list indicator */
|       |          ^~~~
| ../src/libutil/error.c:34:1: note: 'NULL' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
|    33 | #include <GL/glu.h>
|   +++ |+#include <stddef.h>
|    34 |
| make[1]: *** [Makefile:1274: src/libutil/error.lo] Error 1
| make[1]: Leaving directory '/build/1st/libglu-9.0.0/build'
| dh_auto_build: cd build && make -j1 returned exit code 2
| make: *** [debian/rules:25: build] Error 255
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

This failure is reproduced by reproducible builds and crossqa:
https://tests.reproducible-builds.org/debian/rbuild/unstable/amd64/libglu_9.0.0-2.1.rbuild.log.gz
http://crossqa.debian.net/build/libglu_9.0.0-2.1_armel_20191011150236.log

Helmut


Reply to: