AIX

AIX

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


#Power
 View Only
Expand all | Collapse all

Symbol kpreadv (number 37) is not exported from dependent module /unix

  • 1.  Symbol kpreadv (number 37) is not exported from dependent module /unix

    Posted Thu November 06, 2008 05:56 AM

    Originally posted by: SystemAdmin


    Hi.
    I have developed some shared library. It library is working fine on one machine where I have compiled this one.
    When I tried to run it on another machine I have got next:

    0509-136 Symbol kpreadv (number 37) is not exported from
    dependent module /unix.
    0509-136 Symbol kpwritev (number 38) is not exported from
    dependent module /unix.

    Both machine have AIX 5.3
    I have understood that my compile is wrong. It looks like below.

    export OBJECT_MODE=64
    gcc -B /usr/bin -O1 -D_64BIT -maix64 -fPIC -I /usr/include -c get_cal.c -o get_cal.o
    gcc -shared -static -D_64BIT -maix64 get_cal.o -o get_cal.so

    Thanks in advance. Andrii.
    #AIX-Forum


  • 2.  Re: Symbol kpreadv (number 37) is not exported from dependent module /unix

    Posted Sun November 09, 2008 08:43 PM

    Originally posted by: SystemAdmin


    I assume you moved over both the program executable that uses the shared library and the shared library to the machine you are getting this error on? You might show us how you are compiling the program using the shared library.
    #AIX-Forum


  • 3.  Re: Symbol kpreadv (number 37) is not exported from dependent module /unix

    Posted Mon November 10, 2008 06:20 AM

    Originally posted by: SystemAdmin


    Hi.
    This shared library (get_cal.so) is used from oracle external stored procedure which works ok on machine where I compiled this one.
    I copied this shared library to another machine (where compiler is absent) and tried to run and got it errors.
    There is all compiler code.

    export OBJECT_MODE=64
    gcc -B/usr/bin -O1 -D_64BIT -maix64 -fPIC -I/usr/include -c get_cal.c -o get_cal.o
    gcc -shared -static -D_64BIT -maix64 get_cal.o -o get_cal.so

    I suppose that I wrong linked this shared library but where I don't underastand.
    Please help me if it is possible.
    Thanks.
    Andrii.
    #AIX-Forum


  • 4.  Re: Symbol kpreadv (number 37) is not exported from dependent module /unix

    Posted Thu November 13, 2008 04:56 AM

    Originally posted by: SystemAdmin


    repost
    #AIX-Forum