ld: (Warning) Symbol "XXX" is not exported but is imported by a shared


 
Thread Tools Search this Thread
Operating Systems HP-UX ld: (Warning) Symbol "XXX" is not exported but is imported by a shared
# 1  
Old 01-30-2009
ld: (Warning) Symbol "XXX" is not exported but is imported by a shared

Hi,
I am trying to build the package for my build tree built with HP UX ecom compiler. I added the flags +check=all to enable run time checks.
I compile the tree successfully, but while making the packages I am getting following error:


=== vxms tests [ 32 bit - em ]
= Generating pgncpio
ld: (Warning) Symbol "_rtc_check_guards_" is not exported but is imported by a shared library
1 warnings.
# 2  
Old 01-30-2009
This means:
"_rtc_check_guards_" is called by one of the libraries you linked against, but not defined (exported)

There is no entry point for "_rtc_check_guards_" linked into your code. So, if for some reason the other code in the library decides to call it, your code will abort.
# 3  
Old 01-30-2009
Ohh ok. So, how do I get rid of such error/warning?
# 4  
Old 01-30-2009
actually, the symbol- 'rtc_check_guards' is defined in the library I have linked against.
# 5  
Old 01-30-2009
What does nm show - exactly? If what you said is correct then the warning would not appear.
Code:
nm libwhatever.sl | grep 'rtc_check_guards'

# 6  
Old 01-31-2009
Hi,
I found libvxfs.sl, it was generated by SHLIB during the build process.

$nm libvxfs.sl | grep rtc
[683] | 0| 0|FUNC |GLOB |0| UNDEF|_rtc_check_bounds_with_index
[702] | 0| 0|FUNC |GLOB |0| UNDEF|_rtc_check_guards_
[615] | 0| 0|FUNC |GLOB |0| UNDEF|_rtc_init_check
[owww@fshpbld2 ~/work/build/vxfs_5_0_1/fsqa/tests/conform/vxms/obj32em]

and the directory where my make is failing uses the same libvxfslib.sl
I checked and found out that shilib was not provided the library path for rtc libraries so I tried building libvxfs with the local -L <lirtc.so path> option.
Still I am getting the same error.

There are other lib*.sl too, shall i also provide -L option to them ?

(Thanks for the sharing your knowledge, its helping me out)

Pritam
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to allign output data in UNIX that is separated with a pipe "|" symbol ?

Experts , In the given output of the log file, the 2nd field that is separated by "|" pipe is not aligned well due to the uneven data length, I would like it to align the 2nd column with 37 length (that is disturbed in the output) including the pipe . The two pepe "|" would be in a aligned way... (2 Replies)
Discussion started by: rveri
2 Replies

2. AIX

echo $varibla | mail -s "subject" "xxx@xxx.com" not ruuning as expected

Hi Folks, As per the subject, the following command is not working as expected. echo $variable | mail -s "subject" "xxx@xxx.com" Could anyone figure it out whats wrong with this. I am using AIX box. Regards, (2 Replies)
Discussion started by: gjarms
2 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. UNIX for Dummies Questions & Answers

How to grep value with "xxx"

Hi, I don't know how to grep two value with "" in the file, anyone can help? for example: the text file John cash "1234" "ok" may card "1245" "unknown" John card "4567" "ok" may cash "1111" "ok" may card "1234" "ok" peter card "1234" "ok" John card "1234" "ok" I would like to grep... (4 Replies)
Discussion started by: happyv
4 Replies

5. AIX

"fuser -c -k /XXX/XXXXXXX" Fails and stuck on AIX 6100-05-01-1016

Hi I was wondering if anybody has come across in a failure of fuser command. We have a backup script that is: fuser -c -k /XXX/XXXXXXX sync;sync umount /XXX/XXXXXXX/ backup -0 -f /dev/rmt0.1 -u /dev/XXXXXXXlv mount /XXX/XXXXXXX/ sync;sync The script is called from crontab via an... (2 Replies)
Discussion started by: ggovotsis
2 Replies

6. Shell Programming and Scripting

Compiling multiple ".c" files starting with xxx

Hello, I am trying to figure out how I can write a bashscript that compiles several ".c" files that start with xxx (example: xxx_try.c and xxx_that.c) So I want to compile all these files with a bash script. Anyone can help pls? (6 Replies)
Discussion started by: Freak79
6 Replies

7. Shell Programming and Scripting

Script for delete tmp files older than 15 days and owned by "xxx" id

Hi All , I want to delete files from /tmp directory created by "xxxx" id. because i got the list says more than 60 thousand files were created by "xxxx" id since 2002. The /tmp directory has lot of files created by different user ids like root,system etc.. But, i need a script to... (2 Replies)
Discussion started by: vparunkumar
2 Replies

8. AIX

xx=`date +"%a %b %d"`;rsh xxx grep "^$XX" zzz ?

AIX 4.2 I am trying to do an rsh grep to search for date records inside server logs by doing this : xx=`date +"%a %b %d"` rsh xxx grep "^$XX" zzz gives : grep: 0652-033 Cannot open Jun. grep: 0652-033 Cannot open 11. But if I do : xx=`date +"%a %b %d"` grep "^$XX" zzz it works... (2 Replies)
Discussion started by: Browser_ice
2 Replies

9. Programming

shared object "undefined symbol: fstat" error

Didn't have this problem in AIX, but ported to Linux with GCC compiler and am now getting a runtime error: tssutil: symbol lookup error: /work/agility/devel/bin/libagam.so: undefined symbol: fstat I'm sure most of you know that fstat is an intrinsic function just like printf, memcpy, etc. When I... (5 Replies)
Discussion started by: marcus121
5 Replies
Login or Register to Ask a Question