pkgsrc-Users archive

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

Build failure for editors/nedit on SLES 11



Hello,

The current version of editors/nedit fails to build on SLES 11 with the
following output:

cc -O2 -Wno-error -I/nobackupnfs2/imorgan/pkgsrc/cvs/pkg/include -I/usr/include 
-I/nobackupnfs2/imorgan/pkgsrc
/cvs/pkg/include/freetype2 -Wno-error -DUSE_DIRENT -DUSE_LPR_PRINT_CMD 
-I/nobackupnfs2/imorgan/pkgsrc/cvs/pkg/
include -I/usr/include -I/nobackupnfs2/imorgan/pkgsrc/cvs/pkg/include/freetype2 
-c prefFile.c
prefFile.c: In function 'stringToPref':
prefFile.c:356: error: 'uintptr_t' undeclared (first use in this function)
prefFile.c:356: error: (Each undeclared identifier is reported only once
prefFile.c:356: error: for each function it appears in.)
prefFile.c:356: error: expected ')' before 'rsrcDescrip'
prefFile.c:358: error: expected ')' before 'rsrcDescrip'
*** Error code 1

The problem is that source/preference.c (and other files) does not
include stdint.h. The easiest solution seems to be to create config.h at
the top level of the source distribution, containing #include <stdint.h>
and appending -DHAVE_CONFIG_H to CFLAGS in makefiles/Makefile.netbsd.

-- 
Iain Morgan


Home | Main Index | Thread Index | Old Index