On Thu, May 26, 2005, Jaewoo Lee wrote:

> I tried to build apache2 rpm on amd64.
> apache2 uses ?expat? package and expat uses zlib.
> On building zlib, I had the following problem and failed to build zlib.
> I used the rpm source on the openpkg site.
> zlib-1.2.2-2.3.0.src.rpm
> Any idea about it?
>
> [EMAIL PROTECTED] build-utils]# openpkg rpm --rebuild zlib-1.2.2-2.3.0.src.rpm
> Installing zlib-1.2.2-2.3.0.src.rpm
> Executing(%prep): env -i /opt/igloo/lib/openpkg/bash --norc --noprofile 
> --posix
> -e /opt/igloo/RPM/TMP/rpm-tmp.22804
> + cd /opt/igloo/RPM/TMP
> + cd /opt/igloo/RPM/TMP
> + rm -rf zlib-1.2.2
> + /opt/igloo/lib/openpkg/gzip -dc /opt/igloo/RPM/SRC/zlib/zlib-1.2.2.tar.gz
> + /opt/igloo/lib/openpkg/tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd zlib-1.2.2
> + exit 0
> Executing(%build): env -i /opt/igloo/lib/openpkg/bash --norc --noprofile
> --posix -e /opt/igloo/RPM/TMP/rpm-tmp.22804
> + cd /opt/igloo/RPM/TMP
> + cd zlib-1.2.2
> + CC=/opt/igloo/bin/cc
> + CFLAGS='-O2 -pipe'
> + ./configure --prefix=/opt/igloo --shared
> Checking for shared library support...
> [...]

This cannot be the regular Zlib 1.2.2 from OpenPKG 2.3.0 because
according to our CVS we never used the --shared option. And this option
is your problem. Because on AMD64 you usually need PIC code if you want
to build a DSO. So AFAIK if you change zlib.spec to add --shared you
also have to add -fPIC to CFLAGS.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to