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:
Created attachment 92563 [details] beecrypt entropy.c patch
The patch for the popt bug is in bug number 97907.
Patch sent upstream, might be in beecrypt-3.0.1 soonish. Meanwhile, beecrypt is moving out of rpm, external linkage instead.