Bug 158206 - undefined reference to `sepol_context_to_sid' at policycoreutils
undefined reference to `sepol_context_to_sid' at policycoreutils
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: policycoreutils (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-19 12:01 EDT by Robert Scheck
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version: 1.23.10-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-21 08:49:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Robert Scheck 2005-05-19 12:01:26 EDT
Description of problem:
Rebuilding of policycoreutils fails with this error messages:

[...]
make[1]: Entering directory `/usr/src/redhat/BUILD/policycoreutils-1.23.9/audit2why'
cc -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -Wall -W    audit2why.c  -lsepol -lselinux -o audit2why
audit2why.c: In function 'main':
audit2why.c:30: warning: 'fp' may be used uninitialized in this function
/tmp/ccxoMWcB.o(.text+0x371): In function `main':
/usr/src/redhat/BUILD/policycoreutils-1.23.9/audit2why/audit2why.c:146: undefined reference to `sepol_context_to_sid'
/tmp/ccxoMWcB.o(.text+0x581):/usr/src/redhat/BUILD/policycoreutils-1.23.9/audit2why/audit2why.c:165: undefined reference to `sepol_context_to_sid'
/tmp/ccxoMWcB.o(.text+0x7b0):/usr/src/redhat/BUILD/policycoreutils-1.23.9/audit2why/audit2why.c:208: undefined reference to `sepol_compute_av_reason'
collect2: ld returned 1 exit status
make[1]: *** [audit2why] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/policycoreutils-1.23.9/audit2why'
make: *** [all] Error 1

I've no clue, why I get this error message, libsepol(-devel) and 
libselinux(-devel) are installed.

Version-Release number of selected component (if applicable):
policycoreutils-1.23.9-1

How reproducible:
Everytime, see above.
  
Actual results:
Rebuilding doesn't work.

Expected results:
Rebuilding should work.

Additional info:
Using
  cc -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -Wall -W /usr/lib/libsepol.a   audit2why.c  -lsepol -lselinux -o audit2why
instead of
  cc -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -Wall -W    audit2why.c  -lsepol -lselinux -o audit2why
avoids the error messages.
Comment 1 Daniel Walsh 2005-05-19 13:16:50 EDT
You need to update to policycoreutils-1.23.10-1
Comment 2 Robert Scheck 2005-05-20 13:10:02 EDT
And why isn't policycoreutils-1.23.10-1 available in Rawhide?
Comment 3 Robert Scheck 2005-05-21 08:49:31 EDT
1.23.10-2 was built in today's Rawhide; works -> closing now.

Note You need to log in before you can comment on or make changes to this bug.