evilsong / gperftools

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

Error in compiling gperftools-2.0 on kernel 3.6.6-1 using gcc 4.7.2 #485

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have downloaded gperftools-2.0, and it fails to compile on my laptop having 
Arch Linux with kernel 3.6.6-1, using gcc 4.7.2. I did not have any warning 
while ./configure.

Offensive line:

../gperftools-2.0/./src/base/linuxthreads.cc: In function ‘void 
ListerThread(ListerParams*)’:
../gperftools-2.0/./src/base/linuxthreads.cc:312:24: error: invalid conversion 
from ‘void (*)(int, siginfo_t*, void*)’ to ‘void (*)(int, siginfo*, 
void*)’ [-fpermissive]
make: *** [libtcmalloc_la-linuxthreads.lo] Error 1

Please instruct.

//Sayan

Original issue reported on code.google.com by sayandee...@gmail.com on 21 Nov 2012 at 11:18

GoogleCodeExporter commented 9 years ago
Sounds like the signature for siginfo_t has changed. Any idea what it is 
defined as on your system?

Original comment by chapp...@gmail.com on 23 Dec 2012 at 2:52

GoogleCodeExporter commented 9 years ago
the error is due to a change in glibc-2.16+.  fixed in r176.

Original comment by vapier@chromium.org on 2 Mar 2013 at 9:11

GoogleCodeExporter commented 9 years ago
Indeed fixed. Just checked.

Original comment by alkondratenko on 10 Mar 2013 at 7:57

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

Original comment by chapp...@gmail.com on 10 Mar 2013 at 8:32

GoogleCodeExporter commented 9 years ago

Original comment by chapp...@gmail.com on 11 Mar 2013 at 11:33