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.
Also I'm wondering: maybe your kernel headers are messed up with several versions of (customized) kernel-source installed. IMHO It wouldn't be bad to clean the house.
gmgf: Just a thought - what do you get when you run
Code:
locate gio.h
I'm wondering if you (and perhaps Robby?) have one hanging around somewhere from an old build, that I don't, and therefore openvpn can't find it? It would be interesting to compare the output you get with my result for the same command.
Pete --
I am not gmgf and I've not tried compiling the Networkmanager-openvpn plugin but these are the files I see on my Current multilib box:
Code:
# uname -a
Linux kjhlt6 4.4.8 #2 SMP Fri Apr 22 16:50:35 CDT 2016 x86_64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz GenuineIntel GNU/Linux
Code:
# ls -la /var/log/packages/*glib2*
-rw-r--r-- 1 root root 47209 Feb 8 07:12 /var/log/packages/glib2-2.46.2-x86_64-2
-rw-r--r-- 1 root root 1935 Feb 12 03:41 /var/log/packages/glib2-compat32-2.46.2-x86_64-2compat32
These are all the gio.h files.
Only the first file is the 'keeper' but I see diffs in your Kernel Source List ...
Also I'm wondering: maybe your kernel headers are messed up with several versions of (customized) kernel-source installed. IMHO It wouldn't be bad to clean the house.
Now wondering what says uname -r (4.4.8$something?) and if you have an /usr/src/linux symlink that points to that kernel source (not sure it's really necessary but won't hurt).
Running Slackware64-current, and just uploaded the latest upgrades. NetworkManager-1.2 working great, but I was only running NetworkManager-openvpn-1.0.8. When I tried to compile Networkmanager-openvpn-1.2.0, it crashed with the following error:
Code:
In file included from nm-default.h:41:0,
from nm-shared-utils.c:22:
nm-glib.h:24:21: fatal error: gio/gio.h: No such file or directory
compilation terminated.
Pete --
I was able to download the Slackware Version 14.1 NetworkManager-openvpn SlackBuild and NetworkManager-openvpn-1.2.0 source and try a build.
Built fine for me on Current 4.4.8 ...
Maybe my configure.log and Makefile from /tmp/SBo/NetworkManager-openvpn-1.2.0/ might help ?
-- kjh(??? had to save Makefile as Makefile.txt to upload ???)
KJH: Just had a look at your config.log, using "vim -d" to compare with mine. One thing leaps out at me, and that is that around line 950 "GTK_LIBS=" where your config has a whole pile of libs listed including lglib-2.0 and lgio-2.0. My config just has a blank ' ' at that point. There are quite a few similar lines as well where your config seems to have picked things up that mine has missed.
Did you modify the slackbuild file in any way? Or has my system just failed to pick these things up automatically for some reason?
KJH: Just had a look at your config.log, using "vim -d" to compare with mine. One thing leaps out at me, and that is that around line 950 "GTK_LIBS=" where your config has a whole pile of libs listed including lglib-2.0 and lgio-2.0. My config just has a blank ' ' at that point. There are quite a few similar lines as well where your config seems to have picked things up that mine has missed.
Did you modify the slackbuild file in any way? Or has my system just failed to pick these things up automatically for some reason?
Pete --
Nope and maybe so ...
I am running Slackware-Current( 14.2RC2 ) + Multilib.
Nothing else is non-standard.
All I changed in the SBO version 14.1 SlackBuild Script was the version of NetworkManager-openvpn from 0.9.4.0 to 1.2.0:
#!/bin/sh
# Slackware build script for NetworkManager
# Copyright 2010-2012 Robby Workman, Northport, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=NetworkManager-openvpn
# RSION=${VERSION:-0.9.4.0} # kjh pounded
VERSION=${VERSION:-1.2.0} # kjh added
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING ChangeLog NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
Last edited by kjhambrick; 04-26-2016 at 02:35 PM.
Reason: oops 1.41 to 14.1
I'm not running multi-lib, mine is a pure 64-bit install. It started out life as 14.1 and has been upgraded with each release of current updates. I've also just tried building NetworkManager-openvpn-1.2.0 on another machine, an old one that doesn't get much use. The build fails with the same error. I'm just about to try it on my laptop.
It has to be something stupid, but I'm struggling to find it.......
Hi Didier, yes, you are probably right! Unfortunately time precludes me from doing a complete re-install at the moment.
As a matter of interest, NetworkManager-openvpn-1.0.8 builds perfectly without any errors using the same slackbuild script (other than changing the version number), so whatever the issue is, it is something specific to the new version of NetworkManager-openvpn.
I've also tried building NetworkManager-1.2.0 from source, and that also builds without any problems.
Oh, and I've now tried it on the laptop, which also fails with the same error. So that's three machines it won't build on - not really surprising, as all have followed the same upgrade path, but they do all have different packages installed. For instance the laptop has a fairly minimal install for size/speed reasons, whereas my main desktop is loaded with video editing and manipulation software, amongst other things.
I'm not completely stuck here, as NetworkManager-1.2.0 seems to work quite happily with NetworkManager-openvpn-1.0.8, but it is niggling me that something is clearly amiss somewhere.
I'm attaching my config log and Makefile, in case this helps. Comparing these to kjh's files using vim -d shows clearly that for some reason, a lot of libraries are not being detected.
<snip>
As a matter of interest, NetworkManager-openvpn-1.0.8 builds perfectly without any errors using the same slackbuild script (other than changing the version number), so whatever the issue is, it is something specific to the new version of NetworkManager-openvpn.
I've also tried building NetworkManager-1.2.0 from source, and that also builds without any problems.
Pete --
oops ... started this reply before you posted your files so this reply is 'out of order' ...
I wonder how the config.log(s) and Makefile(s) compare with the manually compiled 1.2.0 source tree vs the same files tree under your /tmp/SBo/NetworkManager-openvpn-1.2.0/ Directory ?
I compared my tmp/SBo/NetworkManager-openvpn-1.2.0/config.log with yours and these are the invocation diffs ( reformatted a tad to show diffs )
Starting at line 75( or so ) in the SBo 14.1 NetworkManager-openvpn script, a few Varbs are set prior to invoking ./configure ...
Maybe an additional config varb ( or two ) are necessary for your particular set of installed apps so that configure can find the gio.h file ( maybe CPPFLAGS for one ) ?
I've got a slightly outdated 'pure' Slackware Current64 VM that I have been meaning to update to RC2.
I'll try the SlackBuild on the pure-D Slackware Current Box after I do the updates and let you know.
KJH: FOUND IT! Thanks to your clever formatting of the config log differences!
If you look at the first two lines compared, you will notice that mine has --without-gnome tacked on the end! IIRC, I had to add that to get the 1.0.X versions to build without Gnome being present - even though GTK was. However, in version 1.2.X it seems to entirely disable the searches for the GTK libraries. As soon as I removed that line from the slackbuild configuration, it built perfectly!
I knew it had to be something stupid!
Many thanks to all - especially KJH - for your help!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.