Hi,
on a current (2018-12) Arch Linux installation, attempting to build
XEmacs 21.4 from pkgsrc (no Arch package) fails early in configure:
checking whether ln -s works... yes
checking host system type... x86_64-unknown-linux
XEmacs has no builtin knowledge of `x86_64' machines.
Using configure-time autodetection only.
checking for gcc... cc
checking whether the C compiler (cc -O2 -Dunix -D_FORTIFY_SOURCE=2
-I/opt/local/include -I/usr/include -I/opt/local/include/ncurses
-L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib64 -Wl,-R/usr/lib64)
works... yes
checking whether the C compiler (cc -O2 -Dunix -D_FORTIFY_SOURCE=2
-I/opt/local/include -I/usr/include -I/opt/local/include/ncurses
-L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib64 -Wl,-R/usr/lib64) is
a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... /lib/cpp
checking for AIX... no
checking for GNU libc... yes
Extracting information from the machine- and system-dependent headers...
./configure: line 2720: /lib/cpp: No such file or directory
checking for buggy gcc versions... no
checking for dynodump... no
checking for runtime libraries flag... "-rpath "
checking for malloc_set_state... no
checking whether __after_morecore_hook exists... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /bin/install -c -o hf -g spgmit
checking for bison... bison -y
checking for a.out.h... no
checking for elf.h... no
checking for cygwin/version.h... no
checking for fcntl.h... no
checking for inttypes.h... no
checking for libgen.h... no
checking for locale.h... no
checking for mach/mach.h... no
checking for sys/param.h... no
checking for sys/pstat.h... no
checking for sys/time.h... no
checking for sys/timeb.h... no
checking for sys/un.h... no
checking for ulimit.h... no
checking for unistd.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for ANSI C header files... no
checking whether time.h and sys/time.h may both be included... yes
checking for sys_siglist declaration in signal.h or unistd.h... yes
checking for utime... yes
checking return type of signal handlers... void
checking for size_t... no
checking for pid_t... no
checking for uid_t in sys/types.h... no
checking for mode_t... no
checking for off_t... no
checking for ssize_t... no
checking for socklen_t... int
checking for struct timeval... no
checking whether struct tm is in sys/time.h or time.h... sys/time.h
checking for tm_zone in struct tm... no
checking for tzname... no
checking for working const... yes
checking whether make sets ${MAKE}... yes
checking whether byte ordering is bigendian... no
checking size of short... 0
*** PANIC *** Configure tests are not working - compiler is broken.
*** PANIC *** Please examine config.log for compilation errors.
*** Error code 1
Stop.
bmake[1]: stopped in /misc/pkgsrc/editors/xemacs
*** Error code 1
-- it looks like the configure script is lost on this platform, not
finding anything. I guess not finding cpp(1) is not helpful...
The pkgsrc installation uses the native compiler:
% gcc --version | head -1
gcc (GCC) 8.2.1 20181127
% which cpp
/usr/bin/cpp
%
config.log has lots of entries like
[...]
configure:4251: checking for tm_zone in struct tm
configure:4262: cc -c -O2 -Dunix -D_FORTIFY_SOURCE=2
-I/opt/local/include -I/usr/include -I/opt/local/include/ncurses
-I/opt/local/include -I/usr/include -I/opt/local/include/ncurses
-I/opt/local/include -I/opt/local/include conftest.c 1>&5
In file included from configure:4254:
confdefs.h:25:15: error: two or more data types in declaration specifiers
#define gid_t int
^~~
confdefs.h:26:16: error: two or more data types in declaration specifiers
#define mode_t int
^~~
confdefs.h:24:15: error: two or more data types in declaration specifiers
#define uid_t int
^~~
confdefs.h:27:15: error: two or more data types in declaration specifiers
#define off_t long
^~~~
confdefs.h:23:15: error: two or more data types in declaration specifiers
#define pid_t int
^~~
confdefs.h:28:17: error: two or more data types in declaration specifiers
#define ssize_t int
^~~
confdefs.h:22:16: error: duplicate 'unsigned'
#define size_t unsigned
^~~~~~~~
configure: In function 'main':
configure:4258:11: error: storage size of 'tm' isn't known
struct tm tm; tm.tm_zone;
^~
configure: failed program was:
#line 4254 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
int main() {
struct tm tm; tm.tm_zone;
; return 0; }
[...]
where the error messages don't make any sense to me - but my autohell fu
is rusty.
I can provide detailed build log files, if needed.
Does the above speak to anyone, and would you have a fix?
Cheerio,
hauke
--
The ASCII Ribbon Campaign Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
Respect for open standards Ruf +49-6151-16-21344