This is a follow-up question from last week, as I move through building the other utilities in the utils2_ak package.
First, when trying to make ul, I get:
> gmake ul -f Makefile.SMI
INFORMIXC=cc esql -O -Ae +DD64 -DHAVE_GNU_GETOPT=1 -DHAVE_GETOPT_H=1 -o ul ul.ec -L/usr/lib -lgen
ld: Unsatisfied symbol "__freopen64" in file ul.o
ld: Unsatisfied symbol "__fgetpos64" in file ul.o
ld: Unsatisfied symbol "__fsetpos64" in file ul.o
ld: Unsatisfied symbol "__ftruncate64" in file ul.o
ld: Unsatisfied symbol "__prealloc64" in file ul.o
ld: Unsatisfied symbol "__ftello64" in file ul.o
ld: Unsatisfied symbol "__truncate64" in file ul.o
ld: Unsatisfied symbol "__fseeko64" in file ul.o
ld: Unsatisfied symbol "__lockf64" in file ul.o
ld: Unsatisfied symbol "__fopen64" in file ul.o
ld: Unsatisfied symbol "__pwrite64" in file ul.o
ld: Unsatisfied symbol "__pread64" in file ul.o
ld: Unsatisfied symbol "__tmpfile64" in file ul.o
ld: Unsatisfied symbol "__setrlimit64" in file ul.o
ld: Unsatisfied symbol "__getrlimit64" in file ul.o
ld: Unsatisfied symbol "__lseek64" in file ul.o
ld: Unsatisfied symbol "__creat64" in file ul.o
17 errors.
Makefile.SMI:86: recipe for target 'ul' failed
gmake: *** [ul] Error 1
I'm sure these functions must be defined in some library, and that library needs to be added to the makefile target for ul.
Any suggestions? This is on HP-UX 11.31 (PA-RISC), if that matters for identifying the libraries that contain these functions.
Second question - when I tried to make the dbcopy utility, I got a warning that I'm not sure whether it's important or not:
> gmake dbcopy -f Makefile.SMI
INFORMIXC=cc esql -O -Ae +DD64 -DHAVE_GNU_GETOPT=1 -DHAVE_GETOPT_H=1 -o dbcopy dbcopy.ec -Wno-implicit-function-declaration
cc: warning 422: Unknown option "-Wno-implicit-function-declaration" ignored.
I looked through the man page for cc, and it seems that the '-W' option is supposed to be in the form '-Wx,arg_list', where 'arg_list' is a comma-separated list of arguments that are to be passed to a specific subprocess, and 'x' identifies the subprocess. Valid values of 'x' are:d - driverp - preprocessorc - compilera - assemblerl - linkerI modified the makefile to try each of these in order, and when I used '-Wa,no-implicit-function-declaration', the error went away. None of the other subprocess identifiers suppressed the message.Has anyone else encountered this? Does this sound like the correct solution?Thanks.------------------------------
Mark Collins
------------------------------
#Informix