Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2004
    Posts
    19

    Unanswered: Error in 4gl program compilation on Linux

    Guys,

    I have installed informix-4gl on Red hat enterprise Linux. I am trying to compile a simple 4gl program. Once I do the compilation, I get following erros.

    Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed.

    /opt/informix/product/9.4/lib/esql/libifgls.so: undefined reference to '_ctype_b'
    /opt/informix/product/9.4/lib/esql/libifgls.so: undefined reference to '_ctype_toupper'
    /opt/informix/product/9.4/lib/esql/libifgls.so: undefined reference to '_ctype_tolower'
    collect2: Id returned 1 exit status

    Have any of you expereinced this before? Any thoughts would be much appreaciated.

    Thanks guys!

    LR

  2. #2
    Join Date
    May 2004
    Location
    New York
    Posts
    248
    What was the order of you installation?
    Remember you have to install tolls, engine and then connectivity.

    Also, how are you compiling the app, any external C functions?
    Last edited by artemka; 09-28-04 at 11:07.

  3. #3
    Join Date
    Jun 2004
    Posts
    19
    Thanks artemca!

    Yes I installed in that order, first i4gl and isql, then engine and next client sdk.

    No this program does not contain external C functions. It is a simple display statement. My goal is to test the interaction of 4gl with websphere studio. I just wanted to test 4gl is working. Then I stepped on this issue. Thanks again for your attention.

  4. #4
    Join Date
    Jun 2004
    Posts
    19
    I checked isql and it works fine. Only i4gl creates this issue.

  5. #5
    Join Date
    Jun 2004
    Posts
    19
    another thing I noticed is that the program compiles fine if you only select compile->object. If I want to compile Runable (direct 4ge), then this error message comes.

  6. #6
    Join Date
    May 2004
    Location
    New York
    Posts
    248
    You can compile but can not link
    try
    c4gl -c prog_name.4gl prog_name.4ge
    c4gl -c prog_name.4gl -o prog_name.4ge

    see if you get any different errors

    Looks like you cannot link in the required C libraries
    I dont think that there are any env variables that you have to set
    but try setting LD_LIBRARY_PATH might help.

    Unfortunately it has been a while since a dealt with these issues and compiled a 4gl program

  7. #7
    Join Date
    Jun 2004
    Posts
    19
    Thanks! I tried it. But no sucess. I beleive this is a OS issue or a C compiler issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •