Re: [Tigervnc-devel] building with libtool1.x
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Pierre Ossman wrote: On Mon, 26 Oct 2009 16:19:42 +0700 Antoine Martin anto...@nagafix.co.uk wrote: Hi, I was trying to build some .debs and encountered an issue with old distros (ie: Ubuntu Hardy, Debian Lenny) that ship with libtool version 1.5: make[1]: Entering directory `/usr/src/tigervnc-1.0.0/unix/tx' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\tigervnc\ -DPACKAGE_TARNAME=\tigervnc\ -DPACKAGE_VERSION=\1.0.0\ -DPACKAGE_STRING=\t igervnc\ 1.0.0\ -DPACKAGE_BUGREPORT=\http://www.tigervnc.org\; -DPACKAGE=\tigervnc\ -DVERSION=\1.0.0\ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_ STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -D LT_OBJDIR=\.libs/\ -DHAVE_ICONV=1 -I. -I../../common -g -O2 -Wall -MT libtx_la-TXWindow.lo -MD -MP -MF .deps/libtx_la-TXWindow.Tpo -c -o libtx_la-TXWi ndow.lo `test -f 'TXWindow.cxx' || echo './'`TXWindow.cxx ../libtool: line 841: X--tag=CXX: command not found ../libtool: line 874: libtool: ignoring unknown tag : command not found ../libtool: line 841: X--mode=compile: command not found [...] This occurs when the macros in ./configure are from a different version than ./ltmain.sh. Basically you've executed aclocal/autoconf with one version of libtool and libtoolize with another version. If you rerun autoreconf --force libtoolize --force then things should sort themselves out. Sorry for the line noise, it looks like it was my mistake(s). In fact there were 2 issues at play here, it might help others to give some details: * Removing libtool1.x and installing libtool2 with the default /usr/local prefix does not work (see above). One must install the new libtool2.x in /usr. * I rebuilt the hardy-i386 chroot from scratch (twice) and I got this error when build-essential was not installed: In file included from net.c:34: ../os/net.h:35: error: conflicting types for 'socklen_t' /usr/include/bits/socket.h:37: error: previous declaration of 'socklen_t' was here Confusing, heh? (not immediately obvious it's missing build-essential) Taking out the offending line from common/os/net.h did the trick for a while until I realized there was something fundamentally wrong. I didn't hit the nasm issue this time (but I had also upgraded nasm from 0.99 to 2.x, not sure if this helped or not - could just be build-essential related too) Finally, I have a bunch of .DEBs generated, you can find them here: http://vnc.devloop.org.uk/dists/ (all current versions of Ubuntu and Debian are covered) Only briefly tested. Cheers Antoine -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREKAAYFAkrp93EACgkQGK2zHPGK1rvqIACffYQ6LItBaVbicubgZO4pgw6/ NPoAmwdymjJBz+OgL25s7aAQmpigTALD =hjKF -END PGP SIGNATURE- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel
Re: [Tigervnc-devel] building with libtool1.x
On Mon, 26 Oct 2009 16:19:42 +0700 Antoine Martin anto...@nagafix.co.uk wrote: Hi, I was trying to build some .debs and encountered an issue with old distros (ie: Ubuntu Hardy, Debian Lenny) that ship with libtool version 1.5: make[1]: Entering directory `/usr/src/tigervnc-1.0.0/unix/tx' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\tigervnc\ -DPACKAGE_TARNAME=\tigervnc\ -DPACKAGE_VERSION=\1.0.0\ -DPACKAGE_STRING=\t igervnc\ 1.0.0\ -DPACKAGE_BUGREPORT=\http://www.tigervnc.org\; -DPACKAGE=\tigervnc\ -DVERSION=\1.0.0\ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_ STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -D LT_OBJDIR=\.libs/\ -DHAVE_ICONV=1 -I. -I../../common -g -O2 -Wall -MT libtx_la-TXWindow.lo -MD -MP -MF .deps/libtx_la-TXWindow.Tpo -c -o libtx_la-TXWi ndow.lo `test -f 'TXWindow.cxx' || echo './'`TXWindow.cxx ../libtool: line 841: X--tag=CXX: command not found ../libtool: line 874: libtool: ignoring unknown tag : command not found ../libtool: line 841: X--mode=compile: command not found [...] This occurs when the macros in ./configure are from a different version than ./ltmain.sh. Basically you've executed aclocal/autoconf with one version of libtool and libtoolize with another version. If you rerun autoreconf --force libtoolize --force then things should sort themselves out. Rgds -- Pierre OssmanOpenSource-based Thin Client Technology System Developer Telephone: +46-13-21 46 00 Cendio ABWeb: http://www.cendio.com signature.asc Description: PGP signature -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel
Re: [Tigervnc-devel] building with libtool1.x
Antoine Martin wrote: So I tried to install libtool version 2 in /usr/local whilst keeping 1 in /usr: make[3]: Entering directory `/usr/src/tigervnc-1.0.0/common/os' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_COMMON_CONFIG_H -g -O2 -Wall -MT print.lo -MD -MP -MF .deps/print.Tpo -c -o print.lo print.c ../libtool: line 467: CDPATH: command not found ../libtool: line 1145: func_opt_split: command not found libtool: Version mismatch error. This is libtool 2.2.6, but the libtool: definition of this LT_INIT comes from an older release. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 libtool: and run autoconf again. [...] Is this from a fresh SVN checkout? If not, then try blowing away the autom4ate.cache directory. So then I removed version 1 completely, but I got: gcc -E jsimdcfg.inc.h | grep ^[\;%] | sed 's%_cpp_protection_%%' jsimdcfg.inc make all-am make[6]: Entering directory `/usr/src/tigervnc-1.0.0/common/jpeg/simd' /bin/bash ../libtool --mode=compile --tag NASM ./nasm_lt.sh nasm -felf -DELF jsimdcpu.asm -o jsimdcpu.lo libtool: compile: ignoring unknown tag NASM libtool: compile: ./nasm_lt.sh nasm -felf -DELF jsimdcpu.asm -fPIC -DPIC -o .libs/jsimdcpu.o nasm -felf -DELF jsimdcpu.asm -DPIC -o .libs/jsimdcpu.o This warning is normal. I get it all the time when building TigerVNC. The build should still work, unless there's another error somewhere. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel