Informix

 View Only
  • 1.  more questions on utils2_ak build

    Posted Tue March 31, 2020 12:22 PM
    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 -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 - 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


  • 2.  RE: more questions on utils2_ak build

    IBM Champion
    Posted Tue March 31, 2020 12:29 PM
    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 -lgen       
    Do you have gcc? IB that HP has it for download.

    Art

    Art S. Kagel, President and Principal Consultant
    ASK Database Management


    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.









  • 3.  RE: more questions on utils2_ak build

    Posted Tue March 31, 2020 01:41 PM
    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
    ------------------------------



  • 4.  RE: more questions on utils2_ak build

    IBM Champion
    Posted Tue March 31, 2020 03:09 PM
    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


    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.