linux building errors

Started by Matzon, September 01, 2004, 19:40:15

Previous topic - Next topic

Matzon

argh - this is driving me nuts! Some of you linux guys please help me out.

Building from cvs yields some interresting warnings/errors. First some info:
QuoteLinux epia 2.6.8.1-2mdk #1 Wed Aug 18 18:54:04 CEST 2004 i686 VIA Samuel 2 unknown GNU/Linux
autoconf (GNU Autoconf) 2.59
GNU Make 3.80

Building:
Quote[matzon@epia native]$ ./build.sh

Errors:
Quoteacinclude.m4:4: warning: underquoted definition of AC_JNI_INCLUDE_DIR
 run info '(automake)Extending aclocal'
 or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
acinclude.m4:52: warning: underquoted definition of _ACJNI_FOLLOW_SYMLINKS
shitload of these:
Quotecommon/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
common/Makefile.am:1:
common/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
common/Makefile.am:1: to `configure.in' and run `aclocal' and `autoconf' again.
one of these
Quoteconfigure.in:10: error: possibly undefined macro: AC_DISABLE_STATIC
     If this token and others are legitimate, please use m4_pattern_allow.
     See the Autoconf documentation.
configure.in:29: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.in:46: error: possibly undefined macro: AC_PROG_LIBTOOL

it then runs the configure which fails:
Quotechecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
./configure: line 1774: AC_DISABLE_STATIC: command not found
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
./configure: line 5151: AC_LIBTOOL_DLOPEN: command not found
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking AL/altypes.h usability... yes
checking AL/altypes.h presence... yes
checking for AL/altypes.h... yes
checking AL/alctypes.h usability... yes
checking AL/alctypes.h presence... yes
checking for AL/alctypes.h... yes
checking for XOpenDisplay in -lX11... no
configure: error: X11 is required
X11 runs just fine, thank you - I have also installed the x-devel package. Btw. Mandrake uses xorg - not xfree.

I tried building the XOpenDisplay that configure fails on, and I get the same error.
Quote/* confdefs.h.  */

#define PACKAGE_NAME "LWJGL"
#define PACKAGE_TARNAME "lwjgl"
#define PACKAGE_VERSION "0.9"
#define PACKAGE_STRING "LWJGL 0.9"
#define PACKAGE_BUGREPORT ""
#define PACKAGE "lwjgl"
#define VERSION "0.9"
#ifdef __cplusplus
void exit (int);
#endif
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_AL_ALTYPES_H 1
#define HAVE_AL_ALCTYPES_H 1
/* end confdefs.h.  */

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
  builtin and then its argument prototype would still apply.  */
char XOpenDisplay ();
int main () {
XOpenDisplay ();
return 0;
}

However if I specify
Quote-L/usr/X11R6/lib -lX11
it compiles fine. Adding the same switches to configure.in and doing a new ./build.sh did not work however.

/me begs for help!

elias

What's your libtool version? Mine is:

elias@linux:~> rpm -qa|grep libtool
libtool-1.5.2-56

- elias

Matzon


Matzon

don't know if this helps, but here is the output from libtool --config:
http://matzon.dk/brian/libtool-configure.txt