Forums

Skip to content

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

strongswan fails to compile

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
wan-geek
n00b
n00b
User avatar
Posts: 66
Joined: Thu Apr 03, 2003 5:17 pm
Location: knee-deep in the ether

strongswan fails to compile

  • Quote

Post by wan-geek » Tue Jul 08, 2008 7:05 pm

I have tried different GCC revisions and different kernel revs, but to no avail.

On this particular system, strongswan keeps breaking during compile.

every time it ends up a little like this:

Code: Select all

blah blah blah...

i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"strongSwan\" -DPACKAGE_TARNAME=\"strongswan\" -DPACKAGE_VERSION=\"4.1.11\" -DPACKAGE_STRING=\"strongSwan\ 4.1.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"strongswan\" -DVERSION=\"4.1.11\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DPKCS11_DEFAULT_LIB=\"/usr/lib/opensc-pkcs11.so\" -DDEV_RANDOM=\"/dev/random\" -DRESOLV_CONF=\"/etc/resolv.conf\" -DDEV_URANDOM=\"/dev/urandom\" -DIPSEC_ROUTING_TABLE=220 -DIPSEC_ROUTING_TABLE_PRIO=220 -DIPSEC_UID=112 -DIPSEC_GID=1018 -DLIBCURL=1 -DLIBLDAP=1 -DLIBXML=1 -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1 -DHAVE_BACKTRACE=1 -DHAVE_GETIFADDRS=1 -DNO_CAPSET_DEFINED=1 -I. -I../include -I../../src/libstrongswan -I../../src/charon -I../../src/stroke  -I/usr/include/libxml2     -rdynamic -DIPSEC_CONFDIR=\"/etc\" -DIPSEC_DIR=\"/usr/libexec/ipsec\" -DIPSEC_PIDDIR=\"/var/run\" -DIPSEC_EAPDIR=\"/usr/libexec/ipsec/plugins/eap\" -DIPSEC_BACKENDDIR=\"/usr/libexec/ipsec/plugins/backends\" -DIPSEC_INTERFACEDIR=\"/usr/libexec/ipsec/plugins/interfaces\" -DSIM_READER_LIB=\"/usr/libexec/ipsec/plugins/libcharon-eapsim-file.so\" -march=pentium3 -O2 -pipe -fomit-frame-pointer -MT socket-raw.o -MD -MP -MF .deps/socket-raw.Tpo -c -o socket-raw.o `test -f 'network/socket-raw.c' || echo './'`network/socket-raw.c
mv -f .deps/ike_auth_lifetime.Tpo .deps/ike_auth_lifetime.Po
/bin/sh ../../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc -rdynamic -DIPSEC_CONFDIR=\"/etc\" -DIPSEC_DIR=\"/usr/libexec/ipsec\" -DIPSEC_PIDDIR=\"/var/run\" -DIPSEC_EAPDIR=\"/usr/libexec/ipsec/plugins/eap\" -DIPSEC_BACKENDDIR=\"/usr/libexec/ipsec/plugins/backends\" -DIPSEC_INTERFACEDIR=\"/usr/libexec/ipsec/plugins/interfaces\" -DSIM_READER_LIB=\"/usr/libexec/ipsec/plugins/libcharon-eapsim-file.so\" -march=pentium3 -O2 -pipe -fomit-frame-pointer -module  -o libcharon-local.la -rpath /usr/libexec/ipsec/plugins/backends local_backend.lo  
mv -f .deps/task.Tpo .deps/task.Po
/bin/sh ../../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc -rdynamic -DIPSEC_CONFDIR=\"/etc\" -DIPSEC_DIR=\"/usr/libexec/ipsec\" -DIPSEC_PIDDIR=\"/var/run\" -DIPSEC_EAPDIR=\"/usr/libexec/ipsec/plugins/eap\" -DIPSEC_BACKENDDIR=\"/usr/libexec/ipsec/plugins/backends\" -DIPSEC_INTERFACEDIR=\"/usr/libexec/ipsec/plugins/interfaces\" -DSIM_READER_LIB=\"/usr/libexec/ipsec/plugins/libcharon-eapsim-file.so\" -march=pentium3 -O2 -pipe -fomit-frame-pointer -module  -o libcharon-stroke.la -rpath /usr/libexec/ipsec/plugins/interfaces stroke_interface.lo  
network/socket-raw.c: In function 'receiver':
network/socket-raw.c:269: error: dereferencing pointer to incomplete type
network/socket-raw.c: In function 'sender':
network/socket-raw.c:410: error: invalid application of 'sizeof' to incomplete type 'struct in6_pktinfo' 
network/socket-raw.c:419: error: invalid application of 'sizeof' to incomplete type 'struct in6_pktinfo' 
network/socket-raw.c:421: error: invalid application of 'sizeof' to incomplete type 'struct in6_pktinfo' 
network/socket-raw.c:423: error: dereferencing pointer to incomplete type
make[2]: *** [socket-raw.o] Error 1
make[2]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc -shared  .libs/local_backend.o   -march=pentium3 -Wl,-soname -Wl,libcharon-local.so.0 -o .libs/libcharon-local.so.0.0.0
i686-pc-linux-gnu-gcc -shared  .libs/stroke_interface.o   -march=pentium3 -Wl,-soname -Wl,libcharon-stroke.so.0 -o .libs/libcharon-stroke.so.0.0.0
(cd .libs && rm -f libcharon-local.so.0 && ln -s libcharon-local.so.0.0.0 libcharon-local.so.0)
(cd .libs && rm -f libcharon-local.so && ln -s libcharon-local.so.0.0.0 libcharon-local.so)
(cd .libs && rm -f libcharon-stroke.so.0 && ln -s libcharon-stroke.so.0.0.0 libcharon-stroke.so.0)
(cd .libs && rm -f libcharon-stroke.so && ln -s libcharon-stroke.so.0.0.0 libcharon-stroke.so)
creating libcharon-local.la
creating libcharon-stroke.la
(cd .libs && rm -f libcharon-local.la && ln -s ../libcharon-local.la libcharon-local.la)
(cd .libs && rm -f libcharon-stroke.la && ln -s ../libcharon-stroke.la libcharon-stroke.la)
make[2]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.1.11/work/strongswan-4.1.11/src/charon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.1.11/work/strongswan-4.1.11/src'
make: *** [all-recursive] Error 1
 * 
 * ERROR: net-misc/strongswan-4.1.11 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2813:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
