Skip to Content.
Sympa Menu

sm-grimoire-bugs - [SM-Grimoire-Bugs] [Bug 9528] New: libcap fails to build on some systems

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 9528] New: libcap fails to build on some systems
  • Date: 8 Jul 2006 22:29:01 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=9528

Summary: libcap fails to build on some systems
Product: Codex
Version: stable grimoire
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: libs
AssignedTo: sm-grimoire-bugs AT lists.ibiblio.org
ReportedBy: eric AT sandall.us


# cast -c -V on libcap
....
gcc -Dlinux -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith
-Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes
-Wmissing-prototypes -Wn
ested-externs -Winline -Wshadow -pedantic -g -O -march=athlon -mmmx -m3dnow
-pipe -DPIC -fPIC -O3 -I/usr/src/libcap-1.10/libcap/include -c cap_text.c -o c
ap_text.o
In file included from cap_text.c:14:
libcap.h:57:3: warning: suggest hiding #error from traditional C with an
indented #
libcap.h:58:3: warning: suggest hiding #error from traditional C with an
indented #
libcap.h:101:25: warning: ISO C does not permit named variadic macros
cap_text.c:86:27: warning: ISO C99 requires rest arguments to be used
cap_text.c:162:49: warning: ISO C99 requires rest arguments to be used
cap_text.c:166:31: warning: ISO C99 requires rest arguments to be used
cap_text.c:199:52: warning: ISO C99 requires rest arguments to be used
cap_text.c:208:26: warning: ISO C99 requires rest arguments to be used
cap_text.c: In function `_setbits':
cap_text.c:33: warning: traditional C rejects ISO C style function definitions
cap_text.c: In function `_clrbits':
cap_text.c:41: warning: traditional C rejects ISO C style function definitions
cap_text.c: In function `namcmp':
cap_text.c:48: warning: traditional C rejects ISO C style function definitions
cap_text.c: In function `lookupname':
cap_text.c:59: warning: traditional C rejects ISO C style function definitions
cap_text.c:62: warning: cast discards qualifiers from pointer target type
cap_text.c: In function `cap_from_text':
cap_text.c:80: warning: traditional C rejects ISO C style function definitions
cap_text.c:100: warning: traditional C rejects automatic aggregate
initialization
cap_text.c: In function `getstateflags':
cap_text.c:224: warning: traditional C rejects ISO C style function
definitions
cap_text.c: In function `cap_to_text':
cap_text.c:240: warning: traditional C rejects ISO C style function
definitions
cap_text.c:243: warning: traditional C rejects automatic aggregate
initialization
gcc -Dlinux -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith
-Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes
-Wmissing-prototypes -Wn
ested-externs -Winline -Wshadow -pedantic -g -O -march=athlon -mmmx -m3dnow
-pipe -DPIC -fPIC -O3 -I/usr/src/libcap-1.10/libcap/include -c cap_sys.c -o ca
p_sys.o
In file included from cap_sys.c:10:
libcap.h:57:3: warning: suggest hiding #error from traditional C with an
indented #
libcap.h:58:3: warning: suggest hiding #error from traditional C with an
indented #
libcap.h:101:25: warning: ISO C does not permit named variadic macros
cap_sys.c: In function `capget':
cap_sys.c:14: warning: traditional C rejects ISO C style function definitions
cap_sys.c: In function `capset':
cap_sys.c:18: warning: traditional C rejects ISO C style function definitions
cap_sys.c: In function `capget':
cap_sys.c:14: error: can't find a register in class `BREG' while reloading
`asm'
make[1]: *** [cap_sys.o] Error 1
make[1]: Leaving directory `/usr/src/libcap-1.10/libcap'

This is on a stable/0.1 machine with glibc using 2.6.11.2 headers. Another
machine using test and glibc using 2.6.12.0 headers builds libcap fine.
Testing
if updating glibc to 2.6.12.0 headers on stable/0.1 fixes it.


------- Additional Comments From eric AT sandall.us 2005-08-19 18:21 -------
Updating glibc on the broken box did not fix the issue.

--


------- Additional Comments From v.merkatz AT gmx.net 2005-08-19 18:32 -------
gcc bug, what architecture and optflags does the box on which it works use?

--


------- Additional Comments From eric AT sandall.us 2005-08-19 22:17 -------
Works:
pentium3 built as i686 and combreloc prelink strip tiny optimizations.
pentium2 built as pentium2 and combreloc strip optimizations.
athlon-xp built as athlon-xp and combreloc prelink strip tiny optimizations.
athlon-mp built as athlon-mp and strip tiny optimizations.

Doesn't work:
athlon built as athlon and combreloc prelink speedy optimizations.

Handy chart. ;)

Works:

ARCH / Opts | combreloc | prelink | speedy | strip | tiny
-----------------------------------------------------------
i686 | X | X | | X | X
pentium2 | X | | | X |
pentium3 |
athlon-mp | | | | X | X
athlon-xp | X | X | | X | X

Doesn't work:
ARCH / Opts | combreloc | prelink | speedy | strip | tiny
-----------------------------------------------------------
athlon | X | X | X | |
athlon | X | X | | |

Note above that I tried the athlon with both speedy (default on that machine)
and without speedy.

--


------- Additional Comments From seth AT swoolley.homeip.net 2006-07-08 17:29
-------
This bug existed in the stable-0.3 release

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [SM-Grimoire-Bugs] [Bug 9528] New: libcap fails to build on some systems, bugzilla-daemon, 07/08/2006

Archive powered by MHonArc 2.6.24.

Top of Page