stellar2012wxg / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[sunos] error while compiling gperftools-2.0 #514

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run ./configure CXXFLAGS=-DTCMALLOC_SMALL_BUT_SLOW
2. make
3.

What is the expected output? What do you see instead?
I am getting following error after make:
ld: warning: file /usr/sfw/lib/libstdc++.so: attempted multiple inclusion of 
file
Undefined                       first referenced
 symbol                             in file
__xnet_socketpair                   ./.libs/libtcmalloc_debug.so
ld: fatal: symbol referencing errors. No output written to 
.libs/debugallocation_test
collect2: ld returned 1 exit status
make: *** [debugallocation_test] Error 1

Do I need to add any other parameter while running ./configure command?

What version of the product are you using? On what operating system?
I am using solaris following version:
> uname -a
SunOS joey 5.10 Generic_147441-07 i86pc i386 i86pc Solaris

Please provide any additional information below.

Original issue reported on code.google.com by gsso...@gmail.com on 26 Mar 2013 at 10:03

GoogleCodeExporter commented 9 years ago
Issue 516 has been merged into this issue.

Original comment by alkondratenko on 6 Jul 2013 at 10:36

GoogleCodeExporter commented 9 years ago
apparently socketpair needs -lsocket on solaris.

Try doing something like ./configure "LDFLAGS=-lsocket"

Original comment by alkondratenko on 6 Jul 2013 at 10:37

GoogleCodeExporter commented 9 years ago

Original comment by alkondratenko on 14 Jul 2013 at 3:01