Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 51821
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Related Packages <sci@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Nick Hofstede <FnH@antwerpen.be>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
patch-gcc3.patch Patches the source as specified in the mail to make it compile with gcc 3.3 patch Nick Hofstede 2004-05-23 06:49 0000 5.13 KB Details | Diff
patch-gcc3.patch files/patch-gcc3.patch patch Nick Hofstede 2004-05-23 07:22 0000 5.13 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 51821 depends on: Show dependency tree
Bug 51821 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: 2004-05-23 06:47 0000
gcc3.3 is more standards-conformant and refuses to compile galib due to wrong
template code

Reproducible: Always
Steps to Reproduce:
1.emerge galib

Actual Results:  
In file included from ex21.C:17:
../ga/GARealGenome.h:59: error: ISO C++ forbids declaration of `allele' with no
   type
../ga/GARealGenome.h:59: error: template-id `allele<>' for `int
   GAAlleleSet<float>::allele(unsigned int) const' does not match any template
   declaration
../ga/GARealGenome.h:59: error: syntax error before `{' token
../ga/GARealGenome.h:65: error: `n' was not declared in this scope
../ga/GARealGenome.h:66: error: parse error before `if'
../ga/GARealGenome.h:69: error: ISO C++ forbids declaration of `value' with no
   type
../ga/GARealGenome.h:69: error: `core' was not declared in this scope
../ga/GARealGenome.h:69: error: `i' was not declared in this scope
../ga/GARealGenome.h:69: error: `core' was not declared in this scope
../ga/GARealGenome.h:70: error: parse error before `if'
../ga/GARealGenome.h:74: error: ISO C++ forbids declaration of `value' with no
   type
../ga/GARealGenome.h:74: error: redefinition of `int value'
../ga/GARealGenome.h:69: error: `int value' previously defined here
../ga/GARealGenome.h:74: error: `core' was not declared in this scope
../ga/GARealGenome.h:75: error: parse error before `}' token
{standard input}: Assembler messages:
{standard input}:21: Error: symbol `value' is already defined
make[1]: *** [ex21.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/galib-2.4.5/work/galib245/examples'make: *** [all] Error 2

!!! ERROR: dev-libs/galib-2.4.5 failed.
!!! Function src_compile, Line 19, Exitcode 2
!!! make failed



Expected Results:  
install 

solution for this error:
http://mailman.mit.edu/pipermail/galib/2003-December/000896.html

------- Comment #1 From Nick Hofstede 2004-05-23 06:49:11 0000 -------
Created an attachment (id=31887) [details]
Patches the source as specified in the mail to make it compile with gcc 3.3

------- Comment #2 From Nick Hofstede 2004-05-23 06:51:56 0000 -------
added the following line in the ebuild in the function src_compile():
epatch ${FILESDIR}/patch-gcc3.patch

This works, but I'm sure it isn't the correct way to apply patches in an ebuild. Could someone please do this the right way?

------- Comment #3 From Nick Hofstede 2004-05-23 07:21:44 0000 -------
Oops ... patch was wrong ...
attaching good patch ...
ebuild just needs to be cleaned up now before it can get committed

------- Comment #4 From Nick Hofstede 2004-05-23 07:22:47 0000 -------
Created an attachment (id=31889) [details]
files/patch-gcc3.patch

------- Comment #5 From Patrick Kursawe 2004-05-27 06:38:17 0000 -------
Well, I preferred to add prototypes to the header instead of moving the
implementation there, but thanks for reporting this and even providing a
workaround! CVS revision 1.3 should fix this.

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