DMalloc and Solaris?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > DMalloc and Solaris?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    DMalloc and Solaris?  
jim_marshall2268@yahoo.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-18-06 10:55 PM

Hello,
I downloaded the DMalloc sources (5.4.2) and built it on Solars 9
(Unltra Sparc-30), but the resulting shared object (libdmallocth.so)
doesn't seem to export any functions. When I compile my program I get:

Undefined                      first referenced
symbol                            in file
dmalloc_realloc
/files/wbem/wsi/cserver/../cserver/cserver/lib/libcwbemapi.so
dmalloc_free
/files/wbem/wsi/cserver/../cserver/cserver/lib/libcwbemapi.so
dmalloc_malloc
/files/wbem/wsi/cserver/../cserver/cserver/lib/libcwbemapi.so

I am linking to libdmallocth.so (-ldmallocth) and it is specified as
the last library in the LDFLAGS.

The configure command I used was:
sh ./configure --disable-cxx --enable-threads --enable-shlib

bash-2.05$ uname -a
SunOS wbem-sparc 5.9 Generic_112233-01 sun4u sparc SUNW,Ultra-30

bash-2.05$ gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/specs
Configured with: ../configure --disable-nls --with-ld=/usr/ccs/bin/ld
--with-as=/usr/ccs/bin/as
Thread model: posix
gcc version 3.2.2

Any thoughts or help welcome!
Thanks

bash-2.05$ nm /usr/local/lib/libdmallocth.so
/usr/local/lib/libdmallocth.so:

[Index]  Value      Size    Type  Bind  Other Shndx  Name

[10]    |        0|      0|SECT |LOCL |0    |9      |
[2]    |      148|      0|SECT |LOCL |0    |1      |
[3]    |      212|      0|SECT |LOCL |0    |2      |
[4]    |      324|      0|SECT |LOCL |0    |3      |
[5]    |    66016|      0|SECT |LOCL |0    |4      |
[6]    |    66020|      0|SECT |LOCL |0    |5      |
[7]    |    66156|      0|SECT |LOCL |0    |6      |
[8]    |        0|      0|SECT |LOCL |0    |7      |
[9]    |        0|      0|SECT |LOCL |0    |8      |
[14]    |    66020|      0|OBJT |GLOB |0    |5      |_DYNAMIC
[12]    |    66156|      0|OBJT |LOCL |0    |6      |_END_
[16]    |    66016|      0|OBJT |GLOB |0    |4
|_GLOBAL_OFFSET_TABLE_
[17]    |        0|      0|OBJT |GLOB |0    |ABS
|_PROCEDURE_LINKAGE_TABLE_
[11]    |        0|      0|OBJT |LOCL |0    |1      |_START_
[18]    |    66156|      0|OBJT |GLOB |0    |5      |_edata
[13]    |    66156|      0|OBJT |GLOB |0    |6      |_end
[15]    |      479|      0|OBJT |GLOB |0    |3      |_etext
[1]    |        0|      0|FILE |LOCL |0    |ABS    |libdmallocth.so.t






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:51 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register