- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gettext and sybase both have libintl.sl. I nee...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2006 12:41 AM
тАО10-18-2006 12:41 AM
Trying to build apache2 with php5 and sybase-12_5 using gcc with flex and gettext.
The gettext part of gcc has /usr/local/lib/libintl.sl.
This is interfering with sybase's /usr/sybase-12_5/lib/libintl.sl.
...and also with mysql-5.0.26.
Isn't there a way to let gcc know to use the contents of both libraries??
Here's an even more general question:
How do compile stuff if two different library files have the same name? (in this case libintl.sl)
steve
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2006 12:45 AM
тАО10-18-2006 12:45 AM
Re: gettext and sybase both have libintl.sl. I need both.
the order in which you list your libs in PATh and SHLIB_PATH would decide.
You may get duplicate symbol warnings if multiple libs are included.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2006 12:48 AM
тАО10-18-2006 12:48 AM
Re: gettext and sybase both have libintl.sl. I need both.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2006 01:03 AM
тАО10-18-2006 01:03 AM
Re: gettext and sybase both have libintl.sl. I need both.
in that case use the -L option of gcc to add your libs.
If you do this, unsure how you are going to handle duplicate entries in the libs. If you have an identical function name in two libs the compile is going to complain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2006 01:14 AM
тАО10-18-2006 01:14 AM
Re: gettext and sybase both have libintl.sl. I need both.
Meanwhile......
This -L looks like it overrides the search path. Once the first libintl.sl file is found I DON'T want it to stop. I was hoping you would tell me something like....
ln -s sybase/ASE-12_5/lib/libintl.sl libintlSYB.sl
Then gcc would see it as a separate library?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2006 04:40 AM
тАО12-12-2006 04:40 AM
Re: gettext and sybase both have libintl.sl. I need both.
I see spending days on digging for the answer can make a guy grumpy.
I see the -L will add a directory to the search path. But it will still not allow a duplicate file name like libintl.sl.
Also as stated above, if the two files are allowed, there is a good possiblity their contents would interfere with each other (i.e. have the same symbols defined in them).
The actual solution to this should be covered somewhere on the internet. Sybase exists. Gcc exists. You'd think someone might have used these two products together. (ah. but on HPUX?).
I have. But it was earlier versions of gcc and sybase.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2006 05:50 AM
тАО12-12-2006 05:50 AM
SolutionA *real* long shot, but couldn't you make 3 passes at this, like this:
1) link those things that need /usr/local/lib/libintl.sl to ojb1.o
2) link those things that need /usr/sybase/sybase-12/5/lib/libintl.sl to obj2.o
3) link those ojb1.o and obj2.o together to create the real executable.
note: chatr should show you which is linked where. also, you *might* try *statically* linking one (or both) before the third step
really out there, but might work. on the other hand, you might simply try using only one version of the library and see what gives.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2006 06:27 AM
тАО12-12-2006 06:27 AM
Re: gettext and sybase both have libintl.sl. I need both.
Also check the first "user contributed note" at http://us3.php.net/sybase.
Sounds like he resolved a similar situation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2006 12:45 AM
тАО12-13-2006 12:45 AM