[Top][All Lists]

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

-version-number and BeOS

From: Christian Biesinger
Subject: -version-number and BeOS
Date: Fri, 31 Mar 2006 20:50:32 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9a1) Gecko/20051213 SeaMonkey/1.5a

[sending to the libtool mailing list; cc'ing the libpng one as this makes it impossible for me to compile libpng 1.2.9rc on BeOS using configure/libtool]


I think I found a bug in libtool on BeOS with -version-number. Tested libtool version is 1.5.22 (as part of libpng 1.2.9 RC)

The problem is:
make[1]: Entering directory `/boot/home/tmp/libpng-rc-testing/libpng-1.2.9rc1' /bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o -rpath /usr/local/lib -no-undefined -export-dynamic -version-number 0:9:0 -Wl,--version-script=libpng.vers png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo pngwtran.lo pngmem.lo pngerror.lo pngpread.lo pnggccrd.lo -lz
libtool: link: CURRENT `' must be a nonnegative integer
libtool: link: `0:9:0' is not valid version information
make[1]: *** [] Error 1

(Note that libpng 1.2.8 is OK (in this regard), as it uses -version-info rather than -version-number)

The cause of this problem seems to be this:
For BeOS, version_type=none. But, the code in around line 3236 does not handle a value of none. Only for the specific list of cases does it assign a value to current, age and revision.

But the check later, in line 3261, expects current to be initialized to a number, and shows an error if it's empty.

Shouldn't the case $version_type do something with "none" too?


reply via email to

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