Error bootstrapping prefix on RHEL5 amd64
I'm trying to bootstrap prefix on a RHEL5 amd64 box and I'm getting
stuck emerging openssh. I'm getting many linking errors such as: openbsd-compat//libopenbsd-compat.a(port-tun.o): In function `recv': port-tun.c:(.text+0x8b0): multiple definition of `recv' ssh.o:ssh.c:(.text+0x2bf0): first defined here collect2: ld returned 1 exit status make: *** [ssh] Error 1 ** ERROR: net-misc/openssh-5.5_p1-r2 failed: ** * (no error message) ** ** Call stack: ** * * ebuild.sh, line *53: *Called call-ebuildshell 'src_compile' ** * environment, line 648: *Called src_compile ** * environment, line 3505: *Called die ** The specific snippet of code: ** * * * emake || die I assume that the problem is some incompatibility between gcc-4.4.5 and openssh-5.5_p1-r2 from the prefix with kernel 2.6.18 and glibc-2.5-49 from the host. There doesn't seem to be an ebuild for linux-headers 2.6.18, and I assume that trying to emerge uclibc or glibc would be a very bad idea. Any ideas on how to get openssh to emerge? Regards Jeff $ emerge --info =net-misc/openssh-5.5_p1-r2 Portage 2.2.01.15553-prefix (prefix/linux/amd64, gcc-4.4.5, unavailable, 2.6.18-194.3.1.el5 x86_64) ================================================== =============== * * * * * * * * * * * *System Settings ================================================== =============== System uname: Linux-2.6.18-194.3.1.el5 Timestamp of tree: Thu, 21 Oct 2010 21:41:20 +0000 app-shells/bash: * * 4.1_p7 dev-lang/python: * * 2.6.5-r2 sys-devel/autoconf: *2.65-r1 sys-devel/automake: *1.11.1 sys-devel/binutils: *2.20.51.0.10 sys-devel/gcc: * * * 4.2.4-r01.2, 4.4.5 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: * 2.2.10 sys-devel/make: * * *3.81-r2 virtual/os-headers: *2.6.35 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="~amd64-linux" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo" CPPFLAGS="-I/home/jeff/rhel5-amd64-linux/usr/include" CXXFLAGS="-O2 -pipe" DISTDIR="/home/jeff/rhel5-amd64-linux/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixlafiles fixpackages parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-L/home/jeff/rhel5-amd64-linux/usr/lib -R/home/jeff/rhel5-amd64-linux/usr/lib -L/home/jeff/rhel5-amd64-linux/lib -R/home/jeff/rhel5-amd64-linux/lib" PKGDIR="/home/jeff/rhel5-amd64-linux/usr/portage/packages" PORTAGE_CONFIGROOT="/home/jeff/rhel5-amd64-linux/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/home/jeff/rhel5-amd64-linux/var/tmp" PORTDIR="/home/jeff/rhel5-amd64-linux/usr/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="amd64 bootstrap bzip2 cracklib crypt cxx dri iconv ipv6 mmx modules mudflap ncurses nptl nptlonly openmp perl pppd prefix readline sse sse2 sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: *CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
Error bootstrapping prefix on RHEL5 amd64
On 19-11-2010 11:09:27 +0100, Jeffrey Ratcliffe wrote:
> I'm trying to bootstrap prefix on a RHEL5 amd64 box and I'm getting > stuck emerging openssh. > > I'm getting many linking errors such as: > > openbsd-compat//libopenbsd-compat.a(port-tun.o): In function `recv': > port-tun.c:(.text+0x8b0): multiple definition of `recv' > Any ideas on how to get openssh to emerge? we've seen this before, and there was some cflag to use for this to solve this. I forget which one though :/ -- Fabian Groffen Gentoo on a different level |
Error bootstrapping prefix on RHEL5 amd64
On 19 November 2010 11:11, Fabian Groffen <grobian@gentoo.org> wrote:
> we've seen this before, and there was some cflag to use for this to > solve this. *I forget which one though :/ Thanks for the hint. prefixing -Wl,--allow-multiple-definition to LDFLAGS seems to do the trick. I had to modify the instructions on LDFLAGS per package[1] by adding ${PREFIX} in various places. Regards Jeff [1] http://www.gentoo-wiki.info/TIP_Safe_LDFLAGS#Per_package_LDFLAGS |
Error bootstrapping prefix on RHEL5 amd64
On Fri, 19 Nov 2010 13:12:59 +0100, Jeffrey Ratcliffe wrote:
On 19 November 2010 11:11, Fabian Groffen <grobian@gentoo.org> wrote: we've seen this before, and there was some cflag to use for this to solve this. *I forget which one though :/ Thanks for the hint. prefixing -Wl,--allow-multiple-definition to LDFLAGS seems to do the trick. I had to modify the instructions on LDFLAGS per package[1] by adding ${PREFIX} in various places. It actually looks like bug 289757 to me. https://bugs.gentoo.org/show_bug.cgi?id=289757 -Jeremy Regards Jeff [1] http://www.gentoo-wiki.info/TIP_Safe_LDFLAGS#Per_package_LDFLAGS |
Error bootstrapping prefix on RHEL5 amd64
On 19 November 2010 17:05, Jeremy Olexa <darkside@gentoo.org> wrote:
> It actually looks like bug 289757 to me. > https://bugs.gentoo.org/show_bug.cgi?id=289757 Indeed. For the record, I was able to emerge -e system after setting USE=vanilla for gcc and appending -fgnu89-inline to CFLAGS for cpio. To set CFLAGS on a per-package basis, I created etc/portage/env/<category>/<package>. This seems much neater than the instructions on the wiki[1]. Why doesn't the wiki explain this method? Now I can't emerge cairo, but that is for a different thread. Regards Jeff [1] http://www.gentoo-wiki.info/TIP_Safe_LDFLAGS#Per_package_LDFLAGS |
Error bootstrapping prefix on RHEL5 amd64
On 11/23/2010 02:36 AM, Jeffrey Ratcliffe wrote:
On 19 November 2010 17:05, Jeremy Olexa<darkside@gentoo.org> wrote: It actually looks like bug 289757 to me. https://bugs.gentoo.org/show_bug.cgi?id=289757 Indeed. For the record, I was able to emerge -e system after setting USE=vanilla for gcc and appending -fgnu89-inline to CFLAGS for cpio. To set CFLAGS on a per-package basis, I created etc/portage/env/<category>/<package>. This seems much neater than the instructions on the wiki[1]. Why doesn't the wiki explain this method? The gentoo-wiki is not maintained, endorsed, or considered documentation by the Gentoo Developer community. Feel free to add stuff there yourself, though. -Jeremy |
| All times are GMT. The time now is 07:34 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.