RPM Community Forums

Mailing List Message of <rpm-devel>

"make %{?_smp_mflags}" causes zlib to fail building

From: Robert Scheck <robert@rpm5.org>
Date: Fri 17 Aug 2007 - 22:05:22 CEST
Message-ID: <20070817200522.GA479@hurricane.linuxnetz.de>
Good evening everybody,

I've recently noticed, that we've the problem of failing building of rpm at
zlib when doing "make %{?_smp_mflags}" further on:

/bin/sh ./libtool --tag=CC   --mode=link gcc  -DUSE_MMAP -DWITH_RSYNC_PAD
-O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf
.libs/libz.a -pie -o example example.o
gcc -DUSE_MMAP -DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-Wno-char-subscripts -DHAS_snprintf -DHAS_snprintf -pie -o example
example.o  .libs/libz.a
gcc: .libs/libz.a: No such file or directory
make[3]: *** [example] Error 1
make[3]: *** Waiting for unfinished jobs....
ar cru .libs/libz.a .libs/adler32.o .libs/compress.o .libs/crc32.o
.libs/deflate.o .libs/gzio.o .libs/infback.o .libs/inffast.o
.libs/inflate.o .libs/inftrees.o .libs/trees.o .libs/uncompr.o
.libs/zutil.o
ranlib .libs/libz.a
creating libz.la
(cd .libs && rm -f libz.la && ln -s ../libz.la libz.la)
make[3]: Leaving directory `/usr/src/rpm/BUILD/rpm-4.5/zlib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/rpm/BUILD/rpm-4.5/zlib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/rpm/BUILD/rpm-4.5'
make: *** [all] Error 2

As far as I can see, the Fedora guys don't have this problem after they
applied an own (non-upstream) patch to the spec file of zlib, see:
http://cvs.fedoraproject.org/viewcvs/devel/zlib/zlib.spec?view=markup
Is there anything which would avoid us to apply this patch also? Ideas?


Greetings,
  Robert
Received on Fri Aug 17 22:05:26 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.