Bug 196127

Summary: EL4 U3 dmraid seems hopelessly non compilable
Product: Red Hat Enterprise Linux 4 Reporter: Bryce <root>
Component: dmraidAssignee: Heinz Mauelshagen <heinzm>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: agk, dwysocha, heinzm, mbroz
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-28 18:55:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bryce 2006-06-21 11:37:48 UTC
Lo guv,..

I've a x86_64 here with EL4 U3 installed on and I was recompiling dmraid on from
the original src rpm from the EL4 U3 update but something isn't right....

with --enable-static_link the build croaks as follows

...
gcc -o dmraid dmraid.o commands.o toollib.o  -static -L../lib \
      -L/var/tmp/dmraid-1.0.0.rc8-1_RHEL4_U2-buildroot/lib -ldmraid -ldevmapper 
../lib/libdmraid.a(socket.o)(.text+0x85): In function `daemon_open':
daemon/socket.c:44: warning: Using 'gethostbyname' in statically linked
applications requires at runtime the shared libraries from the glibc version
used for linking
/lib/../lib64/libdevmapper.a(libdm-common.o)(.text+0x4dc): In function
`dm_set_selinux_context':
/usr/src/build/679206-x86_64/BUILD/device-mapper.1.02.02/lib/libdm-common.c:206:
undefined reference to `is_selinux_enabled'
/lib/../lib64/libdevmapper.a(libdm-common.o)(.text+0x4f4):/usr/src/build/679206-x86_64/BUILD/device-mapper.1.02.02/lib/libdm-common.c:209:
undefined reference to `matchpathcon'
/lib/../lib64/libdevmapper.a(libdm-common.o)(.text+0x531):/usr/src/build/679206-x86_64/BUILD/device-mapper.1.02.02/lib/libdm-common.c:217:
undefined reference to `lsetfilecon'
/lib/../lib64/libdevmapper.a(libdm-common.o)(.text+0x53f):/usr/src/build/679206-x86_64/BUILD/device-mapper.1.02.02/lib/libdm-common.c:223:
undefined reference to `freecon'
/lib/../lib64/libdevmapper.a(libdm-common.o)(.text+0x5d0):/usr/src/build/679206-x86_64/BUILD/device-mapper.1.02.02/lib/libdm-common.c:219:
undefined reference to `freecon'
collect2: ld returned 1 exit status
make[1]: *** [dmraid] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/dmraid/1.0.0.rc8/tools'
make: *** [tools] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.88341 (%build)


Now most of that is selinux not being pulled in (-lselinux where art thou?)
because libdevmapper referances them but for whatever reason autoconf/configure
doesn't seem to pick up that libselinux would be a really good thing to pull in
for the final build

also theres the issue of /lib vs /lib64 so I'm somewhat confused as to how this
src rpm was able to run through beehive ok

ideas?

Phil
=--=

Comment 1 Heinz Mauelshagen 2007-02-05 14:24:46 UTC
This *should* have been fixed a while back.
Is this still an issue ?

Comment 2 Heinz Mauelshagen 2007-02-28 18:55:52 UTC
No feedback -> closing.