sm-grimoire AT lists.ibiblio.org
Subject: Discussion of Spells and Grimoire items
List archive
- From: "David C. Haley" <dhaley AT hot.rr.com>
- To: SourceMage Grimoire List <sm-grimoire AT lists.ibiblio.org>
- Subject: Re: [SM-Grimoire] Compiling valgrind 2.0.0
- Date: Wed, 21 Jan 2004 15:29:23 -0600
On Wed, 2004-01-21 at 11:03, Ondra Tomecka wrote:
> Didn't help, only produced different error:
> In file included from /usr/include/sys/ipc.h:30,
> from vg_intercept.c:64:
> /usr/include/bits/ipc.h:44: error: redefinition of `struct ipc_perm'
> In file included from /usr/include/sys/msg.h:28,
> from vg_intercept.c:65:
> /usr/include/bits/msq.h:39: error: redefinition of `struct msqid_ds'
> /usr/include/bits/msq.h:66: error: redefinition of `struct msginfo'
>
> with more errors following and finally sticking with the original errors
> :(
>
> I suppose it's something with 2.6.x headers...
> Seems like I will stick with 1.9.6 which were compiled back then with
> 2.4.21 kernel and hope it will work well enough ;-) And just ignore it in
> cast queue...
>
> Or is there anyone with 2.6.x kernel who has working valgrind 2.0.0? :)
>
I'm currently running kernel 2.6.1, gcc 3.3.2, glibc 2.3.2 (recompiled
for 2.6.x W/O nptl)
valgrind fails to cast for me as well with regards to certain header
files.
--David
> Andy
>
>
> On Wed, 21 Jan 2004, Tony Smith wrote:
>
> > Well the header in question comes from your kernel so my guess is this is
> > a
> > kernel 2.6 header issue.
> >
> > I've not followed that debate very closely as I'm on 2.4 and plan to stay
> > there for a while yet but others better informed than I can point you at
> > a
> > much cleaner solution, but for what it's worth:
> >
> > 1. The line in question is:
> >
> > struct msgbuf __user *msgp;
> >
> > 2. struct msgbuf is defined in linux/msg.h in 2.6.1
> >
> > /* message buffer for msgsnd and msgrcv calls */
> > struct msgbuf {
> > long mtype; /* type of message */
> > char mtext[1]; /* message text */
> > };
> >
> > 3. msg.h includes ipc.h and ipc.h requires msg.h (hooray!)
> >
> > Since both are protected from multiple inclusion you might try adding a
> >
> > #include <linux/msg.h>
> >
> > to either (a) the valgrind file affected or (b) asm/ipc.h (ugly, but it
> > might
> > work...)
> >
> > Tony
> >
> >
> > On Wednesday 21 January 2004 2:06 pm, Ondra Tomecka wrote:
> > > My bad, should have written it in the first place ;-)
> > > Kernel 2.6.1-rc1, gcc 3.3.2 (from test grimoire), glibc 2.3.2 (again
> > > from test grimoire).
> > >
> > > Andy
> > >
> > > On Wed, 21 Jan 2004, Tony Smith wrote:
> > > > Can you tell us:
> > > >
> > > > 1. What kernel are you using?
> > > > 2. What gcc version?
> > > > 3. What glibc version?
> > > >
> > > > The first two are definitely relevant, the last may be.
> > > >
> > > > Tony
> > > >
> > > > On Wednesday 21 January 2004 10:25 am, Ondra Tomecka wrote:
> > > > > Hi all,
> > > > >
> > > > > did anyone have success compiling valgrind 2.0.0 (in testing
> > > > > grimoire)?
> > > > > I cannot find a bug for it in bugzilla (maybe I just don't know how
> > > > > to
> > > > > search for it, but search for "valgrind" turns out nothing), but I
> > > > > cannot manage to compile it. The error sent me to check what's in
> > > > > the
> > > > > headers that it is complaining about them, and I have to admit that
> > > > > I'm
> > > > > not familiar with the way how many things are declared in
> > > > > /usr/include
> > > > > headers, so now I have no idea what is it complaining about.
> > > > >
> > > > > The error is like this:
> > > > > -----------------------------------------------------------------------
> > > > > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include
> > > > > -DVG_LIBDIR="\"/usr/lib"\" -Winline -Wall -Wshadow -O
> > > > > -fomit-frame-pointer -mpreferred-stack-boundary=2 -g
> > > > > -mpreferred-stack-boundary=2 -fno-omit-frame-pointer -MT
> > > > > vg_intercept.o
> > > > > -MD -MP -MF ".deps/vg_intercept.Tpo" \
> > > > > -c -o vg_intercept.o `test -f 'vg_intercept.c' || echo
> > > > > './'`vg_intercept.c; \
> > > > > then mv -f ".deps/vg_intercept.Tpo" ".deps/vg_intercept.Po"; \
> > > > > else rm -f ".deps/vg_intercept.Tpo"; exit 1; \
> > > > > fi
> > > > > In file included from vg_intercept.c:65:
> > > > > /usr/include/asm/ipc.h:10: error: field `__user' has incomplete type
> > > > > /usr/include/asm/ipc.h:10: error: parse error before '*' token
> > > > > /usr/include/asm/ipc.h:12: error: parse error before '}' token
> > > > > vg_intercept.c:448: warning: declaration of `msgtyp' shadows a
> > > > > global
> > > > > declaration
> > > > > /usr/include/asm/ipc.h:11: warning: shadowed declaration is here
> > > > > vg_intercept.c: In function `vgAllRoadsLeadToRome_msgrcv':
> > > > > vg_intercept.c:453: error: storage size of `tmp' isn't known
> > > > > vg_intercept.c:453: warning: unused variable `tmp'
> > > > > vg_intercept.c: At top level:
> > > > > vg_intercept.c:487: warning: declaration of `msgtyp' shadows a
> > > > > global
> > > > > declaration
> > > > > /usr/include/asm/ipc.h:11: warning: shadowed declaration is here
> > > > > make[4]: *** [vg_intercept.o] Error 1
> > > > > make[4]: Leaving directory `/usr/src/valgrind-2.0.0/coregrind'
> > > > > make[3]: *** [all-recursive] Error 1
> > > > > make[3]: Leaving directory `/usr/src/valgrind-2.0.0/coregrind'
> > > > > make[2]: *** [all-recursive] Error 1
> > > > > make[2]: Leaving directory `/usr/src/valgrind-2.0.0'
> > > > > make[1]: *** [all] Error 2
> > > > > make[1]: Leaving directory `/usr/src/valgrind-2.0.0'
> > > > > ------------------------------------------------------------------
> > > > >
> > > > > Did I miss something or is it a bug to be filed in our bugzilla?
> > > > >
> > > > > Andy
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > SM-Grimoire mailing list
> > > > > SM-Grimoire AT lists.ibiblio.org
> > > > > http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
> > >
> > > _______________________________________________
> > > SM-Grimoire mailing list
> > > SM-Grimoire AT lists.ibiblio.org
> > > http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
> >
> > _______________________________________________
> > SM-Grimoire mailing list
> > SM-Grimoire AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
> >
>
> _______________________________________________
> SM-Grimoire mailing list
> SM-Grimoire AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
--
David C. Haley
dhaley AT hot.rr.com
http://renegadecomputing.net
------------
Source Mage GNU/Linux Developer
General Grimoire Guru
SMGL Security Team Member
------------
PGP Key Fingerprint: 0589 9B39 B259 14D6 82C5 A7E5 AA1B 6596 1F89 0146
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x1F890146
Attachment:
signature.asc
Description: This is a digitally signed message part
-
[SM-Grimoire] Compiling valgrind 2.0.0,
Ondra Tomecka, 01/21/2004
- Re: [SM-Grimoire] Compiling valgrind 2.0.0, Ladislav Hagara, 01/21/2004
-
Re: [SM-Grimoire] Compiling valgrind 2.0.0,
Tony Smith, 01/21/2004
-
Re: [SM-Grimoire] Compiling valgrind 2.0.0,
Ondra Tomecka, 01/21/2004
-
Re: [SM-Grimoire] Compiling valgrind 2.0.0,
Tony Smith, 01/21/2004
-
Re: [SM-Grimoire] Compiling valgrind 2.0.0,
Ondra Tomecka, 01/21/2004
- Re: [SM-Grimoire] Compiling valgrind 2.0.0, David C. Haley, 01/21/2004
-
Re: [SM-Grimoire] Compiling valgrind 2.0.0,
Ondra Tomecka, 01/21/2004
-
Re: [SM-Grimoire] Compiling valgrind 2.0.0,
Tony Smith, 01/21/2004
-
Re: [SM-Grimoire] Compiling valgrind 2.0.0,
Ondra Tomecka, 01/21/2004
Archive powered by MHonArc 2.6.24.