Hi all,
While I was trying to rebuild the rpm-4.2-0.69.src.rpm in RHEE4, I
was getting the following error message:
$ rpmbuild --rebuild rpm-4.2-0.69.src.rpm
..........................................................
...........................................................
Making all in tools
make[2]: Entering directory `/usr/src/redhat/BUILD/rpm-4.2/tools'
source='rpmgraph.c' object='rpmgraph.o' libtool=no \
depfile='.deps/rpmgraph.Po' tmpdepfile='.deps/rpmgraph.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -D__redhat__ -I. -I. -I.. -I. -I.. -I../build
-I../lib -I../rpmdb -I../rpmio -I../popt -I../file -I../zlib -I../misc
-O2 -g -fsigned-char -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT
-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-Wno-char-subscripts -c `test -f 'rpmgraph.c' || echo './'`rpmgraph.c
/bin/sh ../libtool --mode=link gcc -O2 -g -fsigned-char
-fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o
rpmgraph -all-static -L/usr/lib/nptl rpmgraph.o ../lib/librpm.la
.../beecrypt/libbeecrypt.la -lrt -lpthread -L../zlib -L/lib
-L/usr/local/lib -lbz2 -lc -lnss_dns -lnss_files -lresolv
mkdir .libs
gcc -O2 -g -fsigned-char -fomit-frame-pointer -D_GNU_SOURCE
-D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wno-char-subscripts -o rpmgraph -static
rpmgraph.o -L/usr/lib/nptl ../lib/.libs/librpm.a
/usr/src/redhat/BUILD/rpm-4.2/rpmdb/.libs/librpmdb.a
-L/usr/src/redhat/BUILD/rpm-4.2/zlib -L/cdt/lib -L/usr/local/lib -lelf
/usr/src/redat/BUILD/rpm-4.2/rpmio/.libs/librpmio.a
/usr/src/redhat/BUILD/rpm-4.2/popt/.libs/libpopt.a
.../beecrypt/.libs/libbeecrypt.a -lrt -lpthread -lbz2 -lc -lnss_dns
-lnss_files -lresolv
.../lib/.libs/librpm.a(rpminstall.o)(.text+0x1698): In function
`rpmInstall':
/usr/src/redhat/BUILD/rpm-4.2/lib/rpminstall.c:419: the use of `mktemp'
is dangerous, better use `mkstemp'
/usr/bin/ld: cannot find -lnss_dns
collect2: ld returned 1 exit status
make[2]: *** [rpmgraph] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/rpm-4.2/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/rpm-4.2'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.43370 (%build)
Help me to resolve this issue.
Thanks in advance.
Regards
Vijay