Bug 118909 - rpm 4.3 build problems
Summary: rpm 4.3 build problems
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-22 17:54 UTC by Steve Grubb
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-03-22 18:33:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Steve Grubb 2004-03-22 17:54:14 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2.1)
Gecko/20030225

Description of problem:
The latest version of rpm doesn't compile because of 2 problems. The
rpm  configure file assumes selinux is installed without actually
testing for it. Either a BuildRequires = selinux-devel should be added
to the spec file, or it should be handled more gracefully like the
doxygen part of building the rpm package.

The second problem is that it does not properly detect beecrypt during
configure. The rpmbuild sees beecrypt is installed and proceeds to
compiling. The compilation ends in rpmio_internal.h saying it can't
find beecrypt. Is the wrong beecrypt version specified in the spec file?

Version-Release number of selected component (if applicable):
rpm-4.3-0.22

How reproducible:
Always

Steps to Reproduce:
1. rpm -ivh rpm-4.3-0.22.src.rpm
2. rpmbuild -bs /usr/src/redhat/SPEC/rpm.spec



Actual Results:  From the configure log:

configure:22724: checking beecrypt/beecrypt.h presence
configure:22734: gcc -E  conftest.c
configure:22740: $? = 0
configure:22760: result: yes
configure:22795: checking for beecrypt/beecrypt.h
configure:22802: result: yes
configure:22808: checking for mpfprintln in -lbeecrypt
configure:22838: gcc -o conftest -g -O2 -fPIC -DPIC -D_GNU_SOURCE
-D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wno-char-subscripts   conftest.c -lbeecrypt  
-L/usr/local/lib  >&5
conftest.c:40: warning: function declaration isn't a prototype
conftest.c:43: warning: function declaration isn't a prototype
/tmp/ccEGbTMS.o(.text+0x15): In function `main':
/opt/rpm-4.3/conftest.c:44: undefined reference to `mpfprintln'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbeecrypt.so:
undefined reference to `aio_cancel'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbeecrypt.so:
undefined reference to `aio_read'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbeecrypt.so:
undefined reference to `aio_suspend'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbeecrypt.so:
undefined reference to `aio_error'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libbeecrypt.so:
undefined reference to `aio_return'
collect2: ld returned 1 exit status
configure:22844: $? = 1
configure: failed program was:

During compile:

In file included from digest.c:6:
rpmio_internal.h:12:26: beecrypt.api.h: No such file or directory
rpmio_internal.h:17:22: beecrypt.h: No such file or directory
rpmio_internal.h:18:20: base64.h: No such file or directory


Expected Results:  rpm 4.3 package to be built.

Additional info:

Comment 1 Jeff Johnson 2004-03-22 18:33:56 UTC
Configure using --without-selinux. Or install libselinux-devel.
Install beecrypt-devel to use external, not internal.


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