|
From: Daniel L. <lug...@an...> - 2004-04-23 12:38:09
|
Hi,
i am a new user on valgrind.
I've some problem to compile the sources.
The versions i've tried are 2.0.0 and 2.1.1 and the compilers i used are
gcc-2.95 and gcc-3.3.3
./configure without arguments.
make produces these lines:
Version 2.0.0:
gcc-2.95 -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include
-DVG_LIBDIR="\"/usr/local/lib"\" -Winline -Wall -Wshadow -O
-fomit-frame-pointer -mpreferred-stack-boundary=2 -g
-mpreferred-stack-boundary=2 -fno-omit-frame-pointer -c `test -f
'vg_intercept.c' || echo './'`vg_intercept.c
In file included from vg_intercept.c:65:
/usr/include/asm/ipc.h:10: field `__user' has incomplete type
/usr/include/asm/ipc.h:10: warning: no semicolon at end of struct or union
/usr/include/asm/ipc.h:10: parse error before `*'
/usr/include/asm/ipc.h:12: parse error before `}'
vg_intercept.c:448: warning: declaration of `msgtyp' shadows global
declaration
vg_intercept.c: In function `vgAllRoadsLeadToRome_msgrcv':
vg_intercept.c:450: warning: declaration of `msgtyp' shadows global
declaration
vg_intercept.c:453: storage size of `tmp' isn't known
vg_intercept.c:159: warning: inlining failed in call to `do_syscall_ipc'
vg_intercept.c:465: warning: called from here
vg_intercept.c:453: warning: unused variable `tmp'
vg_intercept.c: At top level:
vg_intercept.c:487: warning: declaration of `msgtyp' shadows global
declaration
vg_intercept.c: In function `msgrcv':
vg_intercept.c:488: warning: declaration of `msgtyp' shadows global
declaration
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include
-DVG_LIBDIR="\"/usr/local/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
Version 2.1.1:
gcc-2.95 -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include -I./x86
-DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -Winline -Wall -Wshadow -O
-fno-omit-frame-pointer -mpreferred-stack-boundary=2 -g -DELFSZ=32 -c
`test -f 'vg_syscalls.c' || echo './'`vg_syscalls.c
In file included from vg_unsafe.h:56,
from vg_syscalls.c:35:
/usr/include/asm/ipc.h:10: field `__user' has incomplete type
/usr/include/asm/ipc.h:10: warning: no semicolon at end of struct or union
/usr/include/asm/ipc.h:10: parse error before `*'
/usr/include/asm/ipc.h:12: parse error before `}'
vg_syscalls.c: In function `before_ipc':
vg_syscalls.c:2598: dereferencing pointer to incomplete type
vg_syscalls.c: In function `after_ipc':
vg_syscalls.c:2719: dereferencing pointer to incomplete type
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include -I./x86
-DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -Winline -Wall -Wshadow -O
-fno-omit-frame-pointer -mpreferred-stack-boundary=2 -g -DELFSZ=32 -MT
vg_syscalls.o -MD -MP -MF ".deps/vg_syscalls.Tpo" \
-c -o vg_syscalls.o `test -f 'vg_syscalls.c' || echo './'`vg_syscalls.c; \
then mv -f ".deps/vg_syscalls.Tpo" ".deps/vg_syscalls.Po"; \
else rm -f ".deps/vg_syscalls.Tpo"; exit 1; \
fi
In file included from vg_unsafe.h:56,
from vg_syscalls.c:35:
/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_syscalls.c: In function `before_ipc':
vg_syscalls.c:2598: error: dereferencing pointer to incomplete type
vg_syscalls.c: In function `after_ipc':
vg_syscalls.c:2719: error: dereferencing pointer to incomplete type
Need help, cause of no idea where's the problem.
Daniel
--
AKTUELL:
- ANDURAS AG auf der drupa 2004 -
Besuchen Sie uns vom 06. bis 15. Mai 2004 in Halle 9 Stand E77.
Terminvereinbarungen senden Sie bitte an dr...@an...
Weitere Informationen finden Sie auch im Online-Ausstellerkatalog unter:
http://www.drupa.de/exh/drupa04/d/128122
--
Daniel Luginger <lug...@an...>
ANDURAS service solutions AG
Innstraße 71 - 94036 Passau - Germany
Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55
Rechtsform: Aktiengesellschaft - Sitz: Passau - Amtsgericht Passau HRB 6032
Mitglieder des Vorstands: Sven Anders, Marcus Junker, Michael Schön
Vorsitzender des Aufsichtsrats: Dipl. Kfm. Karlheinz Antesberger
|
|
From: Bob R. <bo...@br...> - 2004-04-23 13:13:54
|
On Fri, Apr 23, 2004 at 02:37:50PM +0200, Daniel Luginger wrote: > Hi, > i am a new user on valgrind. > > I've some problem to compile the sources. > The versions i've tried are 2.0.0 and 2.1.1 and the compilers i used are > gcc-2.95 and gcc-3.3.3 > > ./configure without arguments. > make produces these lines: > > Version 2.0.0: > gcc-2.95 -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include > -DVG_LIBDIR="\"/usr/local/lib"\" -Winline -Wall -Wshadow -O > -fomit-frame-pointer -mpreferred-stack-boundary=2 -g > -mpreferred-stack-boundary=2 -fno-omit-frame-pointer -c `test -f > 'vg_intercept.c' || echo './'`vg_intercept.c > In file included from vg_intercept.c:65: > /usr/include/asm/ipc.h:10: field `__user' has incomplete type > /usr/include/asm/ipc.h:10: warning: no semicolon at end of struct or union > /usr/include/asm/ipc.h:10: parse error before `*' > /usr/include/asm/ipc.h:12: parse error before `}' > vg_intercept.c:448: warning: declaration of `msgtyp' shadows global > declaration > vg_intercept.c: In function `vgAllRoadsLeadToRome_msgrcv': > vg_intercept.c:450: warning: declaration of `msgtyp' shadows global > declaration > vg_intercept.c:453: storage size of `tmp' isn't known > vg_intercept.c:159: warning: inlining failed in call to `do_syscall_ipc' > vg_intercept.c:465: warning: called from here > vg_intercept.c:453: warning: unused variable `tmp' > vg_intercept.c: At top level: > vg_intercept.c:487: warning: declaration of `msgtyp' shadows global > declaration > vg_intercept.c: In function `msgrcv': > vg_intercept.c:488: warning: declaration of `msgtyp' shadows global > declaration > > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include > -DVG_LIBDIR="\"/usr/local/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 > > Version 2.1.1: > gcc-2.95 -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include -I./x86 > -DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -Winline -Wall -Wshadow -O > -fno-omit-frame-pointer -mpreferred-stack-boundary=2 -g -DELFSZ=32 -c > `test -f 'vg_syscalls.c' || echo './'`vg_syscalls.c > In file included from vg_unsafe.h:56, > from vg_syscalls.c:35: > /usr/include/asm/ipc.h:10: field `__user' has incomplete type > /usr/include/asm/ipc.h:10: warning: no semicolon at end of struct or union > /usr/include/asm/ipc.h:10: parse error before `*' > /usr/include/asm/ipc.h:12: parse error before `}' > vg_syscalls.c: In function `before_ipc': > vg_syscalls.c:2598: dereferencing pointer to incomplete type > vg_syscalls.c: In function `after_ipc': > vg_syscalls.c:2719: dereferencing pointer to incomplete type > > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include -I./x86 > -DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -Winline -Wall -Wshadow -O > -fno-omit-frame-pointer -mpreferred-stack-boundary=2 -g -DELFSZ=32 -MT > vg_syscalls.o -MD -MP -MF ".deps/vg_syscalls.Tpo" \ > -c -o vg_syscalls.o `test -f 'vg_syscalls.c' || echo './'`vg_syscalls.c; \ > then mv -f ".deps/vg_syscalls.Tpo" ".deps/vg_syscalls.Po"; \ > else rm -f ".deps/vg_syscalls.Tpo"; exit 1; \ > fi > In file included from vg_unsafe.h:56, > from vg_syscalls.c:35: > /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_syscalls.c: In function `before_ipc': > vg_syscalls.c:2598: error: dereferencing pointer to incomplete type > vg_syscalls.c: In function `after_ipc': > vg_syscalls.c:2719: error: dereferencing pointer to incomplete type > > > Need help, cause of no idea where's the problem. I also get this error. Debian (woody). Bob Rossi |
|
From: Nicholas N. <nj...@ca...> - 2004-04-23 13:16:19
|
On Fri, 23 Apr 2004, Daniel Luginger wrote: > I've some problem to compile the sources. > The versions i've tried are 2.0.0 and 2.1.1 and the compilers i used are > gcc-2.95 and gcc-3.3.3 > > ./configure without arguments. > make produces these lines: > > Version 2.0.0: > gcc-2.95 -DHAVE_CONFIG_H -I. -I. -I.. -I./demangle -I../include > -DVG_LIBDIR=3D"\"/usr/local/lib"\" -Winline -Wall -Wshadow -O > -fomit-frame-pointer -mpreferred-stack-boundary=3D2 -g > -mpreferred-stack-boundary=3D2 -fno-omit-frame-pointer -c `test -f > 'vg_intercept.c' || echo './'`vg_intercept.c > In file included from vg_intercept.c:65: > /usr/include/asm/ipc.h:10: field `__user' has incomplete type > /usr/include/asm/ipc.h:10: warning: no semicolon at end of struct or unio= n > /usr/include/asm/ipc.h:10: parse error before `*' > /usr/include/asm/ipc.h:12: parse error before `}' Some others had this problem recently. See below for two workarounds. Andre, is this a Valgrind problem or a Debian problem? N On Mon, 19 Apr 2004, Andr=E9s Rold=E1n wrote: > Andrew Coles <and...@ya...> writes: > > > On my system I experience a compile-time error when compiling a stock v= algrind > > (either from the CVS or with 2.0.0) - when <asm/ipc.h> is included (fro= m > > coregrind/vg_unsafe.h) the symbol __user is not defined. Looking at > > vg_unsafe.h it does mention including linux/compiler.h when running on = a 2.6 > > kernel in order to define the __user symbol, but I am using a 2.4 kerne= l > > machine and still experiencing this problem as __user still appears in= the > > asm/ipc.h header. The quick-and-dirty fix is to do a #define __user b= efore > > the #include <asm/ipc.h> line, although I'm sure there must be a better= way > > to do it. > > If you get the Debian's valgrind_2.1.1-3 source, you can get a patch for = that. > It's called 01_ipc_stuff.dpatch. You may want to use the patches from the > Debian package because they solve some Debian-specific build problems. > |