Operating System - HP-UX
1834665 Members
2567 Online
110069 Solutions
New Discussion

Re: Cannot load library symbol table

 
sushant keerti
Advisor

Cannot load library symbol table

Hi,
I am trying to compile my application on hp-ux 11.23 ia64, which links with the tuxedo libraries.
But while linking it is throwng the below warning.

ld: (Warning) Cannot load library symbol table in /opt/tuxedo/tuxedo9.1/lib/libbuft.a, it might be missing or corrupted. Skipp
ing library /opt/tuxedo/tuxedo9.1/lib/libbuft.a.


I am using the below compiler option to compile

implicit_template_definition_warning=
CCFLAGS = +inst_implicit_include \
+noeh -D$(DEBUGS) -DOS_UNIX_HP -DMIS_T3 -g0 -AP +DD64 -Wl,-L $(VROOT)/develop/lib -Wl,+s -Wl,-L/appdev/mis/misdev/sushant/
perfmon_temp/src -Wl,-L/appdev/mis/misdev/BKP_SC/SC_APP -Wl,-L$(TUXDIR)/lib -Wl,-L$(DMQDIR)/lib/libdmq.sl -Wl,-L/usr/lib/hpux6
4 -Wl,-L/opt/langtools/lib/hpux64 \
$(CFLAGS)

----------------------
Also the elfdump of the library is

elfdump -f -g /opt/tuxedo/tuxedo9.1/lib/libbuft.a

/opt/tuxedo/tuxedo9.1/lib/libbuft.a:

/opt/tuxedo/tuxedo9.1/lib/libbuft.a[libbuft.sl]:

*** ELF Header ***

Class: ELF-64
Data: Big-endian
OS: HP-UX
ABI Version: 1
Type: DYN
Machine: IPF
Version: 1
Entry Addr: 0x0
Program Hdr Offset: 0x40
Section Hdr Offset: 0x3a28
Flags: big-endian PSR
Flags: 64-bit ABI
Flags: IA-64
Elf Hdr Size: 0x40
Program Hdr Size: 0x38
Program Hdr Number: 8
Section Hdr Size: 0x40
Section Hdr Number: 35
Section Hdr String Idx: 34


Please help
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Cannot load library symbol table

Shalom,

Either you are missing the libraries themselves or SHLIB_PATH is not set properly.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
sushant keerti
Advisor

Re: Cannot load library symbol table

Steven,
The SHLIB_PATH is set and and all the tuxedo libraries are also exist in the same path.
Is there any compilation flag am I missing?
Dennis Handly
Acclaimed Contributor

Re: Cannot load library symbol table

ld: (Warning) Cannot load library symbol table in .../libbuft.a, it might be missing or corrupted. Skipping library

How did you create this archive? Did you use a foreign devil tool? "whence ar"

elfdump -f -g .../libbuft.a
.../libbuft.a:
.../libbuft.a[libbuft.sl]:

You seem to have a .sl within a .a. According to elementary container theory, putting a container inside itself makes it disappear. :-)

Since you got no output with -g, that isn't a valid archive.

You also shouldn't be using this obsolete cfront template coding style option: +inst_implicit_include
The default on IPF is -AA, not -AP.