Solaris 9 Custom Library Error


 
Thread Tools Search this Thread
Top Forums Programming Solaris 9 Custom Library Error
# 1  
Old 05-02-2005
Solaris 9 Custom Library Error

Gday People i have a library created in c++ that is used to control custom hardware. The library compiles fine, however when i compile a test program that links the library i get the following errors:

Code:
Undefined                       first referenced
 symbol                             in file
__1cHostream2l6ML_r0_               /usr/lib/libtds.so
cout                                /usr/lib/libtds.so
__1c2N6FI_pv_                       /usr/lib/libtds.so
__1cHostream2l6MpFrnDios__2_r0_     /usr/lib/libtds.so
__1cNIostream_init2t6M_v_           /usr/lib/libtds.so
__1cG__CrunGex_get6F_pv_            /usr/lib/libtds.so
__1cOunsafe_ostream2l6ML_r0_        /usr/lib/libtds.so
__1cG__CrunHex_skip6F_b_            /usr/lib/libtds.so
__1cG__CrunSregister_exit_code6FpG_v_v_ /usr/lib/libtds.so
__1c2k6Fpv_v_                       /usr/lib/libtds.so
__1cEendl6FrnHostream__1_           /usr/lib/libtds.so
__1cG__CrunKpure_error6F_v_         /usr/lib/libtds.so
__1cG__CrunIex_clean6F_v_           /usr/lib/libtds.so
__1cG__CrunMex_rethrow_q6F_v_       /usr/lib/libtds.so
cerr                                /usr/lib/libtds.so
__1cHostream2l6Ml_r0_               /usr/lib/libtds.so
__1cG__CrunIex_alloc6FI_pv_         /usr/lib/libtds.so
__1c2n6FI_pv_                       /usr/lib/libtds.so
__1cOunsafe_ostreamGoutstr6Mpkc2_v_ /usr/lib/libtds.so
__1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ /usr/lib/libtds.so
__1cNIostream_init2T6M_v_           /usr/lib/libtds.so
__1cDdec6FrnDios__1_                /usr/lib/libtds.so
__1cOunsafe_ostream2l6Ml_r0_        /usr/lib/libtds.so
__1c2K6Fpv_v_                       /usr/lib/libtds.so
__1cDhex6FrnDios__1_                /usr/lib/libtds.so

Any help will be great!

Regards,
Michael
# 2  
Old 05-02-2005
Are all you dependencies in your LD_LIBRARY_PATH environment variable when compiling the test program?
# 3  
Old 05-02-2005
Gday,

Yes my LD_LIBRARY_PATH dependencies seem to be set up fine.
When i do a ldd on the library all links seem to be fine as well

Code:
/usr/lib/libtds.so 
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmd5.so.1 =>   /usr/lib/libmd5.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1

I am compiling using

Code:
cc -I/usr/include -L/usr/lib -ltds main.c -o testit

# 4  
Old 05-04-2005
I have managed to find the problem.

I needed to link libiostream and libCrun

using

-liostream -lCrun

Thankyou for your help which lead to this solution
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk to supress error message with custom text

After a bash function is run the below file is produced: out_name.txt tab-delimeted Input Errors and warnings AccNo Genesymbol Variant Reference Sequence Start Descr. Coding DNA Descr. Protein Descr. GeneSymbol Coding DNA Descr. GeneSymbol Protein Descr. Genomic... (3 Replies)
Discussion started by: cmccabe
3 Replies

2. Web Development

Apache/2.2.15 custom error log

Hello, I've updated my apache access log to include the x-forward-for IP instead of my client(loadbalancer) ip. However, i can't seem to find a way to do the same for the error logs. Can someone please assist. Thank you. -K (0 Replies)
Discussion started by: kmaq7621
0 Replies

3. Solaris

Solaris 11 - custom publisher IPS

Hi all, we are starting to build some basic infrastructure for using solaris 11. I have built an IPS of solaris packages from the DVD images. what I want to do next is create a repository of custom packages. so in that case I want a publisher of "my-company-name" and not solaris. can... (1 Reply)
Discussion started by: robsonde
1 Replies

4. UNIX for Dummies Questions & Answers

Eclipse Error: The custom VM you have chosen is not a valid executable.

Hello there I am having the following problem: I installed Eclipse on my computer and when I went to Applications->Programmng->Eclipse it says: The custom VM you have chosen is not a valid executable. I am pretty new to Ubuntu ( 1 week ) so after I first googled this problem: I did the... (0 Replies)
Discussion started by: li_bi
0 Replies

5. UNIX for Dummies Questions & Answers

Hitting with custom port in CLOSE_WAIT state for long time in solaris 10

Hi, Occasionally I am getting the port state in CLOSE_WAIT for long time in the solaris server. I am not sure is it application problem or not. Because we are using port 9009 for Tomcat process in our web application, some time when I start the application, the port 9009 is in CLOSE_WAIT... (0 Replies)
Discussion started by: mgmk.84
0 Replies

6. UNIX for Dummies Questions & Answers

Creating Custom man Page in Solaris

Hello experts, I'm creating a custom man page. I have two unix boxes - one Hp & the other Solaris On HP, I simply moved the .Z file to /usr/man/man7.Z/ and after that "man myPage" worked. I then tried to do the same on Solaris. First thing is the relevant directory seemed to be... (1 Reply)
Discussion started by: sridhar_423
1 Replies

7. Solaris

Custom Spinning Your own Open solaris

I was wondering, If it is at all possible to spin my own custom opensolrais boot disc? The reason i ask is becausrwe i am running Open Solaris on a AMD 64 bit based system and neet flash and MPeg support right out of the box. A prompt answer Is much appreciated. (1 Reply)
Discussion started by: FloridaBSD
1 Replies

8. UNIX and Linux Applications

Custom error page when tomcat authentication fails

Hi people, i have this problem trying to get a custom error page when client authentication fails: I had configured successfully my tomcat with client authentication using certificates, and now I would like to redirect the user to a custom error page when authentication fails, but I always get a... (0 Replies)
Discussion started by: sebagra
0 Replies

9. Solaris

swat library error on Solaris 9

Hi, I had define swat in /etc/services, in /etc/inet/inetd.conf. When I start swat http://localhost:901 I receive the follow message: ld.so.1: swat: fatal: libiconv.so.2: open failed: No such file or directory Then I restart the system and the same message is comming. The swat is only... (2 Replies)
Discussion started by: MuellerUrs
2 Replies
Login or Register to Ask a Question