Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1505 - x11-ssh-askpass-1.2.2.ebuild (Update)
Summary: x11-ssh-askpass-1.2.2.ebuild (Update)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Spider (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-03 14:42 UTC by Bardur Arantsson
Modified: 2002-04-04 00:19 UTC (History)
1 user (show)

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


Attachments
Diff against x11-ssh-askpass-1.2.2.ebuild.diff (x11-ssh-askpass-1.2.2.ebuild.diff,300 bytes, patch)
2002-04-03 14:42 UTC, Bardur Arantsson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bardur Arantsson 2002-04-03 14:42:14 UTC
When trying to build the x11-ssh-askpass package, the following error occurs:

<=== BEGIN ERROR OUTPUT
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:41,
                 from Imakefile.c:13:
/usr/X11R6/lib/X11/config/site.def:62: warning: `i386Architecture' redefined
/usr/X11R6/lib/X11/config/Imake.cf:556: warning: this is the location of the 
previ
ous definition
In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:90,
                 from Imakefile.c:13:
/usr/X11R6/lib/X11/config/linux.cf:237: warning: `YaccCmd' redefined
/usr/X11R6/lib/X11/config/site.def:75: warning: this is the location of the 
previo
us definition
In file included from /usr/X11R6/lib/X11/config/Imake.tmpl:96,
                 from Imakefile.c:13:
/usr/X11R6/lib/X11/config/site.def:69: warning: `VirtualBindingsPath' redefined
/usr/X11R6/lib/X11/config/host.def:6: warning: this is the location of the 
previou
s definition
/usr/X11R6/lib/X11/config/site.def:75: warning: `YaccCmd' redefined
/usr/X11R6/lib/X11/config/linux.cf:237: warning: this is the location of the 
previ
ous definition
ln -s SshAskpass-default.ad SshAskpass.ad
sed -n '/^[^!]/s/.*/"&",/p' <SshAskpass.ad >SshAskpass_ad.h.tmp
mv -f SshAskpass_ad.h.tmp SshAskpass_ad.h
gcc -march=1 -O3 -pipe     -I/usr/X11R6/include  -I/usr/X11R6/include  -Dlinux 
-D_
_i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L 
-D_BSD_SOUR
CE -D_SVID_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO     -c -o drawing.o drawing.c
cc1: bad value (1) for -march= switch
make: *** [drawing.o] Error 1
===> END ERROR OUTPUT

I suspect that the reason for this is, that the original CFLAGS contains 
"-march=i386" (or some such), but that one of the xmkmf included files 
redefines "i386" to "1", resulting in the mentioned error.

I've attached a diff against x11-ssh-askpass-1.2.2.ebuild which fixes the 
problem by overriding the CDEBUGFLAGS variable with the contents of the 
"original" CFLAGS variable. This fixes the build problems for me.
Comment 1 Bardur Arantsson 2002-04-03 14:42:55 UTC
Created attachment 491 [details, diff]
Diff against x11-ssh-askpass-1.2.2.ebuild.diff
Comment 2 Spider (RETIRED) gentoo-dev 2002-04-04 00:19:05 UTC
thanks, commited.