cc -O2 -march=prescott -pipe -fforce-addr -fomit-frame-pointer -I. -I/var/tmp/portage/net-misc/openswan-2.4.14/work/openswan-2.4.14/linux/net/ipsec -I/var/tmp/portage/net-misc/openswan-2.4.14/work/openswan-2.4.14/linux/include -I/var/tmp/portage/net-misc/openswan-2.4.14/work/openswan-2.4.14 -DDEBUG -DWITH_UDPFROMTO -DHAVE_IP_PKTINFO -I/var/tmp/portage/net-misc/openswan-2.4.14/work/openswan-2.4.14/include -O2 -march=prescott -pipe -fforce-addr -fomit-frame-pointer -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-function-cast -DNAT_TRAVERSAL -c -o kernel_alg.o kernel_alg.c keyblobtoid.c: In function âkeyblobtoidâ: keyblobtoid.c:40: warning: pointer targets in passing argument 1 of âdatatotâ differ in signedness cc -O2 -march=prescott -pipe -fforce-addr -fomit-frame-pointer -I. -I/var/tmp/portage/net-misc/openswan-2.4.14/work/openswan-2.4.14/linux/net/ipsec -I/var/tmp/portage/net-misc/openswan-2.4.14/work/openswan-2.4.14/linux/include -I/var/tmp/portage/net-misc/openswan-2.4.14/work/openswan-2.4.14 -DDEBUG -DWITH_UDPFROMTO -DHAVE_IP_PKTINFO -I/var/tmp/portage/net-misc/openswan-2.4.14/work/openswan-2.4.14/include -O2 -march=prescott -pipe -fforce-addr -fomit-frame-pointer -Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-function-cast -DNAT_TRAVERSAL -c -o optionsfrom.o optionsfrom.c optionsfrom.c:34: error: conflicting types for âgetlineâ /usr/include/stdio.h:651: error: previous declaration of âgetlineâ was here make[2]: *** [optionsfrom.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/net-misc/openswan-2.4.14/work/openswan-2.4.14/lib/libopenswan' make[1]: *** [programs] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-misc/openswan-2.4.14/work/openswan-2.4.14/lib' make: *** [programs] Error 1 * * ERROR: net-misc/openswan-2.4.14 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2960: Called die * The specific snippet of code: * emake "$@" ${MYMAKE} || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-misc/openswan-2.4.14/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/openswan-2.4.14/temp/environment'. * Reproducible: Always Steps to Reproduce: 1. emerge openswan Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.26-hardened-r5 i686) ================================================================= System uname: Linux-2.6.26-hardened-r5-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-2.0.1 Timestamp of tree: Sun, 31 May 2009 11:45:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 2.4 [disabled] app-shells/bash: 4.0_p24 dev-lang/python: 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r2 sys-apps/sandbox: 1.9 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe -fforce-addr -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/c gi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=prescott -pipe -fforce-addr -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://mir ror.ovh.net/gentoo-distfiles/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://gentoo.tiscali.nl/ ftp://gentoo.tiscali.nl/pub/ mirror/gentoo/ http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/ http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opo le.pl ftp://gentoo.po.opole.pl ftp://mirror.icis.pcz.pl/gentoo/ http://gentoo.mirror.pw.edu.pl/ " LANG="pl_PL.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="pl en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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="/var/tmp" PORTDIR="/usr/portage/" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="7zip X509 acl acpi berkdb bzip2 cdb crypt fortran gd hardened idn ipv6 loop-aes mailwrapper mmx multislot mysql ncurses nls nptl nptlonly objc objc++ pam pcre perl pic python radius readline snmp sse sse2 ssl tcpd threads truetype unicode userlocales x86 xml zlib" ALSA_CARDS="ali5451 als4000 atiixp atiix p-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-mo dem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw mul ti null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias auth_digest authn_dbd authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache deflate dir disk_cache env expires filter log_config logio mem_cache mime m ime_magic negotiation rewrite setenvif unique_id usertrack vhost_alias charset_lite dbd dumpio ident" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="ke yboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO _CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_O VERLAY
Kernel config: CONFIG_INET_AH=y CONFIG_INET_ESP=y CONFIG_INET_IPCOMP=y CONFIG_INET_XFRM_TUNNEL=y CONFIG_INET_TUNNEL=y CONFIG_INET_XFRM_MODE_TRANSPORT=y CONFIG_INET_XFRM_MODE_TUNNEL=y CONFIG_INET_XFRM_MODE_BEET=y
Created attachment 193216 [details, diff] patch that resolves the name clash The problem occurs because both openswan and glibc 2.10 have a getline function. But the function signature and return code is different. It seems the best solution is to rename openswan's getline to something else. The attached patch does that.
After patching it seems to work for me.
Please don't close bugs that aren't fixed. This still needs the patch to be applied by the ebuild in the tree.
(In reply to comment #2) > Created an attachment (id=193216) [edit] > patch that resolves the name clash Thanks for the patch. Openswan 2.6.x uses of_getline instead of getline. Perhaps better to follow the same naming convention in 2.4.x as well (i.e. change osw_getline to of_getline in the patch)?
Fixed in 2.4.14 (no rev bump). Thanks!