LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-30-2016, 05:53 PM   #1
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Rep: Reputation: Disabled
L2TP error


I'm trying to install network-manager-l2tp-1.2.2, but I keeping getting an error message at the end of the script. Do anyone know how to fix it?

Code:
import-export.c: In function ‘export_ip4’:
import-export.c:651:37: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘gint64 {aka long long int}’ [-Werror=format=]
     g_string_append_printf(route_s, " metric %ld", nm_ip_route_get_metric (rout
                                     ^
cc1: all warnings being treated as errors
Makefile:620: recipe for target 'libnm_vpn_plugin_l2tp_la-import-export.lo' failed
make[2]: *** [libnm_vpn_plugin_l2tp_la-import-export.lo] Error 1
make[2]: Leaving directory '/root/Downloads/network-manager-l2tp-1.2.2/properties'
Makefile:587: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/Downloads/network-manager-l2tp-1.2.2'
Makefile:435: recipe for target 'all' failed
make: *** [all] Error 2
 
Old 07-30-2016, 08:02 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,240

Rep: Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609
There are more than one versions of Slackware. Which one are you using for this? Is it a full install?
 
Old 07-30-2016, 09:14 PM   #3
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Original Poster
Rep: Reputation: Disabled
Sorry for not being specific, but I'm using 14.2 with Generic Kernel and MLED. Seems like the script runs smoothly until it get to the end which spits out the error message I have posted. Thank you.
 
Old 07-30-2016, 09:28 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,240

Rep: Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609
Where did you get the source that you are compiling and how did you proceed to build it?
 
Old 07-31-2016, 08:20 AM   #5
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Original Poster
Rep: Reputation: Disabled
I got it from here https://github.com/nm-l2tp/network-manager-l2tp and ran the script at the bottom. I tried both scripts and the results are the same.

Last edited by PROBLEMCHYLD; 07-31-2016 at 08:21 AM.
 
Old 07-31-2016, 09:29 AM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,240

Rep: Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609
Are you running Slackware64 14.2 or Slackware 14.2?

I'm running Slackware64 14.2. I downloaded a zip archive of the git link that you gave. I expanded that zip file, ran
Code:
./autogen.sh
./configure \
  --disable-static --prefix=/usr \
  --sysconfdir=/etc --libdir=/usr/lib64 \
  --localstatedir=/var \
  --with-pppd-plugin-dir=/usr/lib64/pppd/2.4.7
make
and everything appeared to build with no errors.
 
Old 07-31-2016, 10:36 AM   #7
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Original Poster
Rep: Reputation: Disabled
14.2 32bit

I changed lib64 to lib and I still get the error.
 
Old 07-31-2016, 11:15 AM   #8
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,240

Rep: Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609Reputation: 1609
I'm not running 32 bit anywhere, so I won't be able to help. Good luck.
 
Old 09-03-2016, 09:31 AM   #9
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Original Poster
Rep: Reputation: Disabled
Does anyone know how to fix the error in the image? Everything compile with no problem, but installing the compiled contents gives me the errors.

Last edited by PROBLEMCHYLD; 12-28-2016 at 05:40 PM.
 
Old 09-03-2016, 11:58 AM   #10
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.2 64bit
Posts: 915
Blog Entries: 5

Rep: Reputation: 145Reputation: 145
As root user, just type
Code:
make install
You don't need to use the sudo command
 
Old 09-03-2016, 01:52 PM   #11
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Original Poster
Rep: Reputation: Disabled
Thanks for the feedback, but still get the same errors. I have found something interesting on another forum. Maybe it can fix my problem. How do I approach it?

Quote:
Hi, i realise this is pretty old
ive been searching for a way to connect to my work vpn using l2tp
trying to build l2tp-ipsec-vpn-daemon you linked to after ive tried many other methods
the problem is i think its set to use systems using openrc and not systemd in make install its not finding the service l2tp-ipsec-daemon:
bin/sh: l2tp-ipsec-vpn-daemon: command not found

anyone have any idea how to fix this?
i could try creating that systemd unit bymyself the problem is i dont know where it goes and which command it executes to start the daemon

any help appriciated
thanks in advance
 
Old 09-03-2016, 02:48 PM   #12
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,483

Rep: Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915
PROBLEMCHYLD --

I saw this in network-manager-l2tp-1.2.2/README.md ...

Code:
# NetworkMananger-l2tp

NetworkManager-l2tp is a VPN plugin for NetworkManager 1.2 which provides support for L2TP and
L2TP/IPSec (i.e. L2TP over IPSec) connections.

For L2TP support, it uses xl2tpd ( https://www.xelerance.com/software/xl2tpd/ )

For IPSec support, it uses either of the following :
* Libreswan ( https://libreswan.org ) 
* strongSwan ( https://www.strongswan.org )

<<snip>>
Did you install xl2tpd and either ( Libreswan or strongSwan ) ?

HTH

-- kjh
 
Old 09-03-2016, 03:16 PM   #13
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Original Poster
Rep: Reputation: Disabled
The Networkmanager L2TP Plugin is intended for 64bit systems, at least the newer versions. This is why I switched to another client. I trying out the l2tp ipsec vpn daemon app. It seems like all L2TP apps are a pain in the azz on Slackware. Google doesn't help much and it is necessary for me to have it on my system.
 
Old 09-03-2016, 03:44 PM   #14
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,483

Rep: Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915Reputation: 915
PROBLEMCHYLD --

Yes, Slackware DOES expect a bit more from the Operator.

But it also gives that Operator nearly complete control over their own System ( a feature that is just about extinct in all other OSen )

Both xl2tpd and strongswan are available as SlackBuilds so they should work 'out of the box' with 32-bit Slackware.

Neither xl2tpd nor strongswan have any REQUIRES= Packages.

So ... did you install the dependencies before you compiled the Network Manager PlugIn ?

-- kjh

# get-SB-readme is a local script to print the README File(s) from my local 14.2 SBo git repo for a list of SBo Packages
#
# get-SB-readme xl2tpd strongswan
Code:
####################################################
# /home/dld/slackbuilds/14.2/network/xl2tpd/README #
####################################################

xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661).
L2TP allows you to tunnel PPP over UDP. Some ISPs use L2TP to tunnel user
sessions from dial-in servers (modem banks, ADSL DSLAMs) to back-end PPP
servers. Another important application is Virtual Private Networks where
the IPsec protocol is used to secure the L2TP connection (L2TP/IPsec,
RFC 3193). The L2TP/IPsec protocol is mainly used by Windows and
Mac OS X clients. On Linux, xl2tpd can be used in combination with IPsec
implementations such as Openswan.
Example configuration files for such a setup are included in this RPM.

xl2tpd works by opening a pseudo-tty for communicating with pppd.
It runs completely in userspace but supports kernel mode L2TP. 

xl2tpd supports IPsec SA Reference tracking to enable overlapping internak
NAT'ed IP's by different clients (eg all clients connecting from their
linksys internal IP 192.168.1.101) as well as multiple clients behind
the same NAT router.

xl2tpd supports the pppol2tp kernel mode operations on 2.6.23 or higher,
or via a patch in contrib for 2.4.x kernels. Note that kernel mode and
IPsec SA Reference tracking do not yet work together.

########################################################
# /home/dld/slackbuilds/14.2/network/strongswan/README #
########################################################

strongSwan is an OpenSource IPsec implementation for Linux.
#
# this hardlinked version of the script dumps the *.info file(s) instead of the README file(s)
#
# get-SB-info xl2tpd strongswan
Code:
#########################################################
# /home/dld/slackbuilds/14.2/network/xl2tpd/xl2tpd.info #
#########################################################

PRGNAM="xl2tpd"
VERSION="1.3.2"
HOMEPAGE="http://www.xelerance.com/software/xl2tpd/"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/xl2tpd-1.3.2.tar.gz"
MD5SUM="d1e44ad0055a02ac89a32b2a6eeb0719"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="gshep"
EMAIL="shepelev.georgy@googlemail.com"

#################################################################
# /home/dld/slackbuilds/14.2/network/strongswan/strongswan.info #
#################################################################

PRGNAM="strongswan"
VERSION="5.3.4"
HOMEPAGE="http://www.strongswan.org"
DOWNLOAD="http://download.strongswan.org/strongswan-5.3.4.tar.bz2"
MD5SUM="655a632a515c74a99f2e9cc337ab2f33"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Markus Hutmacher"
EMAIL="mailing@markhu.de"
 
Old 09-04-2016, 09:29 AM   #15
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Original Poster
Rep: Reputation: Disabled
I'm am not using network-manager-l2tp-1.2.2 plugin because it is intended for 64bit systems the reason for the errors on my system. I am using Slackware 32bit. So, to answer your questions, I did not install those packages because they wouldn't have done me any good. So I switch to another client and get the errors I posted. I am using

http://wiki.l2tpipsecvpn.tuxfamily.o...itle=Main_Page

I am not sure if I should change the first post because it seems to be causing confusion.
 
  


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] l2tp vs openvpn redwhat Linux - Security 6 09-24-2014 06:33 PM
[SOLVED] Learning L2TP/IPSEC certificate-based VPN - "syntax error in private key file"?? psycroptic Linux - Server 1 06-11-2014 11:17 PM
vpn l2tp aminbaik Linux - Networking 4 04-17-2012 09:21 AM
What is L2TP passthrough aparna8419 Linux - Networking 3 04-05-2007 12:41 PM
L2tp brabraa Linux - Networking 1 02-22-2002 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration