Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99966 - openswan-2.2.0 (and 2.2.1) won't compile with glibc-2.3.5
Summary: openswan-2.2.0 (and 2.2.1) won't compile with glibc-2.3.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Jay Pfeifer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-22 15:37 UTC by Mike Williams
Modified: 2005-11-29 06:57 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 Mike Williams 2005-07-22 15:37:54 UTC
Following the update of glibc 2.3.5, openswan 2.2.x won't compile (verified on 
two very different gentoo boxes). 
 
I created a 2.2.1 openswan ebuild by copying the 2.2.0, and changing the 
references to 2.2.0 in the patch. 
Same error for either version. 
 
openswan 2.3.1 works fine, and is a direct drop-in replacement, bar needing 
esp=3des-md5-96 added to the conn %default section to work with 2.2.x (found 
this out the other day when we updated a remote FC1 box to FC2 and 2.3.1 rpms) 
 
cc -DNAT_TRAVERSAL -DVIRTUAL_IP  -I../../linux/include -I../../lib -I.. 
-I../.. -DIPSEC_EXECDIR=\"/usr/libexec/ipsec\" 
-DIPSEC_CONFDDIR=\"/etc/ipsec/ipsec.d\" -DIPSEC_CONFDIR=\"/etc/ipsec\" -Os 
-march=athlon -pipe -I../.. -I../../linux/include -I../../include -Wall 
-Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-function-cast  
-DNAT_TRAVERSAL -DKERNEL_ALG -DIKE_ALG -Werror -c -o invokepluto.o 
invokepluto.c 
invokepluto.c: In function `starter_start_pluto': 
invokepluto.c:184: warning: `sigsetmask' is deprecated (declared 
at /usr/include/signal.h:184) 
make[2]: *** [invokepluto.o] Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/openswan-2.2.1/work/openswan-2.2.1/programs/starter' 
make[1]: *** [programs] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/openswan-2.2.1/work/openswan-2.2.1/programs' 
make: *** [programs] Error 1 
 
!!! ERROR: net-misc/openswan-2.2.1 failed. 
!!! Function src_compile, Line 108, Exitcode 2 
!!! (no error message) 
!!! If you need support, post the topmost build error, NOT this status 
message. 
 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Tiago Freire 2005-08-19 12:41:48 UTC
neither with 2.3.5-r1
Comment 2 Falko 2005-08-26 07:08:50 UTC
I also have this very problem.

works with glibc-2.3.4.20041102-r1 and kernel 2.6.12-gentoo-r9 but not with
glibc-2.3.5-r1 on 2.6.12-gentoo-r9

any solutions?

the /usr/include/signal.h seems to be fairly different between the two
glibc-versions...
Comment 3 Jeremy Chalfant 2005-08-29 11:51:20 UTC
Was having the same problem, and tried
ACCEPT_KEYWORDS="~x86" emerge openswan
and compile of openswan-2.3.1 completed w/o error.  However I have yet to
configure it to confirm that it works.
Comment 4 Liam Widdess 2005-09-15 14:53:52 UTC
Thanks for your help with that - if you want to emerge the 2.3.1 ebuild:
    ACCEPT_KEYWORDS="~x86" emerge =openswan-2.3.1
should allways work on x86 at least (worked for me). the accept keyword is
necessary because the package is masked, (not yet approved for release).
The error is that glibc 2.3.5 deprecated setsigmask in favour of sigprocmask
and openswan 2.2.x calls it. I guess 2.3.x has been updated in this regard.
It's an interesting question whether the new openswan compiles against the old
glibc. The 'solution' is probably for the maintainer to release the packages
and update the portage dependency tree to reflect what actually compiles ;)

liam
Comment 5 cilly 2005-10-26 02:35:17 UTC
invokepluto.c: In function `starter_start_pluto':
invokepluto.c:184: warning: `sigsetmask' is deprecated (declared at
/usr/include/signal.h:184)
make[2]: *** [invokepluto.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/openswan-2.2.0/work/openswan-2.2.0/programs/starter'
make[1]: *** [programs] Error 1
make[1]: Leaving directory
`/var/tmp/portage/openswan-2.2.0/work/openswan-2.2.0/programs'
make: *** [programs] Error 1

!!! ERROR: net-misc/openswan-2.2.0 failed.
!!! Function src_compile, Line 108, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

emerge info

emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.12.5 i686)
=================================================================
System uname: 2.6.12.5 i686 VIA Samuel 2
Gentoo Base System version 1.6.13
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.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=i586 -Os -m3dnow -mmmx -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i586 -Os -m3dnow -mmmx -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts crypt
cups curl eds emboss encode foomaticdb fortran gd gdbm gif gpm gstreamer
imagemagick imap imlib innodb ipv6 jpeg libg++ libwww mad maildir mikmod motif
mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pam-mysql
pdflib perl png posix python quicktime readline samba sasl sdl slang spell ssl
tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode vorbis xml
xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
Comment 6 Jay Pfeifer (RETIRED) gentoo-dev 2005-11-29 06:57:22 UTC
openswan-2.4.4 is in portage and stable on x86.