Error: /usr/bin/ld: Unresolved on tru64 V5.1

From: Qingjuan Gu (qingjuan@wistar.upenn.edu)
Date: Fri Jun 21 2002 - 14:08:40 EDT


Hello, I am trying to install hp2xx on Tru64 V5.1, when I 'make all', I got this error message:

gcc -DUNIX -DHAS_UNIX_X11 -DPNG -c -O2 -Wall -ansi -fstrength-reduce -finline-functions -I. lindef.c
rm -f to_x11.o
gcc -DUNIX -DHAS_UNIX_X11 -DPNG -c -O2 -Wall -ansi -fstrength-reduce -finline-functions -I. to_x11.c
rm -f png.o
gcc -DUNIX -DHAS_UNIX_X11 -DPNG -c -O2 -Wall -ansi -fstrength-reduce -finline-functions -I. png.c
rm -f to_png.o
gcc -DUNIX -DHAS_UNIX_X11 -DPNG -c -O2 -Wall -ansi -fstrength-reduce -finline-functions -I. to_png.c
gcc hp2xx.o hpgl.o picbuf.o bresnham.o chardraw.o getopt.o getopt1.o to_vec.o to_pcx.o to_pcl.o to_eps.o to_img.o to_pbm.o to_rgip.o std_main.o to_fig.o clip.o fillpoly.o pendef.o lindef.o to_x11.o png.o to_png.o -lX11 -lm -o hp2x
x
/usr/bin/ld:
Unresolved:
png_create_write_struct
png_create_info_struct
png_destroy_write_struct
png_init_io
png_set_filter
png_set_compression_level
png_set_compression_mem_level
png_set_compression_strategy
png_set_compression_window_bits
png_set_compression_method
png_set_IHDR
png_malloc
png_set_PLTE
png_write_info
png_set_packing
png_write_image
png_write_end
collect2: ld returned 1 exit status
*** Exit 1
Stop.
athena.wistar.upenn.edu>

Here is mt Makefile:
# Utilities etc.:
#
SHELL = /bin/sh

CHMOD = chmod
CP = cp
MKINFO = makeinfo
RMCMD = rm -f
STRIP = strip

# Installation sites (GNU conventions):

prefix = /usr/local
bindir = $(prefix)/bin
includedir = $(prefix)/include
mandir = $(prefix)/man
man1dir = $(mandir)/man1
infodir = $(prefix)/info

# CC and CFLAGS set for gcc, but any ANSI-C compiler should work.
# For non-gcc compilers, simply set CFLAGS = -O (to start with)
#
CC = gcc
CFLAGS = -O2 -m486 -I/usr/X11R6/include $(DEFINES) $(EX_DEFS) -Wall -pedantic -Wuninitialized -Wunused -Wreturn-type -Wmiss
ing-prototypes -Wstrict-prototypes

#CFLAGS = +O1 -Aa -D_HPUX_SOURCE -DSYSV -I/usr/include/X11R5 -I/usr/include/X11R4 $(DEFINES)

LFLAGS = -L/usr/X11R6/lib # only sometimes needed; see below for examples
CPPFLAGS = -I. # only sometimes needed; see below for examples
BINDCMD = # only needed for EMX and DJGPP DOS extenders

# and/or -ltiff for TIFF
#
DEFINES = -DUNIX -DHAS_UNIX_X11
PREVIEWER = to_x11
#ALL_LIBS = -L/usr/lib/X11R6 -lpng -ltiff -ljpeg -lz -lX11 -lm
ALL_LIBS = -L/usr/lib/X11R6 -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib/X11 -ljpeg -lpng -lz -lX11 -lm

...

I have tried cc, gcc, gunmake, make, it did not work at all, does anybody have good idea?

Thank you very much.

Grace



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:44 EDT