If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Error in 4gl program compilation on Linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-27-04, 15:41
aselar aselar is offline
Registered User
 
Join Date: Jun 2004
Posts: 19
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
Reply With Quote
  #2 (permalink)  
Old 09-28-04, 10:03
artemka artemka is offline
Registered User
 
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 10:07.
Reply With Quote
  #3 (permalink)  
Old 09-28-04, 12:07
aselar aselar is offline
Registered User
 
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.
Reply With Quote
  #4 (permalink)  
Old 09-28-04, 13:25
aselar aselar is offline
Registered User
 
Join Date: Jun 2004
Posts: 19
I checked isql and it works fine. Only i4gl creates this issue.
Reply With Quote
  #5 (permalink)  
Old 09-28-04, 13:29
aselar aselar is offline
Registered User
 
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.
Reply With Quote
  #6 (permalink)  
Old 09-28-04, 16:45
artemka artemka is offline
Registered User
 
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
Reply With Quote
  #7 (permalink)  
Old 09-29-04, 12:20
aselar aselar is offline
Registered User
 
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On