AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only

Static linking with gcc on AIX 6.1

  • 1.  Static linking with gcc on AIX 6.1

    Posted Thu July 05, 2012 09:09 AM

    Originally posted by: dimir


    I cannot link anything statically on this machine:

    $ cat conftest.c && echo compiling...; gcc conftest.c -static -o conftest
    int main() { return 0; }
    compiling...
    ld: 0706-003 Cannot find or read import file: /lib/syscalls.exp
    ld:accessx(): No such file or directory
    collect2: ld returned 255 exit status

    I read from one resource that I'm missing bos.adt.syscalls package which contains syscalls.exp:

    $ lslpp -l bos.adt.syscalls
    lslpp: Fileset bos.adt.syscalls not installed.

    Is that correct? Will installing that package enable static linking on this box?

    $ oslevel -s
    6100-01-01-0823

    Thanks.
    #AIX-Forum