Unix Programming - DMalloc and Solaris?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2006 > DMalloc and Solaris?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author DMalloc and Solaris?
jim_marshall2268@yahoo.com

2006-01-18, 5: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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com