cuitao2046 / gperftools

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

issue with compilation of gperftools-2.0 #516

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./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:
 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

Is there any other parameter required for configure command?

What version of the product are you using? On what operating system?
Solaris 
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:11

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:27

GoogleCodeExporter commented 9 years ago

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