Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130276 - openssl fails in cross-compile
Summary: openssl fails in cross-compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-17 10:23 UTC by Harald Schioeberg
Modified: 2006-04-18 06:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Schioeberg 2006-04-17 10:23:56 UTC
dev-libs/openssl-0.9.7i fails to build when cross-compliling
(may not be related to cross-compiling but alternate ROOT, but sandbox shouldn't care?)

reason: does not find zlib.h 

error:
mipsel-softfloat-linux-gnu-gcc -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC 
-DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -
DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO   -Wall -O2 -march=4kc -msoft-float -pipe -
Wa,--noexecstack   -c -o c_zlib.o c_zlib.c
c_zlib.c:25:18: zlib.h: No such file or directory

workaround (very dirty):
add -I${ROOT}/usr/include to CFLAGS

make.conf variables (not actual make.conf, but a file sourced before emerge openssl):

export ROOT=/mnt/rbroot
export CFLAGS="-O2 -march=4kc -msoft-float -pipe"
export CBUILD="i686-pc-linux-gnu"
export CHOST="mipsel-softfloat-linux-gnu"
export CXXFLAGS="${CFLAGS}"
export USE="-nptl -threads ssl crypt -doc -sse2 -alsa -dvd -dvdr -dvdread dio -ieee1394 -lapack -maildir -mmx perl -sdl -ppds -spell -tetex sysvipc -truetype -vcd wifi -xv -X -gnome -kde"
export MAKEOPTS="-j2"
export PORTDIR_OVERLAY=/usr/local/mipsel-ports
export CC="mipsel-softfloat-linux-gnu-gcc"
export CXX="mipsel-softfloat-linux-gnu-g++"
export LD="mipsel-softfloat-linux-gnu-ld"
export BUILD_CC="i686-pc-linux-gnu-gcc"
export BUILD_CXX="i686-pc-linux-gnu-g++"
export BUILD_CFLAGS="-O2 -march=athlon-xp -pipe "


emerge --info
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.4, unavailable, 2.6.15-gentoo-
r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=4kc -msoft-float -pipe"
CHOST="mipsel-softfloat-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share
/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/shar
e/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/sh
are/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/tex
mf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=4kc -msoft-float -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/
distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/mipsel-ports"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 apm arts avi berkdb bitmap-fonts cli crypt ctype cups dba dio d
ri eds emboss encode esd expat fastbuild foomaticdb force-cgi-redirect fortran f
tp gd gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg libg++ libwww mad 
memlimit mikmod motif mp3 mpeg ncurses nls ogg opengl oss pam pcre pdflib perl p
ng posix pppd python qt quicktime readline session simplexml soap sockets spl ss
l sysvipc tcpd tokenizer truetype-fonts type1-fonts udev vorbis wifi xml xmms xs
l zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2006-04-18 06:26:21 UTC
your toolchain does not have zlib available to it, not an openssl bug