Bug 97887

Summary: beecrypt building on hp-ux 11.00
Product: [Retired] Red Hat Linux Reporter: Dano Carroll <dano>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED UPSTREAM QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: parisc11   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-06-25 14:51:56 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:
Attachments:
Description Flags
beecrypt entropy.c patch none

Description Dano Carroll 2003-06-23 18:00:16 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; HP-UX 9000/778; en-US; rv:1.0.1) Gecko/20020827
Netscape/7.0

Description of problem:
When I try to build the beecrypt component of rpm, I get the following error. 

/bin/sh ./libtool --mode=compile /usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.
    -
O3 -g -I -I/hp-ux -c -o entropy.lo `test -f 'entropy.c' || echo './'`entropy.c
rm -f .libs/entropy.lo
/usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -O3 -g -I -I/hp-ux -c entropy.c 
-fPIC
 -DPIC -o .libs/entropy.lo
entropy.c:912: error: parse error before "dev_tty_lock"
entropy.c:912: error: `DEFAULTMUTEX' undeclared here (not in a function)
entropy.c:912: warning: data definition has no type or storage class

I found that within the code for entropy.c, there are several lines like the
following:

#if defined(_REENTRANT) && !defined(hpux)

Now, I'm pretty sure that I have flicked the safety off in preparation for
shooting myself in the foot later, but I patched entropy.c to replace the
!defined(hpux) with defined(hpux), which causes beecrypt to build. 

Version-Release number of selected component (if applicable):
4.1

How reproducible:
Always

Steps to Reproduce:
1. Untar the rpm-4.1.tar.gz package
2. Patch to get popt to compile (I haven't entered that bug yet)
3. Patch to remove beecrypt warning message (see Bug 97662)
4. ./configure --prefix=/usr/local --without-python (I don't think the options
matter)
    

Actual Results:  The error message noted above.

Additional info:

Comment 1 Dano Carroll 2003-06-23 18:02:23 UTC
Created attachment 92563 [details]
beecrypt entropy.c patch

Comment 2 Dano Carroll 2003-06-23 21:03:55 UTC
The patch for the popt bug is in bug number 97907.


Comment 3 Jeff Johnson 2003-06-25 14:51:56 UTC
Patch sent upstream, might be in beecrypt-3.0.1 soonish.

Meanwhile, beecrypt is moving out of rpm, external linkage instead.