- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: correct way of linking postgresql from iexpres...
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
тАО05-01-2006 03:43 AM
тАО05-01-2006 03:43 AM
I had the following command fail during a software build:
/opt/gcc343/pa20_64/bin/g++ -O -L../lib -L../cats -L../findlib -o bscan bscan.o block.o device.o dev.o label.o ansi_label.o dvd.o ebcdic.o autochanger.o acquire.o mount.o record.o match_bsr.o parse_bsr.o reserve.o butil.o read_record.o stored_conf.o spool.o wait.o \
-lsql -L/opt/iexpress/postgresql/lib -lpq -lz -lfind -lbac -lm -lpthread -lgen
/opt/iexpress/postgresql/lib/libpq.sl: file not recognized: File format not recognized
collect2: ld returned 1 exit status
my environment is set as follows:
export PATH=/opt/gcc343/pa20_64/bin:/usr/local/bin:$PATH
export MAKE=gmake
export CC=gcc
Upon checking I could see that /opt/iexpress/postgresql/lib/libpq.sl is a 32bit PA-RISC 1.0 library, while /opt/iexpress/postgresql/lib/pa20_64/libpq.sl is the 64bit version I need.
As my software is usually only supplied a base path (i.e. /opt/iexpress/mysql), I'm really curious to what the right way[tm] is in such a situation?
If I hadn't set out to resolve all issues on the way, I'd just move everything from lib/pa20_64/ to lib :)
Can anyone share some insight with me?
Solved! Go to Solution.
- Tags:
- ABI mismatch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 05:33 PM
тАО05-01-2006 05:33 PM
Re: correct way of linking postgresql from iexpress (32 vs. 64bit)?
"-L /opt/iexpress/postgresql/lib"
in the link line. you simply have to change it to
"-L /opt/iexpress/postgresql/lib/pa20_64"
if you still have problems. look at all the other paths specified with "-L" and make sure that they point to directories containing the appropriate versions of libraries.
--
ranga
[i work for hpe]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2006 05:34 AM
тАО05-02-2006 05:34 AM
Re: correct way of linking postgresql from iexpress (32 vs. 64bit)?
Is this an LDFLAG?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2006 12:00 AM
тАО05-05-2006 12:00 AM
Re: correct way of linking postgresql from iexpress (32 vs. 64bit)?
--
ranga
[i work for hpe]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2006 01:51 AM
тАО05-05-2006 01:51 AM
SolutionYes, you can export LDFLAGS and SHLIB_PATH before starting ./configure..
Other way is, editing the corresponding makefile to add /opt/iexpress/postgresql/lib/pa20_64
-Arun