L. Friedman wrote:/usr/local/bin/gcc3 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -fno-exceptions -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o rpm -static rpm.o ./build/.libs/librpmbuild.a ./lib/.libs/librpm.a ./rpmdb/.libs/librpmdb.a ./rpmio/.libs/librpmio.a -L/usr/local/lib -lz -lbz2 ./popt/.libs/libpopt.a
./lib/.libs/librpm.a(rpmchecksig.o)(.text+0x64b): In function `rpmReSign':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/lib/libbz2.a(bzlib.o)(.text+0x2a22): In function `bzopen_or_bzdopen':
: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make[2]: *** [rpm] Error 1
make[2]: Leaving directory `/home/netllama/stuff/rpm-4.0.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/netllama/stuff/rpm-4.0.3'
make: *** [all-recursive-am] Error 2
This is bzip2, not rpm, problem. Upgrade or rebuild bzip2.
Bingo, that appears to have done the trick for building rpm-4.0.3. Thanks.
I'm trying to build rpm-3.0.6 on the same box, and i'm not having much luck there:
/usr/local/bin/gcc3 -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -funroll-loops -ffast-math -fomit-frame-pointer -fno-exceptions -D_GNU_SOURCE -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -c popt.c -fPIC -DPIC -o .libs/popt.lo
popt.c: In function `poptGetNextOpt':
popt.c:596: error: `FLT_MAX' undeclared (first use in this function)
popt.c:596: error: (Each undeclared identifier is reported only once
popt.c:596: error: for each function it appears in.)
popt.c:598: error: `FLT_MIN' undeclared (first use in this function)
make[4]: *** [popt.lo] Error 1
make[4]: Leaving directory `/home/netllama/stuff/rpm-3.0.6/popt'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/netllama/stuff/rpm-3.0.6/popt'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/home/netllama/stuff/rpm-3.0.6/popt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/netllama/stuff/rpm-3.0.6'
make: *** [all-recursive-am] Error 2
Any obvious things here? thanks.
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ L. Friedman netllama@xxxxxxxxxxxxx Linux Step-by-step & TyGeMo: http://netllama.ipfox.com
5:50pm up 1:01, 1 user, load average: 0.07, 0.33, 0.42
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list