Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152554 - dev-libs/cyrus-sasl-2.1.22 fails to compile under uclibc system (with proposal patch)
Summary: dev-libs/cyrus-sasl-2.1.22 fails to compile under uclibc system (with proposa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-23 06:16 UTC by Philippe Brand
Modified: 2007-03-25 13:43 UTC (History)
1 user (show)

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 Philippe Brand 2006-10-23 06:16:01 UTC
When compiling cyrus-sasl under uclibc system, ltconfig can't find a way to generate shared libraries.

Following patch needs to be applied (credits to already existing binutils patch: http://sources.gentoo.org/viewcvs.py/gentoo-alt/trunk/prefix-overlay/sys-devel/libtool/files/ltconfig-uclibc.patch?rev=885).

phbdev files # cat cyrus-sasl-2.1.22-ltconfig.patch
*** config/ltconfig.orig        Mon Oct 23 12:56:28 2006
--- config/ltconfig     Mon Oct 23 12:57:21 2006
***************
*** 2046,2051 ****
--- 2046,2070 ----
    fi
    ;;

+ linux-uclibc*)
+   version_type=linux
+   need_lib_prefix=no
+   need_version=no
+   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+   soname_spec='${libname}${release}.so$major'
+   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+   shlibpath_var=LD_LIBRARY_PATH
+   shlibpath_overrides_runpath=no
+   # This implies no fast_install, which is unacceptable.
+   # Some rework will be needed to allow for fast_install
+   # before this can be enabled.
+   # Note: copied from linux-gnu, and may not be appropriate.
+   hardcode_into_libs=yes
+   # Assume using the uClibc dynamic linker.
+   dynamic_linker="uClibc ld.so"
+   ;;
+
+
  netbsd*)
    version_type=sunos
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then


Additional line in ebuild:

        # uclibc specific patch to enable shared libraries
        epatch "${FILESDIR}/${P}-ltconfig.patch"


phbdev files # emerge --info
Portage 2.1.1 (uclibc/x86, gcc-4.1.1, uclibc-0.9.28-r0, 2.6.17-hardened-r1-SafeBOX i686)
=================================================================
System uname: 2.6.17-hardened-r1 i686 Intel(R) Celeron(R) M processor         1300MHz
Gentoo Base System version 1.12.5
Last Sync: Sat, 21 Oct 2006 07:20:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-z,relro"
LINGUAS=""
PKGDIR="/packages/uclibc"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acpi bgpclassless bitmap-fonts bzip2 cgi chroot cli cracklib dba dlloader dri eap-tls elibc_uclibc ethereal extensions fam fastcgi hardened imap imq input_devices_evdev input_devices_keyboard input_devices_mouse kerberos kernel_linux krb4 l7filter ldap ldirectord minimal multipath mysql ncurses ospfapi pcre perlsuid pic pop3d readline realms reflection sasl session skey spl sse ssl threads tools truetype-fonts type1-fonts uclibc usb userland_GNU vda vhosts video_cards_dummy video_cards_fbdev video_cards_v4l virus-scan xorg zero-penalty-hit zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2007-01-08 21:26:39 UTC
Is this fixed in the latest ebuild (2.1.22-r1)?


Running elibtoolize in: cyrus-sasl-2.1.22/config
  Applying max_cmd_len-1.5.0.patch ...
  Applying sed-1.5.6.patch ...
  Applying uclibc-ltconf-1.3.0.patch ...
Running elibtoolize in: cyrus-sasl-2.1.22/saslauthd/config
  Applying portage-1.3.4.patch ...
  Applying sed-1.5.6.patch ...
  Applying tmp-1.3.5.patch ...
  Applying uclibc-ltconf-1.3.0.patch ...
Comment 2 SpanKY gentoo-dev 2007-03-25 13:43:11 UTC
yes, elibtoolize should be sufficient, thanks !