Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Unable to compile courier-imap

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
OneInchMen
n00b
n00b
User avatar
Posts: 70
Joined: Thu Sep 30, 2004 2:24 pm
Location: Tilburg, the Netherlands
Contact:
Contact OneInchMen
Website

Unable to compile courier-imap

  • Quote

Post by OneInchMen » Tue May 16, 2006 1:02 pm

After upgrading a laptop to Linux (gentoo, of course) I'm unable to get courier-imap to compile:

Code: Select all

Linking couriertls
../bdbobj/.libs/libbdbobj.a(bdbobj.o): In function `bdbobj_open':
bdbobj.c:(.text+0x381): undefined reference to `db_create_4002'
collect2: ld returned 1 exit status
make[3]: *** [couriertcpd] Error 1
make[3]: Leaving directory `/var/tmp/portage/courier-imap-4.0.1/work/courier-imap-4.0.1/tcpd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/courier-imap-4.0.1/work/courier-imap-4.0.1/tcpd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/courier-imap-4.0.1/work/courier-imap-4.0.1'
make: *** [all] Error 2
Googeling for "db_create_4002" suggests that something is wrong with the Berkely DB (sys-libs/db-4.2.52_p2-r1), but after a recompile I still get the above message.

System info:

Code: Select all

# emerge --info
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.3.6-r3, 2.6.16-ck10 i686)
=================================================================
System uname: 2.6.16-ck10 i686 Mobile Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
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-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="-mtune=pentium4 -march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=pentium4 -march=pentium4 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/opt/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--as-needed -s"
MAKEOPTS="-j2"
PKGDIR="/opt/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acl alsa bash-completion cups ithreads mmx nptl oggvorbis pam readline sse sse2 unicode xattr userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY

# emerge -av courier-imap

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] net-mail/courier-imap-4.0.1  +berkdb -debug -fam -gdbm -ipv6 -nls (-selinux) 0 kB
--> http://www.oneinchmen.com <--
Top
sternklang
Veteran
Veteran
User avatar
Posts: 1641
Joined: Sat Sep 10, 2005 1:22 pm
Location: Somewhere in time and space

Re: Unable to compile courier-imap

  • Quote

Post by sternklang » Tue May 16, 2006 1:10 pm

OneInchMen wrote:

Code: Select all

LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--as-needed -s"
I understand "--as-needed" causes problems with symbol visibility in a lot of packages. You might try removing that and building sys-libs/db again, then try building courier-imap.
Top
OneInchMen
n00b
n00b
User avatar
Posts: 70
Joined: Thu Sep 30, 2004 2:24 pm
Location: Tilburg, the Netherlands
Contact:
Contact OneInchMen
Website

  • Quote

Post by OneInchMen » Tue May 16, 2006 2:04 pm

Building courier-imap without --as-needed did the trick, I left db untouched.

This was the first time I encountered a compile problem with that ldflag, although I heard that it could lead to problems somewhere... Shame on me for not recognizing it!

I'll try to notify the owner of the courier-imap ebuild of this, although I'm not sure it has an active maintainer (latest version in portage is rather old)...
--> http://www.oneinchmen.com <--
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic