Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210867 - net-libs/wvstreams-4.4: does not compile when valgrind is available
Summary: net-libs/wvstreams-4.4: does not compile when valgrind is available
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
: 222961 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-20 11:45 UTC by Martin Mokrejš
Modified: 2008-06-21 01:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
workaround (valgrind.patch,610 bytes, patch)
2008-04-02 18:29 UTC, Raimar Sandner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2008-02-20 11:45:27 UTC
>>> Compiling source in /var/tmp/portage/net-libs/wvstreams-4.4/work/wvstreams-4.4 ...
 * econf: updating wvstreams-4.4/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating wvstreams-4.4/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --without-qdbm --with-pam --with-openslp --with-qt --disable-debug --without-tcl --without-swig --with-xplc --enable-verbose --with-bdb --with-zlib --with-openssl --build=i686-pc-linux-gnu
[cut]
checking for valgrind... valgrind
checking valgrind/memcheck.h usability... yes
checking valgrind/memcheck.h presence... yes
checking for valgrind/memcheck.h... yes
0.3.13
checking for xplc/core.h... yes
checking for XPLC_getServiceManager in -lxplc... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress in -lz... yes
configure: creating ./config.status
config.status: creating config.mk
config.status: WARNING:  config.mk.in seems to ignore the --datarootdir setting
config.status: creating gnulib/Makefile
config.status: WARNING:  gnulib/Makefile.in seems to ignore the --datarootdir setting
[cut]
i686-pc-linux-gnu-g++ -O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -fPIC -DPIC -D_BSD_SOURCE -D_GNU_SOURCE -DISLINUX -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDEBUG=0  -Wall -Iyes/include -I/usr/qt/3/include -I/usr/qt/3/include/qt3 -I/usr/include/xplc-0.3.13    -I./include -Iinclude -Iinclude -Ignulib -pipe -fPIC -DPIC -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -fPIC -DPIC -D_BSD_SOURCE -D_GNU_SOURCE -DISLINUX -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDEBUG=0 -Wall -Woverloaded-virtual -fno-exceptions -Iyes/include -I/usr/qt/3/include -I/usr/qt/3/include/qt3 -I/usr/include/xplc-0.3.13    -I./include -Iinclude -Iinclude -Ignulib -pipe -fPIC -DPIC -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Woverloaded-virtual     -c utils/wvtask.cc -o utils/wvtask.o
utils/wvtask.cc: In function ‘void valgrind_fix(char*)’:
utils/wvtask.cc:80: error: ‘VALGRIND_MAKE_READABLE’ was not declared in this scope
utils/wvtask.cc: In static member function ‘static int WvTaskMan::run(WvTask&, int)’:
utils/wvtask.cc:276: error: ‘VALGRIND_MAKE_READABLE’ was not declared in this scope
utils/wvtask.cc: In static member function ‘static int WvTaskMan::yield(int)’:
utils/wvtask.cc:298: error: ‘VALGRIND_MAKE_READABLE’ was not declared in this scope
make: *** [utils/wvtask.o] Error 1
 * 
 * ERROR: net-libs/wvstreams-4.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2860:  Called die
 * The specific snippet of code:
 *       emake CXXOPTS="-fPIC -DPIC" COPTS="-fPIC -DPIC" || die "compile failed";
 *  The die message:
 *   compile failed
Comment 1 Martin Mokrejš 2008-02-20 11:48:23 UTC
/var/tmp/portage/net-libs/wvstreams-4.4/work/wvstreams-4.4/config.status contains the following two lines related to valgrind:

s,@VALGRIND@,|#_!!_#|valgrind --tool=memcheck --leak-check=yes --num-callers=10 --suppressions=$(WVSTREAMS_SRC)/suppressions.wv --log-file=valgrind.log,g

s,^\([   #]*\)[^         ]*\([   ]*HAVE_VALGRIND_MEMCHECK_H\)[   (].*,\1define\2 1 ,
Comment 2 Raimar Sandner 2008-04-02 18:29:34 UTC
Created attachment 148116 [details, diff]
workaround

This is a workaround I found in the wvstreams mailinglist:
http://groups.google.com/group/wvstreams-devel/browse_thread/thread/ebaa5496262a753a

I used this patch in an overlay ebuild and it compiled, but it sure cannot be called a "fix".
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2008-06-21 01:26:15 UTC
*** Bug 222961 has been marked as a duplicate of this bug. ***
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2008-06-21 01:45:31 UTC
Fixed in cvs by disabling valgrind support.