First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 59845
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: SpanKY <vapier@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Aard Keimpema <a.keimpema@home.nl>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
hexcurse-1.55-r1.ebuild updated ebuild application/octet-stream Aard Keimpema 2004-08-09 04:01 0000 696 bytes Details
hexcurse-alloca.patch Patch to fix compiltion for gcc 3.4 patch Aard Keimpema 2004-08-09 04:02 0000 360 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

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

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







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


Description:   Opened: 2004-08-09 03:41 0000
Upon emerging hexcurse the following error occurs:

gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"hexcurse\" -DVERSION=\"1.55\" -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DRETSIGTYPE=void  -I. -I. -I../include    -march=athlon-xp -O2 -fomit-frame-pointer -fweb -pipe -c `test -f acceptch.c || echo './'`acceptch.c
getopt.c:40: error: conflicting types for 'alloca'
getopt.c:40: error: conflicting types for 'alloca'
make[1]: *** [getopt.o] Error 1


Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Aard Keimpema 2004-08-09 03:51:20 0000 -------
The problem is caused by this code portion in getopt.c:
--------------------
#ifdef _SGIAPI
#include <alloca.h>
#else
char *alloca ();
#endif
-------------------
By simply removing the redefinition of alloca the problem is solved. I've attached  a patch for this and an updated ebuild. I've tested the ebuild using gcc-3.4.1 and 
gcc-3.3.4

------- Comment #2 From Aard Keimpema 2004-08-09 04:01:09 0000 -------
Created an attachment (id=37090) [edit]
updated ebuild

------- Comment #3 From Aard Keimpema 2004-08-09 04:02:29 0000 -------
Created an attachment (id=37091) [edit]
Patch to fix compiltion for gcc 3.4

------- Comment #4 From SpanKY 2004-08-09 17:39:28 0000 -------
awesome, thanks for the patch, added to cvs

First Last Prev Next    No search results available      Search page      Enter new bug