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.
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
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.
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
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 ) ?
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.