LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-01-2013, 02:17 PM   #1
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Rep: Reputation: 92
Trying to compile Robby's networkmanager-openconnect from SBO fails.


Hoping Robby sees this.
The company I work for have decided to abandon the current Cisco IPSec login in favour of the AnyConnect service.

Grabbed openconnect from SBO and that downloaded and built fine, but the networkmanager gui fails with an error. I have pasted the last part of the build in the hope that I might be advised as to how to put it right.


Code:
mv -f $depbase.Tpo $depbase.Po
nm-openconnect-service-openconnect-helper.c: In function 'helper_failed':
nm-openconnect-service-openconnect-helper.c:51:2: error: implicit declaration of function 'nm_warning' [-Werror=implicit-function-declaration]
  nm_warning ("nm-nopenconnect-service-openconnect-helper did not receive a valid %s from openconnect", reason);
  ^
nm-openconnect-service-openconnect-helper.c: In function 'main':
nm-openconnect-service-openconnect-helper.c:302:2: error: 'g_type_init' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Werror=deprecated-declarations]
  g_type_init ();
  ^
cc1: all warnings being treated as errors
make[2]: *** [nm-openconnect-service-openconnect-helper.o] Error 1
make[2]: *** Waiting for unfinished jobs....
nm-openconnect-service.c: In function 'openconnect_watch_cb':
nm-openconnect-service.c:231:4: error: implicit declaration of function 'nm_warning' [-Werror=implicit-function-declaration]
    nm_warning ("openconnect exited with error code %d", error);
    ^
nm-openconnect-service.c: In function 'nm_openconnect_start_openconnect_binary':
nm-openconnect-service.c:364:2: error: implicit declaration of function 'nm_info' [-Werror=implicit-function-declaration]
  nm_info ("openconnect started with pid %d", pid);
  ^
nm-openconnect-service.c: In function 'main':
nm-openconnect-service.c:592:2: error: 'g_type_init' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Werror=deprecated-declarations]
  g_type_init ();
  ^
