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 > Errors linking to SNAPlus2 libraries when running make on c programs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-04, 10:37
Josie Josie is offline
Registered User
 
Join Date: Apr 2004
Location: Chicago area
Posts: 2
Post Errors linking to SNAPlus2 libraries when running make on c programs

We currently upgraded our HP-UX development box from 10.20 to 11.0 and SNAPlus to SNAPlus2. We have an application developed in C, using Informix and embedded SQL, that we are having trouble linking to SNAPlus2 libraries. Any ideas? The current informix shell script for running the ESQL/C preprocessor that we are running is dated 12/4/98. Could this be part of the problem?

Any ideas?

Thanks, Josie
Reply With Quote
  #2 (permalink)  
Old 04-14-04, 10:01
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: Errors linking to SNAPlus2 libraries when running make on c programs

Quote:
Originally posted by Josie
We currently upgraded our HP-UX development box from 10.20 to 11.0 and SNAPlus to SNAPlus2. We have an application developed in C, using Informix and embedded SQL, that we are having trouble linking to SNAPlus2 libraries. Any ideas? The current informix shell script for running the ESQL/C preprocessor that we are running is dated 12/4/98. Could this be part of the problem?

Any ideas?

Thanks, Josie
Hi Josie,

A question: You recompiled programs ?

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 04-19-04, 16:37
Josie Josie is offline
Registered User
 
Join Date: Apr 2004
Location: Chicago area
Posts: 2
Hi Gustavo,
Yes I did recompile. I did some research on the HP website and found that I needed to change the library names I'm looking for in my make file and I got it to work for one of my modules. However now I am not able to get the correct linkage for another one. And I'm using the same make file for all the application modules!

This is what I'm using for my make file:

INFORMIXC=cc
CC=cc

CCFLAGX=-Ae +DA1.0 +O4 +Onolimit +ESlit -o$(OUTFILE)
CCFLAGO=-Ae +DA1.0 +O4 +Onolimit +ESlit -c

.ec.x:
sh -x /d2/informix/bin/esql $(CCFLAGX) -I/usr/include/sna $*.ec $(OBJME
M)
.ec.xs:
sh -x /d2/informix/bin/esql $(CCFLAGX) -I/usr/include/sna $*.ec $(OBJME
M) \
-L/opt/sna/lib -lcpic -lsna -ldce -lV3 -lcov -L/opt -lcsv -lsna -ldce -l
lua
.ec.o:
sh -x /d2/informix/bin/esql $(CCFLAGO) -I/usr/include/sna $*.ec
.c.x:
cc $(CCFLAGX) -I/usr/include/sna $*.c $(OBJMEM)
.c.o:
cc $(CCFLAGO) -I/usr/include/sna $*.c
.c.xs:
sh -x /d2/informix/bin/esql $(CCFLAGX) $*.c $(OBJMEM)

.SUFFIXES: .x .xs .o .ec .c

where OBJMEM is being passed in from another make file that calls the above.
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