Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57760 - Valgrind 2.1.2 now available
Summary: Valgrind 2.1.2 now available
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Luca Barbato
URL: http://valgrind.kde.org/downloads.html
Whiteboard:
Keywords:
: 57847 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-20 12:04 UTC by Davi Arnaut
Modified: 2004-07-22 06:43 UTC (History)
4 users (show)

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


Attachments
my used ebuild (valgrind-2.1.2.ebuild,934 bytes, text/plain)
2004-07-21 07:55 UTC, f5d8fd51ed1e804c9e8d0357e8614e0493b06e96
Details
patch to get valgrind 2.1.2 to compile (valgrind-2.1.2-compile.patch,531 bytes, text/plain)
2004-07-21 12:03 UTC, f5d8fd51ed1e804c9e8d0357e8614e0493b06e96
Details
valgrind 2.1.2 ebuild (valgrind-2.1.2.ebuild,1020 bytes, text/plain)
2004-07-21 12:04 UTC, f5d8fd51ed1e804c9e8d0357e8614e0493b06e96
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Davi Arnaut 2004-07-20 12:04:38 UTC
http://developer.kde.org/~sewardj/valgrind-2.1.2.tar.bz2

Reproducible: Always
Steps to Reproduce:




Expected Results:  
Valgrind 2.1.2 ebuild.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-07-20 12:38:26 UTC
luca, interested?
Comment 2 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-07-21 07:01:12 UTC
*** Bug 57847 has been marked as a duplicate of this bug. ***
Comment 3 Luca Barbato gentoo-dev 2004-07-21 07:09:09 UTC
I'll take a look this night
Comment 4 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-07-21 07:55:15 UTC
Created attachment 35880 [details]
my used ebuild

Hi,

I'm using a linux-2.6.7-gentoo-r11 system with linux26-headers-2.6.7-r3

I made myself a nice valgrind 2.1.2 ebuild based on the 2.1.1 one...
but ended up with the following problems during configuring:

checking linux/mii.h usability... no
checking linux/mii.h presence... yes
configure: WARNING: linux/mii.h: present but cannot be compiled
configure: WARNING: linux/mii.h:     check for missing prerequisite headers?
configure: WARNING: linux/mii.h: see the Autoconf documentation
configure: WARNING: linux/mii.h:     section "Present But Cannot Be Compiled"
configure: WARNING: linux/mii.h: proceeding with the preprocessor's result
configure: WARNING: linux/mii.h: in the future, the compiler will take
precedence
configure: WARNING:	## ------------------------------------------ ##
configure: WARNING:	## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:	## ------------------------------------------ ##
checking for linux/mii.h... yes

and compiling ended in:
In file included from /usr/include/linux/mii.h:12,
		 from vg_unsafe.h:75,
		 from vg_syscalls.c:35:
/usr/include/linux/if.h:95: error: redefinition of `struct ifmap'
/usr/include/linux/if.h:131: error: redefinition of `struct ifreq'
/usr/include/linux/if.h:181: error: redefinition of `struct ifconf'
make[4]: *** [vg_syscalls.o] Error 1

I would presume this happens due to 2.6 linux headers being installed (but I
need them cause I need epoll support)
Comment 5 Aaron Walker (RETIRED) gentoo-dev 2004-07-21 08:05:38 UTC
I get these errors too.. Not sure what changed between 2.1.1 => 2.1.2, as 2.1.1 builds fine with 2.6.x headers.
Comment 6 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-07-21 11:20:28 UTC
tracked down the problem:

coregrind/vg_unsafe.h includes 

#include <net/if.h>
and
#include <linux/mii.h> ( which includes <linux/if.h> )

for me removal of the first include fixed the problem....
hope this helps
Comment 7 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-07-21 12:03:14 UTC
Created attachment 35902 [details]
patch to get valgrind 2.1.2 to compile
Comment 8 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-07-21 12:04:03 UTC
Created attachment 35903 [details]
valgrind 2.1.2 ebuild
Comment 9 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-07-21 12:06:10 UTC
with attached ebuild and patch valgrind 2.1.2 compiles and runs fine for me on a first basic test
Comment 10 Luca Barbato gentoo-dev 2004-07-22 01:23:31 UTC
Committed in cvs a similar patch, thanks to everybody
Comment 11 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-07-22 03:19:24 UTC
why you kept the:
    filter-flags -fPIC
in the ebuild? valgrind-2.1.2 should be PIC aware...
(as valgrind-2.1.1-r1 was)
Comment 12 Davi Arnaut 2004-07-22 05:23:59 UTC
No. Take a look at gcc man page on what -fPIC does. And then:

[root@karmic:~]# ldd /usr/bin/valgrind
        not a dynamic executable

And read more about what valgrind does to debug your code.
Comment 13 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2004-07-22 06:43:23 UTC
I don't get it yet.... 
so either valgrind-2.1.1-r1 not striping fPIC is wrong (but why was there this fPIC specific patch and stripping of fPIC flag explictly removed from 2.1.1->2.1.1-r1 ?)
or 2.1.2 should work with fPIC set, too...

and after taking a look at the gcc man page I still don't know more than I did before. but keep one thing in mind.. valgrind is more than just the valgrind executable - it consists of some libraries itself. Why shouldn't they be build with fPIC ?