LinuxQuestions.org
Review your favorite Linux distribution.
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 04-11-2018, 01:50 PM   #271
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 293

Rep: Reputation: 218Reputation: 218Reputation: 218

problem solved: it was due to procps-ng-3.3.13, with 3.3.14 everything can go on.
 
Old 04-11-2018, 07:27 PM   #272
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 167

Original Poster
Rep: Reputation: 34
Quote:
problem solved: it was due to procps-ng-3.3.13, with 3.3.14 everything can go on.
I still have the problem on 64 bit (current). I'll keep working on it.
 
Old 04-12-2018, 09:21 PM   #273
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 293

Rep: Reputation: 218Reputation: 218Reputation: 218
Regression test on slackware64-current (Tue Apr 10 23:38:57 UTC 2018): failure of 2 packages ModemManager and netkit-rsh see build.log

ModemManager: errors returned
---------------------------
mm-device.c: In function 'mm_device_get_plugin':
mm-device.c:629:47: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
return (self->priv->plugin ?
~~~~~~~~~~~~~~~~~~~~~
g_object_ref (self->priv->plugin) :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
NULL);
~~~~~
mm-device.c: In function 'mm_device_get_port_probe':
mm-device.c:666:42: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
return (probe ? g_object_ref (probe) : NULL);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
mm-base-manager.c: In function 'handle_set_logging':
mm-base-manager.c:680:15: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
ctx->self = g_object_ref (manager);
^
mm-base-manager.c: In function 'handle_scan_devices':
mm-base-manager.c:736:15: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
ctx->self = g_object_ref (manager);
^
mm-base-sim.c: In function 'common_init_async':
mm-base-sim.c:1531:15: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
ctx->self = g_object_ref (initable);
^
mm-broadband-bearer.c: In function 'connect':
mm-broadband-bearer.c:1255:15: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
ctx->self = g_object_ref (self);
^
mm-broadband-bearer.c: In function 'disconnect':
mm-broadband-bearer.c:1820:15: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
ctx->self = g_object_ref (self);
^
mm-broadband-bearer.c: In function 'initable_init_async':
mm-broadband-bearer.c:2037:15: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
ctx->self = g_object_ref (initable);
^
CC ModemManager-mm-base-modem-at.o
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1050: ModemManager-mm-device.o] Error 1
make[4]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
cc1: all warnings being treated as errors
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1036: ModemManager-mm-base-manager.o] Error 1
make[4]: *** [Makefile:1078: ModemManager-mm-base-sim.o] Error 1
make[4]: *** [Makefile:1106: ModemManager-mm-broadband-bearer.o] Error 1
make[4]: Leaving directory '/tmp/ModemManager-1.6.12/src'
make[3]: *** [Makefile:1629: all-recursive] Error 1
make[3]: Leaving directory '/tmp/ModemManager-1.6.12/src'
make[2]: *** [Makefile:753: all] Error 2
make[2]: Leaving directory '/tmp/ModemManager-1.6.12/src'
make[1]: *** [Makefile:536: all-recursive] Error 1
make[1]: Leaving directory '/tmp/ModemManager-1.6.12'
make: *** [Makefile:468: all] Error 2
-------------------------------
netkit-rsh: errors returned
-------------------------------
gcc -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_SHADOW -DRESTRICT_FTP=1 rexecd.c -c
rexecd.c: In function 'doit':
rexecd.c:226:14: error: 'ARG_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?
char cmdbuf[ARG_MAX+1];
^~~~~~~
AF_MAX
rexecd.c:226:14: note: each undeclared identifier is reported only once for each function it appears in
rexecd.c:226:7: warning: unused variable 'cmdbuf' [-Wunused-variable]
char cmdbuf[ARG_MAX+1];
^~~~~~
make[1]: *** [../MRULES:4: rexecd.o] Error 1
make[1]: Leaving directory '/tmp/netkit-rsh-0.17/rexecd'
make: *** [Makefile:7: rexecd.build] Error 2
---------------------------------
 
Old 04-13-2018, 09:56 AM   #274
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 293

