[Top][All Lists]

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

Can't compile on FreeBSD

From: Yoshiaki Kasahara
Subject: Can't compile on FreeBSD
Date: Thu, 19 May 2011 17:03:32 +0900 (JST)


Currently I cannot compile rev 104284 on FreeBSD (8.2-RELEASE).

gcc -std=gnu99   -Wimplicit-function-declaration -Wold-style-definition 
-Wdeclaration-after-statement  -DHAVE_CONFIG_H -I. -I../src -I../lib 
-I/usr/local/src/Emacs24/emacs/lib-src/../lib  -Wl,-znocombreloc 
-L/usr/local/lib  -g -O2 /usr/local/src/Emacs24/emacs/lib-src/profile.c 
../lib/libgnu.a -lutil -o profile
In file included from /usr/local/src/Emacs24/emacs/lib-src/profile.c:31:
../src/config.h:1366:1: warning: "alloca" redefined
In file included from ../lib/stdlib.h:35,
                 from ../src/config.h:1361,
                 from /usr/local/src/Emacs24/emacs/lib-src/profile.c:31:
/usr/include/stdlib.h:237:1: warning: this is the location of the previous 
In file included from /usr/local/src/Emacs24/emacs/lib-src/profile.c:33:
../src/systime.h:34:20: error: X11/X.h: No such file or directory
gmake[2]: *** [profile] Error 1
gmake[2]: Leaving directory `/usr/local/src/Emacs24/emacs/lib-src'
gmake[1]: *** [lib-src] Error 2
gmake[1]: Leaving directory `/usr/local/src/Emacs24/emacs'
gmake: *** [bootstrap] Error 2

On FreeBSD, X-related include files are under /usr/local/include/X11,
and the compiler doesn't search /usr/local/include by default.  I'm
not sure how it should be fixed...(add C_SWITCH_X_SITE for compiling
profile.c ?)

Yoshiaki Kasahara
Research Institute for Information Technology, Kyushu University

reply via email to

[Prev in Thread] Current Thread [Next in Thread]