Subject: Re: pkg/29448
To: None <garbled@netbsd.org, gnats-admin@netbsd.org,>
From: A L Meyers <me@privacy.net>
List: pkgsrc-bugs
Date: 06/16/2005 07:06:01
The following reply was made to PR pkg/29448; it has been noted by GNATS.

From: A L Meyers <me@privacy.net>
To: "Johnny C. Lam" <jlam@NetBSD.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29448
Date: Thu, 16 Jun 2005 09:04:38 +0200

 Johnny C. Lam wrote:
 > A L Meyers wrote:
 > 
 >> Johnny C. Lam wrote:
 >>
 >>> As your troubles seem to stem from building X11 packages using imake, 
 >>> try searching for "-mtune=pentiumpro" in /usr/X11R6/lib/X11/config, e.g:
 >>>
 >>>     grep -- "-mtune=pentiumpro" /usr/X11R6/lib/X11/config/*
 >>>
 >>> It's possible that the X.Org distribution you're using added some 
 >>> extra bits to the imake config files that may not match the compiler 
 >>> that you're using on your Mandrake Linux system.  For now, I will 
 >>> mark your PR as analyzed, since at this point, it no longer appears 
 >>> to be a pkgsrc problem.
 >>>
 >  >
 > 
 >> Thanks for the suggestion, Johnny.  grep indeed found 
 >> "-mtune=pentiumpro" in the first 4 lines of config/host.cf.  Full of 
 >> hope, I deleted these 4 instances but, alas, the error message when 
 >> trying to build games/tanked is still the same.  More ideas welcome.
 > 
 > 
 > Please also check in /usr/pkg/lib/X11/config.  I forgot that those files 
 > are also used by imake when using xpkgwedge.
 > 
 >     Cheers,
 > 
 >     -- Johnny Lam <jlam@NetBSD.org>
 > 
 Hello Johnny,
 
 Right you are!  In the last mentioned directory resides the same 
 file host.cf.  That problem is now resolved BUT a new one has 
 appeared.  Error output follows.  Thanks and regards, lux
 
 gcc -c -O2 -fomit-frame-pointer -pipe -march=i586 
 -fno-strict-aliasing -fno-strength-reduce    -I/usr/include/X11 
 -I/usr/pkg/include  -I/usr/X11R6/include   -Dlinux -D__i386__ 
 -D_POSIX_C_SOURCE=199309L 
 -D_POSIX_SOURCE -D_XOPEN_SOURCE 
 -D_BSD_SOURCE -D_SVID_SOURCE 
                             -DFUNCPROTO=15 -DNARROWPROTO 
 -I/usr/include/X11   -DXVENDORNAME='"The X.Org Foundation"' 
 -DXVENDORNAMESHORT='"X.Org"'  data.c
 data.c:83: error: parse error before "__extension__"
 data.c:83: error: `__len' undeclared here (not in a function)
 data.c:83: error: initializer element is not constant
 data.c:83: error: parse error before "if"
 data.c:83: error: conflicting types for `__retval'
 data.c:83: error: previous declaration of `__retval'
 data.c:83: warning: data definition has no type or storage class
 data.c:83: error: parse error before '}' token
 make[2]: *** [data.o] Error 1
 make[2]: Leaving directory 
 `/usr/pkgsrc/games/tanked/work/tanked-0.90/client/libsprite'
 make[1]: *** [all] Error 2
 make[1]: Leaving directory 
 `/usr/pkgsrc/games/tanked/work/tanked-0.90/client'
 make: *** [all] Error 2
 *** Error code 2
 
 Stop.
 bmake: stopped in /usr/pkgsrc/games/tanked
 ===>
 ===> There was an error during the ``build'' phase.
 ===> Please investigate the following for more information:
 ===>      * log of the build
 ===>      * /usr/pkgsrc/games/tanked/work/.work.log
 ===>
 *** Error code 1
 
 Stop.
 bmake: stopped in /usr/pkgsrc/games/tanked
 *** Error code 1