Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 20195
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Gunnlaugur Thor Briem <gthb@hi.is>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
allegro-4.0.3.ebuild ebuild that should correct the problem text/plain jawed hancali 2003-05-04 04:01 0000 3.19 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 20195 depends on: Show dependency tree
Bug 20195 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-04-29 19:09 0000
The media-libs/allegro-4.0.3 ebuild fails because the compile doesn't find 
#include <artsc.h>, apparently because of a missing include path in the gcc 
invocation.

Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS=~x86 emerge allegro
2.
3.

Actual Results:  
Here's a tail of the output. Note that the final gcc command does not have an 
include path for /usr/kde/3.1/include or /usr/kde/3.1/include/artsc/ ... I do 
not have artsc.h anywhere else on my system.

gcc -DHAVE_CONFIG_H -Iinclude -Iinclude/allegro -I./include -I./include/allegro 
-I.  -I/usr/X11R6/include  -march=athlon-xp -O3 -pipe -fforce-addr 
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -fPIC 
-DALLEGRO_SHARED -DALLEGRO_MODULE -c ./src/unix/arts.c -o obj/unix/module/arts.o
src/unix/arts.c:26:19: artsc.h: No such file or directory
src/unix/arts.c:31: parse error before "_al_arts_stream"
src/unix/arts.c:31: warning: initialization makes integer from pointer without a 
cast
src/unix/arts.c:31: warning: data definition has no type or storage class
src/unix/arts.c: In function `_al_arts_detect':
src/unix/arts.c:149: warning: passing arg 1 of `uconvert' makes pointer from 
integer without a cast
src/unix/arts.c: In function `_al_arts_init':
src/unix/arts.c:177: warning: passing arg 1 of `uconvert' makes pointer from 
integer without a cast
src/unix/arts.c:197: `ARTS_P_BLOCKING' undeclared (first use in this function)
src/unix/arts.c:197: (Each undeclared identifier is reported only once
src/unix/arts.c:197: for each function it appears in.)
src/unix/arts.c:199: warning: passing arg 1 of `uconvert' makes pointer from 
integer without a cast
src/unix/arts.c:204: `ARTS_P_BUFFER_TIME' undeclared (first use in this 
function)
src/unix/arts.c:208: `ARTS_P_PACKET_SIZE' undeclared (first use in this 
function)
src/unix/arts.c:209: `ARTS_P_PACKET_COUNT' undeclared (first use in this 
function)
src/unix/arts.c:252: warning: assignment makes integer from pointer without a 
cast
src/unix/arts.c: In function `_al_arts_exit':
src/unix/arts.c:278: warning: assignment makes integer from pointer without a 
cast
make: *** [obj/unix/module/arts.o] Error 1

!!! ERROR: media-libs/allegro-4.0.3 failed.
!!! Function src_compile, Line 88, Exitcode 2
!!! (no error message)



Expected Results:  
Uh, should have compiled! :)

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r3 i686 AMD Athlon(tm) XP 2000+
GENTOO_MIRRORS="http://ftp.linux.is/gentoo http://gentoo.oregonstate.edu/ http:
//www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ 
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg 
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb 
slang readline arts tetex svga tcltk java guile mysql X sdl gpm tcpd pam libwww 
ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla 
apache2"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -funroll-loops 
-frerun-cse-after-loop -frerun-loop-opt -falign-functions=4"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -funroll-loops 
-frerun-cse-after-loop -frerun-loop-opt -falign-functions=4"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

------- Comment #1 From jawed hancali 2003-05-04 04:01:58 0000 -------
Created an attachment (id=11454) [details]
ebuild that should correct the problem

I had the same problem
the problem arise because the include path to artsc.h was stocked in a CFLAGS
variable which was overriden by our CFLAGS
I corrected it by concatening the 2 vars

------- Comment #2 From Gunnlaugur Thor Briem 2003-05-06 10:09:29 0000 -------
This worked just fine for me, thanks!
I recommend applying the patch in CVS and resolving this FIXED.

------- Comment #3 From Martin Holzer (RETIRED) 2003-06-05 16:55:57 0000 -------
turn down your CFLAGS and try again

------- Comment #4 From SpanKY 2003-06-19 11:18:10 0000 -------
ok, added a similar fix when i cleaned up the ebuild
enjoy !@

http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/media-libs/allegro/allegro-4.0.3.ebuild.diff?r1=1.1&r2=1.2

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug