-----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

Reply via email to