Bug 2179 - Current glibc CVS fails to compile with gcc 4.1 SVN
Summary: Current glibc CVS fails to compile with gcc 4.1 SVN
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-19 17:05 UTC by Bernhard Rosenkraenzer
Modified: 2016-05-20 19:52 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Fix (291 bytes, patch)
2006-01-19 17:05 UTC, Bernhard Rosenkraenzer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 2006-01-19 17:05:04 UTC
gcc 4.1 got even stricter about declaration/implementation mismatches, causing 
glibc CVS to fail with: 
 
pselect.c:36: error: static declaration of '__pselect' follows non-static  
declaration  
../include/sys/select.h:8: error: previous declaration of '__pselect' was here
Comment 1 Bernhard Rosenkraenzer 2006-01-19 17:05:41 UTC
Created attachment 842 [details]
Fix

This fixes it
Comment 2 Ulrich Drepper 2006-01-19 17:09:34 UTC

*** This bug has been marked as a duplicate of 333 ***
Comment 3 Bernhard Rosenkraenzer 2006-01-19 17:26:54 UTC
This is not a dup of 333, unless you consider using a recent devel version of  
gcc a "broken setup". 
  
There's even a patch to fix it, and it is quite obviously not 100% correct to 
declare something "extern" in a header, then include the header elsewhere and 
redeclare it "static". 
 
Comment 4 Andreas Jaeger 2006-01-19 17:29:18 UTC
This is fixed already.