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

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