Trying to compile Robby's networkmanager-openconnect from SBO fails.
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Rep:
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
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)?
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
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
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".
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.