Page 1 of 1

libtiff not compiling

Posted: Sun Aug 05, 2007 1:09 am
by cosmito
Hi

I've checkout the source from svn://svn.ps2dev.org/ps2/trunk/libtiff and after typing "make" i've got the following errors

Code: Select all

$ make
ee-gcc -D_EE -O2 -G0 -Wall -msingle-float -I/usr/local/ps2dev/ps2sdk/ee/include
-I/usr/local/ps2dev/ps2sdk/common/include -I. -I -c tif_aux.c -o tif_aux.o
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/crt0.o(.text+0x48): In function `_star
t':
src/crt0.s:64: undefined reference to `_stack'
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/crt0.o(.text+0x4c):src/crt0.s:64: unde
fined reference to `_stack'
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/crt0.o(.text+0x50):src/crt0.s:65: unde
fined reference to `_stack_size'
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/crt0.o(.text+0x54):src/crt0.s:65: unde
fined reference to `_stack_size'
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/crt0.o(.text+0x84):src/crt0.s:76: unde
fined reference to `_heap_size'
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/crt0.o(.text+0x88):src/crt0.s:76: unde
fined reference to `_heap_size'
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/crt0.o(.text+0xd4):src/crt0.s:106: und
efined reference to `_ps2sdk_args_parse'
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/crt0.o(.text+0xdc):src/crt0.s:110: und
efined reference to `_ps2sdk_libc_init'
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/crt0.o(.text+0x134): In function `_exi
t':
src/crt0.s:150: undefined reference to `main'
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/crt0.o(.text+0x154):src/crt0.s:163: un
defined reference to `_ps2sdk_libc_deinit'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x94): In function `TIFFDefaultTransferF
unction':
tif_aux.c: undefined reference to `_TIFFmalloc'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0xd4):tif_aux.c: undefined reference to
`_TIFFmalloc'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x11c):tif_aux.c: undefined reference to
 `_TIFFfree'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x12c):tif_aux.c: undefined reference to
 `_TIFFfree'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x13c):tif_aux.c: undefined reference to
 `_TIFFfree'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x154):tif_aux.c: undefined reference to
 `_TIFFmemcpy'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x15c):tif_aux.c: undefined reference to
 `_TIFFmalloc'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x174):tif_aux.c: undefined reference to
 `_TIFFmemcpy'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x1f4):tif_aux.c: undefined reference to
 `powf'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x22c):tif_aux.c: undefined reference to
 `floorf'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x28c): In function `TIFFDefaultRefBlack
White':
tif_aux.c: undefined reference to `_TIFFmalloc'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x35c): In function `TIFFVGetFieldDefaul
ted':
tif_aux.c: undefined reference to `TIFFVGetField'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x564):tif_aux.c: undefined reference to
 `TIFFError'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x648):tif_aux.c: undefined reference to
 `_TIFFmalloc'
/cygdrive/j/temp/wnovo/cccneIj3.o(.text+0x7e4):tif_aux.c: undefined reference to
 `_TIFFmalloc'
collect2: ld returned 1 exit status
make: *** [tif_aux.o] Error 1
Any hints?

Posted: Sun Aug 05, 2007 2:11 am
by Neovanglist
You needed LIBTIFF set... but I've commited a fix to SVN now so that having LIBTIFF set is not required for compilation.