[ptx] Java Problems with the new buildsystem was: libpano12 -
build with GNU autotools
Gerhard Gaussling
ggrubbish at web.de
Tue Nov 9 01:22:44 GMT 2004
Am Dienstag 09 November 2004 00:42 schrieb Gerhard Gaussling:
> I assume that my java installation is ok. I don't know what's the
> reason that makes ./configure fail :-(
Hello,
I needed gcj for JAVA. But make stops with an error in function 'main'
$ sudo apt-get install libgcj4-dev gcjwebplugingcj gij
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
gcj-3.3 gij-3.3 gij-3.4 libgcj-common libgcj4 libgcj4-awt
libgcj4-common libgcj5 libgcj5-awt
$ ./bootstrap
/usr/share/aclocal/xdelta.m4:7: warning: underquoted definition of
AM_PATH_XDELTA
run info '(automake)Extending aclocal'
or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/vorbis.m4:9: warning: underquoted definition of
XIPH_PATH_VORBIS
[...]
/usr/share/aclocal/ORBit.m4:4: warning: underquoted definition of
AM_PATH_ORBIT
Putting files in AC_CONFIG_AUX_DIR, `config'.
configure.ac: installing `config/install-sh'
configure.ac: installing `config/missing'
tools/Makefile.am: installing `config/depcomp'
Makefile.am: installing `./INSTALL'
Makefile.am: installing `./COPYING'
Files generated successfully
Now run './configure' to setup libpano.
$ ./configure --with-gnu-ld --with-java=/usr/lib/j2sdk1.4-sun
checking build system type... i686-pc-linux-gnu
[...]
checking if JAVA package is complete... yes
[...]
JAVA_FLAGS = -I/usr/lib/j2sdk1.4-sun/include/libgcj -DHasJava
But I got an error panoinfo_unix.o(.text+0x2a): In function `main':
$ make
make all-recursive
make[1]: Entering directory
`/var/backups/download/graphics/panotools/libpano'
Making all in tools
make[2]: Entering directory
`/var/backups/download/graphics/panotools/libpano/tools'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I /usr/lib/java/include/
-I /usr/lib/java/include/genunix -I /usr/lib/java/include/linux
-I /usr/lib/java/include/linux -D__Ansi__=1 -g -O2 -MT
panoinfo_unix.o -MD -MP -MF ".deps/panoinfo_unix.Tpo" -c -o
panoinfo_unix.o panoinfo_unix.c; \
then mv -f ".deps/panoinfo_unix.Tpo" ".deps/panoinfo_unix.Po"; else rm
-f ".deps/panoinfo_unix.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o panoinfo
panoinfo_unix.o -lpano12
mkdir .libs
gcc -g -O2 -o panoinfo panoinfo_unix.o -lpano12
panoinfo_unix.o(.text+0x2a): In function `main':
/var/backups/download/graphics/panotools/libpano/tools/panoinfo_unix.c:42:
undefined reference to `queryFeatureString'
[...]
panoinfo_unix.o(.text+0x186):/var/backups/download/graphics/panotools/libpano/tools/panoinfo_unix.c:90:
undefined reference to `queryFeatureString'
collect2: ld returned 1 exit status
make[2]: *** [panoinfo] Error 1
make[2]: Leaving directory
`/var/backups/download/graphics/panotools/libpano/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/backups/download/graphics/panotools/libpano'
make: *** [all] Error 2
More information about the ptX
mailing list