Does anyone have any ideas? Forum searches turn up nothing that I can find, and google didn't seem to get me any relevant hits either.

Cheers.
-Chris
Top
weisso5
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Fri Dec 07, 2007 4:37 pm
Location: NYC

  • Quote

Post by weisso5 » Tue Jul 08, 2008 9:02 pm

emerge --info plz
Top
wan-geek
n00b
n00b
User avatar
Posts: 66
Joined: Thu Apr 03, 2003 5:17 pm
Location: knee-deep in the ether

  • Quote

Post by wan-geek » Tue Jul 08, 2008 10:20 pm

Sorry 'bout that - was trying to keep the post trimmed.

Code: Select all

emerge --info
Portage 2.2_rc1 (default-linux/x86/2006.1/server, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r5-i686-Pentium_III_-Coppermine-with-glibc2.0
Timestamp of tree: Tue, 08 Jul 2008 17:00:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.3.6-r2, 2.4.4-r4, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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.gentoo.org/gentoo-portage"
USE="X acl apache2 berkdb cgi cisco cli cracklib crypt cups curl cvs cvsgraph dba devfs26 dri enscript fax flash fortran ftp gd gdbm gif gpm hardenedphp highlight iconv ipv6 isdnlog ithreads java jpeg ldap libwww mailwrapper midi ming mng mudflap mysql mysqlfriends nat ncurses nls nptl nptlonly openmp pam pcre pdf perl php png ppds pppd python radius readline reflection resperl session snmp speex spell spl ssl tcpd tiff truetype unicode vmdbmysql x86 xml xml2 xorg zaptel zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1      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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt   mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage       siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware         voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Top
weisso5
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Fri Dec 07, 2007 4:37 pm
Location: NYC

  • Quote

Post by weisso5 » Wed Jul 09, 2008 5:16 pm

Well,

Code: Select all

network/socket-raw.c:423: error: dereferencing pointer to incomplete type
is from not including <net/sock.h> in strongswan-4.1.11/src/charon/network/socket-raw.c and possibly some other things need to change in that file, i think.

Seeing as the upstream is on Version 4.2.4 and there are various bugs regarding this ebuild, i would suggest taking a look at this bug:

http://bugs.gentoo.org/show_bug.cgi?id=227639

which has links to a few other issues regarding this ebuild.

-weisso
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

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