Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#25940 - [libstdc++5] does not compile using recent CFLAGS

Attached to Project: Arch Linux
Opened by Pierre Schmitz (Pierre) - Friday, 09 September 2011, 21:11 GMT
Last edited by Allan McRae (Allan) - Saturday, 10 September 2011, 01:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I had a look at some old packages and libstdc++5 does not compile:

In file included from /usr/include/fcntl.h:267:0,
from ../../gcc-3.3.6/gcc/system.h:208,
from ../../gcc-3.3.6/gcc/collect2.c:30:
In function 'open',
inlined from 'collect_execute' at ../../gcc-3.3.6/gcc/collect2.c:1575:20:
/usr/include/bits/fcntl2.h:51:24: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments

However it compiles when unsetting our CFLAGS. But as I am no gcc expert I pass this on. (I only committed a minor pkgbuild cleanup to trunk)
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 10 September 2011, 01:24 GMT
Reason for closing:  Fixed
Comment by Allan McRae (Allan) - Friday, 09 September 2011, 22:05 GMT
Do we still need this old package...

You can fix it by changing line 1537 of gcc/collect2.c to this:
redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);
Comment by Eric Belanger (Snowman) - Friday, 09 September 2011, 22:26 GMT
it's only used by virtualbox as a makedepends. Maybe it's not needed anymore (I haven't checked).
Comment by Pierre Schmitz (Pierre) - Friday, 09 September 2011, 22:38 GMT
It's also needed by some (old) closed source apps. Of course we can also move it to AUR if none of our packages needs it. On the other hand it does not seem to be a lot of work to fix it.

Loading...