AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1995.01.05 15:09 "Problem compiling tiffinfo in a Sun.", by Arturo Puente
1995.01.11 07:36 "Re: Problem compiling tiffinfo in a Sun.", by Karsten Spang
1995.01.18 15:31 "installing v3.3beta021.src.tar.gz on SPARC with SunOS 4.1.3_U1", by Jan Erik Odegard
1995.01.24 18:36 "Re: installing v3.3beta021.src.tar.gz on SPARC with SunOS 4.1.3_U1", by Sam Leffler

1995.01.11 07:36 "Re: Problem compiling tiffinfo in a Sun.", by Karsten Spang

I have a Sun IPX, running Sun OS 4.1.4 when I tried to compile the tiffinfo tool (v3.3.tiff.tar.gz), I got

gcc -g -I../libtiff -target sun4 -c getopt.c
gcc -o tiffinfo -g -I../libtiff tiffinfo.c getopt.o ../libtiff/libtiff.a
ld: Undefined symbol
_strtoul
collect: ld returned 2 exit status
*** Error code 1

I tried to find the strtoul symbol in several libraries, but without any luck. The same happens with tiffdump and tiff2ps, the same undefined symbol.

As you are using gcc, you should have the library libiberty.a. This library contains this function (and getopt, among others). Just add the switch '-liberty' when linking.

                               Karsten
--------------------------------------------------------------------------------
E-mail: krs@kampsax.dk                                      Karsten Spang
Phone:  +45 36 39 07 88                                     Kampsax Data
Fax:    +45 36 77 03 01                                     P.O. Box 1142
                                                            DK-2650 Hvidovre
                                                            Denmark