Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 25465

Summary: net-tools compile error with GCC 3.3
Product: Gentoo Linux Reporter: Boyd Waters <waters.boyd>
Component: New packagesAssignee: Nicholas Wourms <nwourms>
Status: RESOLVED FIXED    
Severity: normal CC: gcc-porting, mholzer, pappy
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 24270    
Bug Blocks:    
Attachments: patch to x25_sr.c to appease GCC 3.3
new patch to x25_sr.c -- ebuild compatible
patch for new ebuild; 1.60-r7 => r8

Description Boyd Waters 2003-07-28 17:00:30 UTC
GCC 3.3 is more strict (or at least different) with some compiler parsing. 
 
net-tools runs afoul of this in lib/x25_sr.c; where a sizeof(x25_address) is interpreted as 
taking the size of an (undefined) FUNCTION named "x25_address", rather that a STRUCT. 

Reproducible: Always
Steps to Reproduce:
emerge net-utils 
Actual Results:  
compile error at lib/x25_sr.c
Comment 1 Boyd Waters 2003-07-28 17:01:54 UTC
Created attachment 15162 [details, diff]
patch to x25_sr.c to appease GCC 3.3

adds a "struct" keyword to the offending line of C code.
Comment 2 Boyd Waters 2003-07-28 17:36:40 UTC
Created attachment 15163 [details, diff]
new patch to x25_sr.c -- ebuild compatible

patch with full path info, tested for use with new ebuild
Comment 3 Boyd Waters 2003-07-28 17:39:06 UTC
Created attachment 15164 [details, diff]
patch for new ebuild; 1.60-r7 => r8

This ebuild uses the patch to correct the compile error.
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-08-28 16:37:14 UTC
also etherwake has now it's own ebuild
should the own ebuild or install in net-tools be removed ?
Comment 5 Alexander Gabert (RETIRED) gentoo-dev 2004-03-05 02:44:32 UTC
can we close this bug or is there something left to do for us here?

thanks,

Alex
Comment 6 SpanKY gentoo-dev 2004-04-18 22:29:12 UTC
etherwake and net-tools both build for me on gcc-3.x so this is a done deal in my eyes