Rep: Reputation: 218Reputation: 218Reputation: 218
patch to build netkit-rsh:
---------------------
--- netkit-rsh.SlackBuild.orig 2018-04-08 19:43:05.000000000 +0200
+++ netkit-rsh.SlackBuild 2018-04-13 15:47:59.866389946 +0200
@@ -56,8 +56,12 @@
cd $TMP
tar xvf $CWD/netkit-rsh-$VERSION.tar.gz || exit 1
cd netkit-rsh-$VERSION || exit 1
+
+# patch to build on slackware-current >= 13042018
+zcat $CWD/netkit-rsh.patch.gz | patch -Esp1 --verbose || exit 1
+
chown -R root:root .
-./configure --prefix=/usr || exit 1
+./configure --prefix=/usr --disable-pam || exit 1
make || exit 1
cd rsh
strip rsh
--------------------
netkit-rsh.patch
--------------------
diff -aurN netkit-rsh-0.17.orig/rexecd/rexecd.c netkit-rsh-0.17/rexecd/rexecd.c
--- netkit-rsh-0.17.orig/rexecd/rexecd.c 2000-07-23 06:16:22.000000000 +0200
+++ netkit-rsh-0.17/rexecd/rexecd.c 2018-04-13 13:28:00.000000000 +0200
@@ -223,7 +223,7 @@
static void
doit(struct sockaddr_in *fromp)
{
- char cmdbuf[ARG_MAX+1];
+ char cmdbuf[AF_MAX+1];
char user[16], pass[16];
struct passwd *pwd;
int s = -1;
diff -aurN netkit-rsh-0.17.orig/rlogin/rlogin.c netkit-rsh-0.17/rlogin/rlogin.c
--- netkit-rsh-0.17.orig/rlogin/rlogin.c 2000-07-23 06:16:22.000000000 +0200
+++ netkit-rsh-0.17/rlogin/rlogin.c 2018-04-13 13:32:36.000000000 +0200
@@ -420,7 +420,7 @@
void
catch_child(int ignore)
{
- union wait status;
+ int status;
int pid;

(void)ignore;
@@ -431,7 +431,7 @@
return;
/* if the child (reader) dies, just quit */
if (pid < 0 || (pid == childpid && !WIFSTOPPED(status)))
- done((int)(status.w_termsig | status.w_retcode));
+ done((int)(WTERMSIG(status) | WEXITSTATUS(status)));
}
/* NOTREACHED */
}
diff -aurN netkit-rsh-0.17.orig/rlogind/auth.c netkit-rsh-0.17/rlogind/auth.c
--- netkit-rsh-0.17.orig/rlogind/auth.c 2000-01-06 04:26:21.000000000 +0100
+++ netkit-rsh-0.17/rlogind/auth.c 2018-04-13 13:34:04.000000000 +0200
@@ -33,6 +33,8 @@

#include <sys/types.h>
#include <pwd.h>
+#include <stdio.h>
+#include <grp.h>

#include "rlogind.h"

diff -aurN netkit-rsh-0.17.orig/rlogind/rlogind.c netkit-rsh-0.17/rlogind/rlogind.c
--- netkit-rsh-0.17.orig/rlogind/rlogind.c 2000-07-23 05:07:58.000000000 +0200
+++ netkit-rsh-0.17/rlogind/rlogind.c 2018-04-13 13:26:40.000000000 +0200
@@ -71,6 +71,9 @@
#include "pathnames.h"
#include "logwtmp.h"
#include "rlogind.h"
+#if defined(linux) && defined(FSUID_HACK)
+#include <sys/fsuid.h>
+#endif

pid_t forkpty(int *, char *, struct termios *, struct winsize *);
int logout(const char *);
diff -aurN netkit-rsh-0.17.orig/rshd/rshd.c netkit-rsh-0.17/rshd/rshd.c
--- netkit-rsh-0.17.orig/rshd/rshd.c 2000-07-23 06:16:24.000000000 +0200
+++ netkit-rsh-0.17/rshd/rshd.c 2018-04-13 13:35:13.000000000 +0200
@@ -331,7 +331,7 @@
static void
doit(struct sockaddr_in *fromp)
{
- char cmdbuf[ARG_MAX+1];
+ char cmdbuf[AF_MAX+1];
const char *theshell, *shellname;
char locuser[16], remuser[16];
struct passwd *pwd;
---------------------------
 
Old 04-14-2018, 07:00 AM   #275
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 293

Rep: Reputation: 218Reputation: 218Reputation: 218
bug in network-script package due to last change in 12 april: see netconfig.rej below
-----------------------------
--- netconfig.orig 2017-11-26 13:34:37.652627697 -0600
+++ netconfig 2018-02-15 20:01:26.844174383 -0600
@@ -362,10 +362,6 @@

# Write the hostname with domain to /etc/HOSTNAME:
echo $HOSTNM.$DOMAIN > etc/HOSTNAME
-# Also make sure the hostname is written to /etc/NetworkManager/NetworkManager.conf:
-if [ -w etc/NetworkManager/NetworkManager.conf ]; then
- sed -i "s/^hostname=.*$/hostname=$HOSTNM/g" etc/NetworkManager/NetworkManager.conf
-fi

dialog --title "CONFIGURATION TYPE FOR '$HOSTNM.$DOMAIN'" \
--default-item DHCP \
-----------------------------
for the first patch (0001-no_hostname_in_networkmanager_conf.diff.gz) in the SlackBuild, netconfig has already disabled the lines, they can't be removed ('exit 1' works on that).

Last edited by nobodino; 04-14-2018 at 07:14 AM.
 
Old 04-15-2018, 02:41 AM   #276
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 293

Rep: Reputation: 218Reputation: 218Reputation: 218
the only way I found to build ModemManager, is to build version (not stable): 1.7.991 then NetworkManager-1.11.2, and then "network-manager-applet" builds normally...
 
  


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] /usr/bin/X11/X11/....... 10 X11 subsets & counting walter74 Linux - General 2 06-07-2015 12:36 AM
How do I get the /etc/X11/X file rebuilt from scratch rickh Debian 4 05-07-2006 11:06 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM

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

All times are GMT -5. The time now is 12:44 PM.

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