cc1: all warnings being treated as errors
make[2]: *** [nm-openconnect-service.o] Error 1
make[2]: Leaving directory `/tmp/SBo/NetworkManager-openconnect-0.8.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/NetworkManager-openconnect-0.8.4'
make: *** [all] Error 2
Thanks
 
Old 06-01-2013, 03:04 PM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
if you're using -current, that got NetworkManager-0.9.8.0, not 0.9.4.0 like 14.0, consider that slackbuilds.org script are targeted at the stable version.

but in this case update the NetworkManager-openconnect.SlackBuild script to build the 0.9.8.0 version and it should go fine.

or are you using a different slackware version (with a different NetworkManager)?

Last edited by ponce; 06-01-2013 at 03:09 PM.
 
Old 06-02-2013, 12:07 AM   #3
fl0
Member
 
Registered: May 2010
Location: Germany
Distribution: Slackware
Posts: 105

Rep: Reputation: 34
Hi,

same Problem with Networmanager-vpnc

http://www.linuxquestions.org/questi...nt-4175457003/

you need to edit the slackbuild and add

Code:
--disable-more-warnings
to the configure line
 
Old 06-02-2013, 01:09 AM   #4
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Original Poster
Rep: Reputation: 92
Quote:
Originally Posted by fl0 View Post
Hi,

same Problem with Networmanager-vpnc

http://www.linuxquestions.org/questi...nt-4175457003/

you need to edit the slackbuild and add

Code:
--disable-more-warnings
to the configure line

Using the latest 0.9.8, modified the Slackbuild and get this:

Code:
./NetworkManager-openconnect.SlackBuild: line 85: --disable-more-warnings: command not found
 
Old 06-02-2013, 02:25 AM   #5
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
FYI, it built fine here without that.
 
Old 06-02-2013, 02:42 AM   #6
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Original Poster
Rep: Reputation: 92
Quote:
Originally Posted by ponce View Post
FYI, it built fine here without that.

Thanks for that, but I can't see how your answer assists in any way.
 
Old 06-02-2013, 03:10 AM   #7
bartgymnast
Member
 
Registered: Feb 2003
Location: Lelystad, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 258

Rep: Reputation: 87
vdemuth.

1st answer the questions:
are you running 14.0 or -current
which version of network-mananger-openconnect are you trying to build.

what I am reading, you try to build 0.8.4 on -current
this is going to fail.

grab 0.9.8.0 and try that.
 
Old 06-02-2013, 03:10 AM   #8
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
maybe I explained myself bad, but I wanted to say that here on -current (unfortunately I still don't know which version of slackware and network manager are you using, so I'm just guessing), it builds fine with just a version bump (0.9.8.0) from the script on SBo, I hadn't needed the "--disable-more-warnings" configure flag.

BTW the error you are having executing the slackbuild adding that flag is that, if you want to try it, you have to add it as a part of the configure line arguments, like this
Code:
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --disable-more-warnings \
  --build=$ARCH-slackware-linux
 
Old 06-02-2013, 04:06 AM   #9
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Original Poster
Rep: Reputation: 92
A bit more info then.

Got the latest NM 0.9.8 installed, and am running current.

Code:
Looking for Network in package list. Please wait... DONE

The list below shows all packages with name matching "Network".

[ installed ] - NetworkManager-0.9.8.0-x86_64-1

You can search specific files using "slackpkg file-search file".

From the Slackbuild script

Code:
PRGNAM=NetworkManager-openconnect
VERSION=${VERSION:-0.9.8.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
Code:
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --disable-more-warnings \
  --build=$ARCH-slackware-linux

Seems to be failing in the MAKE stage, rather than the configure stage, as per this error:

Code:
Making all in auth-dialog
make[2]: Entering directory `/tmp/SBo/NetworkManager-openconnect-0.9.8.0/auth-dialog'
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -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/include/libnm-glib   -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng14   -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/libxml2   -I/usr/include/libxml2   -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DICONDIR=\""/usr/share/pixmaps"\" -DBINDIR=\""/usr/bin"\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DGNOMELOCALEDIR=\"/usr/share/locale\" -DVERSION=\"0.9.8.0\"   -Wall -std=gnu89 -O2 -fPIC -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wstrict-prototypes -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -Werror -MT nm_openconnect_auth_dialog-main.o -MD -MP -MF .deps/nm_openconnect_auth_dialog-main.Tpo -c -o nm_openconnect_auth_dialog-main.o `test -f 'main.c' || echo './'`main.c
main.c: In function 'init_ui_data':
main.c:1666:2: error: implicit declaration of function 'openconnect_vpninfo_new_with_cbdata' [-Werror=implicit-function-declaration]
  ui_data->vpninfo = (void *)openconnect_vpninfo_new("OpenConnect VPN Agent (NetworkManager)",
  ^
main.c:1666:21: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  ui_data->vpninfo = (void *)openconnect_vpninfo_new("OpenConnect VPN Agent (NetworkManager)",
                     ^
cc1: all warnings being treated as errors
make[2]: *** [nm_openconnect_auth_dialog-main.o] Error 1
make[2]: Leaving directory `/tmp/SBo/NetworkManager-openconnect-0.9.8.0/auth-dialog'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/NetworkManager-openconnect-0.9.8.0'
make: *** [all] Error 2

Any more pointers at all?

Thanks
 
Old 06-02-2013, 04:44 AM   #10
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
just to let you get away some causes: this is the same block on my up2date and full install of slackware64-current
Code:
Making all in auth-dialog
make[2]: Entering directory `/tmp/SBo/NetworkManager-openconnect-0.9.8.0/auth-dialog'
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -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/incl
ude -I/usr/include/libnm-glib   -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/a
t-spi2-atk/2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/in
clude -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng14   -pthread -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/
lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/libxml2   -I/usr/include/libxml2   -I/usr/include/gnome-keyring-1 -I/usr/i
nclude/glib-2.0 -I/usr/lib64/glib-2.0/include   -DICONDIR=\""/usr/share/pixmaps"\" -DBINDIR=\""/usr/bin"\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGNOME_DISAB
LE_DEPRECATED -DGNOMELOCALEDIR=\"/usr/share/locale\" -DVERSION=\"0.9.8.0\"   -Wall -std=gnu89 -O2 -fPIC -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclarati
on-after-statement -Wstrict-prototypes -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -Werror -MT nm_openconnect_auth_dialog-main.o -MD -MP 
-MF .deps/nm_openconnect_auth_dialog-main.Tpo -c -o nm_openconnect_auth_dialog-main.o `test -f 'main.c' || echo './'`main.c
mv -f .deps/nm_openconnect_auth_dialog-main.Tpo .deps/nm_openconnect_auth_dialog-main.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -Wall -std=gnu89 -O2 -fPIC -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wstrict-pr
ototypes -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -Werror   -o nm-openconnect-auth-dialog nm_openconnect_auth_dialog-main.o -lgtk-3 -l
gdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0   -lnm-util -lnm-glib -lnm-glib-vpn -ldbus-glib
-1 -ldbus-1 -lgobject-2.0 -lglib-2.0   -lgconf-2 -lglib-2.0   -lopenconnect -lproxy -lz -lssl -lcrypto -lxml2   -lxml2   -lgnome-keyring -lglib-2.0   
libtool: link: gcc -Wall -std=gnu89 -O2 -fPIC -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wstrict-prototypes -Wfloat-equal -Wno-
unused-parameter -Wno-sign-compare -fno-strict-aliasing -Werror -o nm-openconnect-auth-dialog nm_openconnect_auth_dialog-main.o  /usr/lib64/libgtk-3.so /usr/lib64/libgd
k-3.so /usr/lib64/libatk-1.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpangoft2-1.0.so /usr/lib64/libharfbuzz.so -licule -licuuc -licudata /usr/lib64/../lib64/li
bstdc++.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libcairo-gobject.so /usr/lib64/libpango-1.0.so /usr/lib64/libcairo.so /usr/lib64/libpixman-1.so /usr/lib64/libfont
config.so /usr/lib64/libexpat.so /usr/lib64/libfreetype.so -lbz2 /usr/lib64/libpng14.so /usr/lib64/libxcb-shm.so /usr/lib64/libX11-xcb.so /usr/lib64/libxcb-render.so /u
sr/lib64/libXrender.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so /usr/lib64/libnm-glib.so /usr/lib64/l
ibgudev-1.0.so /usr/lib64/libudev.so /usr/lib64/libnm-glib-vpn.so /usr/lib64/libnm-util.so /usr/lib64/libuuid.so -lnss3 -lsmime3 -lssl3 -lsoftokn3 -lnssutil3 -lplds4 -l
plc4 -lnspr4 /usr/lib64/libsqlite3.so /usr/lib64/libdbus-glib-1.so /usr/lib64/libgio-2.0.so /usr/lib64/libgmodule-2.0.so -lresolv /usr/lib64/libgthread-2.0.so /usr/lib6
4/libdbus-1.so -lrt /usr/lib64/libgobject-2.0.so /usr/lib64/../lib64/libffi.so -lgconf-2 /usr/lib64/libopenconnect.so -lproxy -lssl -lcrypto /usr/lib64/libxml2.so -ldl 
-lz /usr/lib64/liblzma.so -lm -lgnome-keyring /usr/lib64/libglib-2.0.so -lpthread -pthread -Wl,-rpath -Wl,/usr/lib64/../lib64 -Wl,-rpath -Wl,/usr/lib64/../lib64
make[2]: Leaving directory `/tmp/SBo/NetworkManager-openconnect-0.9.8.0/auth-dialog'
openconnect_vpninfo_new_with_cbdata, the function he is complaining for in your case, belongs to openconnect (is defined in /usr/include/openconnect.h, part of the resulting package): here I have installed the version on SBo for 14.0, 3.20.

I'm telling it because I guess the error might origin also from version bumping openconnect...

Last edited by ponce; 06-02-2013 at 05:21 AM.
 
1 members found this post helpful.
Old 06-02-2013, 05:52 AM   #11
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Original Poster
Rep: Reputation: 92
I to am running the latest (as of May 29th) current.

Grabbed the Slackware 14.0 version of openconnect using SBOPKG as you suggested and it has done the trick.

Thanks for that as I was getting well out of my comfort zone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Networkmanager-vpnc-0.9.4 fails to compile under -current fl0 Slackware 7 04-05-2013 03:38 PM
[SOLVED] SBo-Webkit does not compile on current; inkscape need gcc-4.8 patched source brobr Slackware 4 04-03-2013 08:38 AM
Nvidia-driver.SlackBuild from SBo (or: I am a bad and sloppy SBo maintainer) kingbeowulf Slackware 8 08-31-2012 02:41 AM
[SOLVED] Digikam from SBo does not compile on 64-current of 2010-03-09 gargamel Slackware 10 03-21-2010 05:28 PM
Slackware64, trying to compile wine with SBo suid0 Slackware 6 05-27-2009 09:48 AM


All times are GMT -5. The time now is 01:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration