[Bug gold/12987] gold doesn't build on Solaris 11

2011-07-12 Thread ro at TechFak dot Uni-Bielefeld.DE
http://sourceware.org/bugzilla/show_bug.cgi?id=12987

--- Comment #1 from Rainer Orth  2011-07-12 
18:39:39 UTC ---
Created attachment 5844
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5844
partial patch

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12987] gold doesn't build on Solaris 11

2011-07-12 Thread ro at CeBiTec dot Uni-Bielefeld.DE
http://sourceware.org/bugzilla/show_bug.cgi?id=12987

--- Comment #2 from Rainer Orth  2011-07-12 
18:47:23 UTC ---
One issue I forgot: when build a 64-bit gold to perform 64-bit testing
(which otherwise fails in many ways, e.g. due to trying to link
libgold.a), I had to remove the static from the posix_fallocate
replacement to avoid the following error:

/vol/gnu/src/binutils/binutils/local/gold/output.cc: In function 'int
posix_fallocate(int, off_t, off_t)':
/vol/gnu/src/binutils/binutils/local/gold/output.cc:119:47: error: 'int
posix_fallocate(int, off_t, off_t)' was declared 'extern' and later 'static'
[-fpermissive]
/usr/include/fcntl.h:136:12: error: previous declaration of 'int
posix_fallocate(int, off_t, off_t)' [-fpermissive]

Rainer

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils