* First I got the source from libtiff.org: 3.8.2
* Then I did the usuall config/config.sub patch to add the psp allegrex. Ran autoconf.
*
Code: Select all
LDFLAGS="-L`psp-config -p`/lib -lc -lpspuser" ./configure --host=psp --prefix=`psp-config -P` --disable-shared
* make failes with:
Code: Select all
libtool: link: CURRENT `' must be a nonnegative integer
libtool: link: `3:8:2' is not valid version information
Code: Select all
--- config/ltmain.sh 2006-01-23 18:22:32.000000000 +0000
+++ ../tiff-3.8.2-psp2/config/ltmain.sh 2008-09-21 07:41:34.000000000 +0100
@@ -4711,7 +4711,7 @@
# which has an extra 1 added just for fun
#
case $version_type in
- darwin|linux|osf|windows)
+ darwin|linux|osf|windows|none)
current=`expr $number_major + $number_minor`
age="$number_minor"
revision="$number_revision"
* This times it fails with:
Code: Select all
/Volumes/Extra/Users/paulo/pspdev/bin/../lib/gcc/psp/4.3.1/../../../../psp/lib/libc.a(lib_a-getopt.o):(.bss+0x4): multiple definition of `optind'
../port/.libs/libport.a(getopt.o):/Users/paulo/Documents/PSP/Apps/Bookr/Arrr/tiff-3.8.2-psp/port/getopt.c:56: first defined here
* The reason configure failed detecting getopt is here, in config.log:
Code: Select all
psp-gcc -o conftest -g -O2 -Wall -W -I/Users/paulo/include -L/Users/paulo/pspdev/psp/sdk/lib -lc -lpspuser conftest.c -lm -lc >&5
/Volumes/Extra/Users/paulo/pspdev/bin/../lib/gcc/psp/4.3.1/../../../../psp/lib/libc.a(_write.o): In function `_write':
libcglue.c:(.text+0x84): undefined reference to `sceIoWrite'
So this is where I'm stuck. How can I tell autoconf to place the libs _before_ the source file? Why is it adding -lc when it is already there? Even if I solve this issue, -lc at the end will bite me again later for sure.
I'm sure this problem has occurred before with other libs based on autotools. How did other developers solve it?
Thanks