- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Having trouble with archive libraries in 64-bi...
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
Forums
Discussions
Discussions
Discussions
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
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
02-15-2006 01:27 AM
02-15-2006 01:27 AM
Here is a sample command and output...
/bin/sh ../..//libtool --mode=link cc -static +DD64 -L/usr/local/lib -
L/usr/local/BerkeleyDB.4.3/lib -o dtest dtest.o liblber.la ../../libraries/lib
lutil/liblutil.a
cc +DD64 -o dtest dtest.o -L/usr/local/lib -L/usr/local/BerkeleyDB.4.3/lib ./.l
ibs/liblber.a ../../libraries/liblutil/liblutil.a
ld: (Warning) Cannot load library symbol table in ./.libs/liblber.a, it might be
missing or corrupted. Skipping library ./.libs/liblber.a.
ld: (Warning) Cannot load library symbol table in ../../libraries/liblutil/liblu
til.a, it might be missing or corrupted. Skipping library ../../libraries/liblut
il/liblutil.a.
Thanks for any help!
c*
Solved! Go to Solution.
- Tags:
- LDAP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 01:35 AM
02-15-2006 01:35 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
Just to make sure, have you installed all the dependancies like BerkeleyDB, etc.. in 64 bit ?
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 01:48 AM
02-15-2006 01:48 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
Thanks for asking.
c*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 05:26 PM
03-06-2006 05:26 PM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
You can "fix" this by: ar -rs foo.a
- Tags:
- foreign devil tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 08:06 AM
03-13-2006 08:06 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
c*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 10:26 AM
03-13-2006 10:26 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
You used the following?
/usr/ccs/bin/ar -rs foo.a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2006 10:42 AM
03-13-2006 10:42 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 08:43 AM
03-14-2006 08:43 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
frank3 /usr/local4/openldap-2.3.19 $ cd libraries/liblutil
frank3 /usr/local4/openldap-2.3.19/libraries/liblutil $ file liblutil.a
liblutil.a: archive file
frank3 /usr/local4/openldap-2.3.19/libraries/liblutil $ /usr/ccs/bin/ar -rs liblutil.a
frank3 /usr/local4/openldap-2.3.19/libraries/liblutil $ file *.o
avl.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
base64.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
csn.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
detach.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
entropy.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
fetch.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
getpass.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
getpeereid.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
hash.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
ldif.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
lockf.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
md5.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
passfile.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
passwd.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
sasl.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
setproctitle.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
sha1.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
signal.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
sockpair.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
tavl.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
testavl.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
utils.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
uuid.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
version.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
Then, running make again:
Entering subdirectory liblutil
Entering subdirectory liblber
cc +DD64 -I../../include -I../../include -I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include -c etest.c
/bin/sh ../..//libtool --mode=link cc -static +DD64 -L/usr/local/lib -L/usr/local/BerkeleyDB.4.3/lib -o etest etest.o liblber.la ../../libraries/liblutil/liblutil.a
cc +DD64 -o etest etest.o -L/usr/local/lib -L/usr/local/BerkeleyDB.4.3/lib ./.libs/liblber.a ../../libraries/liblutil/liblutil.a
ld: (Warning) Cannot load library symbol table in ./.libs/liblber.a, it might be missing or corrupted. Skipping library ./.libs/liblber.a.
ld: (Warning) Cannot load library symbol table in ../../libraries/liblutil/liblutil.a, it might be missing or corrupted. Skipping library ../../libraries/liblutil/liblutil.a.
Same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 09:32 AM
03-14-2006 09:32 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 01:23 AM
03-15-2006 01:23 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
- Tags:
- missing attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 06:42 AM
03-15-2006 06:42 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
Typically the mismatched ABI is related to mixing 32/64-bit modes in the same compilation. You checked all your .o (object files) but have you verified with elfdump that all the .a (archive libs) files that you're loading into your executable are indeed 64-bit.
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 08:46 AM
03-15-2006 08:46 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 11:13 AM
03-15-2006 11:13 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
Were you using -q to create or add to it?
My suggestion about using ar -rs doesn't seem to work.
You need to use ar -qs, or use ranlib(1) to fix your archive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2006 12:51 PM
03-15-2006 12:51 PM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
http://www1.itrc.hp.com/service/cki/search.do?category=c0&&mode=id&searchCrit=allwords&docType=EngineerNotes&searchString=TFKBRC00004691
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2006 01:25 AM
03-16-2006 01:25 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
elfdump -a liblutil.a
liblutil.a:
*** Archive Header ***
Date Uid Gid Mode Size Member Name
liblutil.a[base64.o]:
Mar 14 16:10 2006 105 201 304370 0x2070 base64.o
liblutil.a[csn.o]:
Mar 14 16:10 2006 105 201 304370 0xb78 csn.o
liblutil.a[entropy.o]:
Mar 14 16:10 2006 105 201 304370 0xaf0 entropy.o
liblutil.a[sasl.o]:
Mar 14 16:10 2006 105 201 304370 0x588 sasl.o
liblutil.a[signal.o]:
Mar 14 16:10 2006 105 201 304370 0x838 signal.o
etc..
and
elfdump -f -g liblutil.a
liblutil.a:
liblutil.a[base64.o]:
*** ELF Header ***
Class: ELF-64
Data: Big-endian
OS: HP-UX
ABI Version: 1
Type: REL
Machine: PA-RISC
Version: 1
Entry Addr: 0x0
Program Hdr Offset: 0x0
Section Hdr Offset: 0x1c30
Flags: Wide-mode
Flags: PA2.0
Elf Hdr Size: 0x40
Program Hdr Size: 0x38
Program Hdr Number: 0
Section Hdr Size: 0x40
Section Hdr Number: 17
Section Hdr String Idx: 16
liblutil.a[csn.o]:
... etc...
So, why when you looked at it was it not?
c*
- Tags:
- elfdump
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2006 07:43 AM
03-16-2006 07:43 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
Basically you are seeing the -a and -f output which is useless for ld. You need to look for the -g output. Use ranlib and you'll see the extra global symbol table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2006 07:55 AM
03-16-2006 07:55 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
frank3 /usr/local4/openldap-2.3.19/libraries/liblutil $ elfdump -g liblutil.a
liblutil.a:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2006 08:20 AM
03-16-2006 08:20 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
I get -g output on your test .a whether I use /usr/ccs/bin/ranlib or /usr/ccs/bin/ar -qs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2006 02:45 AM
03-17-2006 02:45 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2006 11:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 04:41 AM
03-20-2006 04:41 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
frank3:[/usr/local4/openldap-2.3.19] # ll /bin/ranlib
lr-xr-xr-t 1 root sys 19 Dec 22 2004 /bin/ranlib -> /usr/ccs/bin/ranlib
frank3:[/usr/local4/openldap-2.3.19] # ll /usr/ccs/bin/ranlib
-r-xr-xr-x 1 bin bin 854 Sep 9 2004 /usr/ccs/bin/ranlib
When I switched libtool to use the full path, now it works. Thanks for all of your help!!! Never would have found something that picky myself...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 09:30 AM
03-20-2006 09:30 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 09:58 AM
03-20-2006 09:58 AM
Re: Having trouble with archive libraries in 64-bit 11.11 HP-UX
This is not likely, the softlinks should work exactly the same. If you are using a "real" shell, what does whence ranlib or whence ar show?
It will likely show the wrong /usr/local/bin/ version?
So you should make sure that /usr/bin comes before /usr/local/bin/.