Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Informix Topics / October 2005

Tip: Looking for answers? Try searching our database.

Need esqlc HP-UX thread library consultant/guru

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
koreilly@emangoe.com - 27 Oct 2005 19:54 GMT
Have a esql program similar to demo1.ec that must run with the thread
libraries on HP-UX 11.11.

When a 'esql -thread program.ec -o program' is run, the program works.

However when the following 2 steps are run with a compile and link it
does not work (run time errors are 'State was 01I01 and code was 0'):

1. 'esql -thread program.ec'.

2. cc program.c -o program \
-I$INFORMIXDIR/incl/esql \
-Wl,-v,-s,+s,-a,shared_archive,-L$INFORMIXDIR/lib
-L$INFORMIXDIR/lib/esql \
-lthsql -lthasf -lthgen -lthos -lifgls \
-lnsl_s -lm -lsec -lnsl_s \
/home/informix/lib/esql/checkapi.o -lifglx \
-lpthread

A 'chatr program' on the version that works and version does not work
is similar.

Need to get this resolved and also may need some additional support as
I move forward. Interested parties should email me.

Thanks
Jonathan Leffler - 28 Oct 2005 04:56 GMT
> Have a esql program similar to demo1.ec that must run with the thread
> libraries on HP-UX 11.11.
[quoted text clipped - 7 lines]
>
> 2. cc program.c -o program \

You need to compile the ESQL/C code to object - and then do the linking.
I'm 99% sure there are options to the C compiler that ensure thread
safety that you're not using in this compile and link line.

Or, use 'esql -c -thread program.ec' and then replace 'program.c' with
program.o.

And, best of all, use esql to do the linking -- since it works.

> -I$INFORMIXDIR/incl/esql \
> -Wl,-v,-s,+s,-a,shared_archive,-L$INFORMIXDIR/lib
[quoted text clipped - 6 lines]
> A 'chatr program' on the version that works and version does not work
> is similar.

Why do you think it is better to link without the esql script?  I'd go
to great lengths to use it.

Signature

Jonathan Leffler                   #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.