LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Trying to compile Robby's networkmanager-openconnect from SBO fails. (http://www.linuxquestions.org/questions/slackware-14/trying-to-compile-robbys-networkmanager-openconnect-from-sbo-fails-4175464379/)

vdemuth 06-01-2013 03:17 PM

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

ponce 06-01-2013 04:04 PM

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)?

fl0 06-02-2013 01:07 AM

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

vdemuth 06-02-2013 02:09 AM

Quote:

Originally Posted by fl0 (Post 4963841)
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

ponce 06-02-2013 03:25 AM

FYI, it built fine here without that.

vdemuth 06-02-2013 03:42 AM

Quote:

Originally Posted by ponce (Post 4963897)
FYI, it built fine here without that.


Thanks for that, but I can't see how your answer assists in any way.

bartgymnast 06-02-2013 04:10 AM

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.

ponce 06-02-2013 04:10 AM

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


vdemuth 06-02-2013 05:06 AM

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

ponce 06-02-2013 05:44 AM

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...

vdemuth 06-02-2013 06:52 AM

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.


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