more questions on utils2_ak build
Posted in 2020
Mark Collins repeated his utils2_ak build problems on HP-UX 11.31: unsatisfied 64-bit symbols linking ul and a cc warning about -Wno-implicit-function-declaration for dbcopy. Art Kagel said it compiles on Linux, AIX and Solaris and asked about gcc. Mark had only the HP ANSI-C compiler and would wait for Linux; Art noted tools can be built on Linux and pointed at HP servers.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues
This is a follow-up question from last week, as I move through building the other utilities in the utils2_ak package.
First, w
hen 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 -lgenld: 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-declarationcc: 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 - driver
p - preprocessor
c - compiler
a - assembler
l - linker
I 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
Mark:
I dunno. It compiles fine on Linux (gcc), AIX xlc or gcc), and Solaris (cc):
$ make ul
INFORMIXC=gcc esql -O -DHAVE_GNU_GETOPT=1 -DHAVE_GETOPT_H=1 -o ul
ul.ec
-L/usr/lib -lgenDo you have gcc? IB that HP has it for download.
Art
Art S. Kagel, President and Principal Consultant
ASK Database Management
www.askdbmgt.com
Blog:
http://informix-myview.blogspot.com/
Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.
Art, Unfortunately, we do not have gcc, just the HP ANSI-C compiler. As we are working on migrating to 14.10 on Linux, I'll probably just wait until we're on the new environment to do the build. Thanks. ------------------------------ Mark Collins ------------------------------
You can build on Linux and point most of my tools at the HP servers remotely if needed. Art Art S. Kagel, President and Principal Consultant ASK Database Management www.askdbmgt.com Blog: http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.