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 > Compiling with Esql-C and gcc on 64 bits Solaris

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-15-04, 15:02
avleyva avleyva is offline
Registered User
 
Join Date: Mar 2004
Posts: 8
Angry Compiling with Esql-C and gcc on 64 bits Solaris

Hi everybody.

I'm trying to compile an ESQL-C program using gcc instead of cc, the box is an E-15000 from SUN, with Solaris at 64 bits. I set the variable INFORMIXC to gcc.

The problem I have is that when I execute:

esql -c -g -D_REENTRANT file.ec

I get the error:

gcc: language arch=v9 not recognized
gcc: file.c: linker input file unused because linking not done

As far I can see "language arch=v9" is a flag passed by esql command to cc, in order to produce a 64 bits executable, but this flag is not recognized by gcc wich uses "-m64" to do the same thing.

Does anybody knows how to avoid esql passes the flag "language arch=v9" to c compiler?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 06-15-04, 16:28
moespi moespi is offline
Registered User
 
Join Date: Sep 2002
Location: Guanajuato, Mexico
Posts: 8
Red face modify (a copy ) esql

Hello:
in $INFORMIXDIR/bin the file esql is a script, (copy to esqltest ) and
modify vars like CC CPP ... , I remove this flag and work, the flag is for c of SUN.

Sorry my bad English
Reply With Quote
  #3 (permalink)  
Old 06-15-04, 18:07
avleyva avleyva is offline
Registered User
 
Join Date: Mar 2004
Posts: 8
Smile Thanks!!!!!

Thank you, this really works!!!!
Reply With Quote
  #4 (permalink)  
Old 06-15-04, 18:13
avleyva avleyva is offline
Registered User
 
Join Date: Mar 2004
Posts: 8
Smile Thanks!!!!!

Thank you, this really works!!!!
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