Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47782 - app-arch/ncompress fails to compile with gcc 3.4 and 2.6 linux headers (solved)
Summary: app-arch/ncompress fails to compile with gcc 3.4 and 2.6 linux headers (solved)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
: 48615 (view as bug list)
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-04-13 19:26 UTC by Tamran Lengyel
Modified: 2004-04-27 00:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Stops the program from redeclaring some stuff already in the libraries. (ncompress_gcc-3.4-fix.diff,915 bytes, patch)
2004-04-13 19:27 UTC, Tamran Lengyel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tamran Lengyel 2004-04-13 19:26:48 UTC
the following error arises with gcc 3.4

compress42.c:175: error: conflicting types for 'open'
compress42.c:175: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
/usr/include/fcntl.h:72: error: previous declaration of 'open' was here
compress42.c:175: error: conflicting types for 'open'
compress42.c:175: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
/usr/include/fcntl.h:72: error: previous declaration of 'open' was here
compress42.c:187: warning: conflicting types for built-in function 'strlen'
compress42.c: In function `main':
compress42.c:698: warning: return type of 'main' is not `int'
make: *** [compress] Error 1

The attached patch fixes this error.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Tamran Lengyel 2004-04-13 19:27:50 UTC
Created attachment 29240 [details, diff]
Stops the program from redeclaring some stuff already in the libraries.
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2004-04-21 12:37:11 UTC
Not amd64 related, changed Hardware
Comment 3 Robert Moss (RETIRED) gentoo-dev 2004-04-21 17:31:54 UTC
*** Bug 48615 has been marked as a duplicate of this bug. ***
Comment 4 Robert Moss (RETIRED) gentoo-dev 2004-04-21 17:33:09 UTC
This problem also occurs with 2.4 kernel headers using gcc-3.4.0. The line 187 warning does not show up with 2.4 headers, however.
Comment 5 SpanKY gentoo-dev 2004-04-27 00:18:11 UTC
lv fixed this but didnt close the bug ;)