Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244226 - NetworkManager-0.7_pre20081003 build fail with vpnc use
Summary: NetworkManager-0.7_pre20081003 build fail with vpnc use
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robert Buchholz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 235330
  Show dependency tree
 
Reported: 2008-10-25 10:42 UTC by Stefan Bauer
Modified: 2008-10-31 12:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Modifyed ebuild (knetworkmanager-0.7_pre20081025.ebuild,1.66 KB, text/plain)
2008-10-25 10:49 UTC, Stefan Bauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Bauer 2008-10-25 10:42:38 UTC
As already reported by wd in bug 235330 comment 13, NetworkManager-0.7_pre20081003 from rbu's overlay fails to build with vpnc useflag set.

I was able to solve this by using latest code (r875694) from <svn://anonsvn.kde.org/home/kde/branches/work/knetworkmanager/> and modifying Robert's ebuild to use this.
Comment 1 Stefan Bauer 2008-10-25 10:44:36 UTC
$ emerge --info
Portage 2.2_rc12 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27 i686)
=================================================================
System uname: Linux-2.6.27-i686-Intel-R-_Celeron-R-_M_processor_1.50GHz-with-glibc2.0
Timestamp of tree: Fri, 24 Oct 2008 14:36:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/ ftp://ftp.tu-chemnitz.de/pub/linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/rbu /usr/portage/local/layman/gnome"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb bzip2 cisco cli cracklib crypt dbus dhclient dri dvdr dvdread encode ffmpeg gdbm gtk hal iconv id3tag isdnlog java jpeg laptop libsamplerate midi mjpeg mmx mp3 mplayer mudflap nls nptl nptlonly ogg opengl openmp pam pcre pppd python readline reflection sasl session spell spl sse sse2 ssl sysfs tcpd toolbar truetype unicode vcd vim-syntax visualization vorbis vpnc win32codecs x86 xinerama xorg xv xvid xvmc 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Stefan Bauer 2008-10-25 10:49:10 UTC
Created attachment 169802 [details]
Modifyed ebuild

This is de facto a copy of knetworkmanager-0.7_pre20081003.ebuild, the only thing I changed was the SRC_URI:
SRC_URI="http://www-user.tu-chemnitz.de/~stefb/gentoo/distfiles/${MY_P}.tar.bz2"
Comment 3 Mike Auty (RETIRED) gentoo-dev 2008-10-25 22:33:19 UTC
Thanks for the bug report, but next time feel free to attach it to the end of the already open bug...  5:)
Comment 4 Robert Piasek (RETIRED) gentoo-dev 2008-10-27 21:00:34 UTC
Hi Stefan,

Thanks for testing it. Unfortunately I couldn't test knetworkmanager myself due to http://bugs.gentoo.org/81066

We will bump the revision in overlay soon (I already tested more recent revision and some deps changed slightly. Besides that everything seems stable except knetworkmanager).

Hopefully we should have working and well tested ebuild when 0.7 will finally go live (hopefully very soon).

Now I've got some workarounds and can finally test knetworkmanager.
Current revision lacks some includes and build fails with:

/bin/sh ../../libtool --silent --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include     -I/usr/include/dbus-1.0/qt3 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include   -I/usr/include/libnm-glib -I/usr/include/NetworkManager -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include   -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -UQT_NO_ASCII_CAST -MT connection_setting_wireless_security_eap.lo -MD -MP -MF .deps/connection_setting_wireless_security_eap.Tpo -c -o connection_setting_wireless_security_eap.lo connection_setting_wireless_security_eap.cpp                                                 
connection_setting_wireless_security_eap.cpp: In constructor 'ConnectionSettingWirelessSecurityEAP::ConnectionSettingWirelessSecurityEAP(QWidget*, const char*, uint)':                                                     
connection_setting_wireless_security_eap.cpp:85: error: invalid use of incomplete type 'struct KPasswordEdit' 
connection_setting_wireless_security_eap.h:23: error: forward declaration of 'struct KPasswordEdit'           
connection_setting_wireless_security_eap.cpp:87: error: no matching function for call to 'QGridLayout::addWidget(KPasswordEdit*&, int, int)'                                                                                
(... there are some more later on)

I've already posted patches upstream and waiting for them to be merged. Once it compiles fine we will bump it (I would prefer to avoid manually patching the sources).

R
Comment 5 Robert Piasek (RETIRED) gentoo-dev 2008-10-27 22:19:51 UTC
after hours of debugging it seems I was mistaken about knetworkmanager build error. It still bug http://bugs.gentoo.org/81066

It seems I will have to fix this bug first...
Comment 6 Robert Piasek (RETIRED) gentoo-dev 2008-10-28 12:37:13 UTC
it seems I finally nailed this annoying bug. The resolution is posted under bug 244732 and hopefully should hit portage soon.

In next day or so I will bump the revisions in overlay and make sure they all compile and work fine.
Comment 7 Stefan Bauer 2008-10-31 12:16:01 UTC
(In reply to comment #6)
> In next day or so I will bump the revisions in overlay and make sure they all
> compile and work fine.

I can acknowledge that knetworkmanager-0.7_pre20081028 compiles fine here, so I close this. Thank you for your work.

--Stefan