LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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: 339

Rep: Reputation: 229Reputation: 229Reputation: 229

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: 180

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: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
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: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
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: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
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: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
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...
 
Old 04-21-2018, 11:53 AM   #277
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
regression test on slackware64-current up to "Fri Apr 20 03:32:21 UTC 2018": everything is ok except firefox see build.log:
--------------------------------------
39 File "/tmp/firefox-59.0.2/obj/_virtualenv/lib64/python2.7/encodings/utf_8.py", line 16, in decode
0:05.40 return codecs.utf_8_decode(input, errors, True)
0:05.40 UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 221: invalid continuation byte
0:05.43 *** Fix above errors and then restart with\
0:05.43 "/usr/bin/gmake -f client.mk build"
0:05.43 gmake: *** [client.mk:149: configure] Error
-------------------------------------
 
Old 04-21-2018, 04:16 PM   #278
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

Original Poster
Rep: Reputation: 34
Nobodino,

I am still fighting build1_s.list, procps-ng-3.3.14 refuses to find libncursesw.so.6.0 (slackware64-current),
and am out of ideas. The only changes I've made to your scripts of 2018-03-25 are in export-variables.sh or as posted
in this forum. Are there any unposted changes I should be aware of?
 
Old 04-22-2018, 12:31 AM   #279
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
Worsel:
try with this new batch of scripts:
- sfsbuild1 is dedicated to current only.
- list-generator-c is for current only,
Attached Files
File Type: txt sfsbuild1-new-r1.txt (121.0 KB, 13 views)
File Type: txt sfs-tools-current-r14.txt (29.0 KB, 6 views)
File Type: txt sfs-bootstrap-mini-r6.txt (31.6 KB, 6 views)
File Type: txt prep-sfs-tools-r2.txt (3.0 KB, 5 views)
File Type: txt lists_generator_c-r1.txt (15.4 KB, 8 views)
 
Old 04-22-2018, 12:33 AM   #280
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
I enclose two other scritps.
Try with this.
Rebuild the tools.
Attached Files
File Type: txt chroot_sfs-r1.txt (2.5 KB, 8 views)
File Type: txt export_variables-r3.txt (4.6 KB, 7 views)
 
Old 04-22-2018, 09:36 PM   #281
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

Original Poster
Rep: Reputation: 34
Quote:
try with this new batch of scripts:
Thanks, Nobodino.

I'll get on them as soon as I can, probably tuesday.
I'll be quite busy till then. So called "real world" stuff.
 
Old 04-23-2018, 01:30 PM   #282
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
regression test on slackware-current (x86) up to "Sat Apr 21 17:39:25 UTC 2018": everything is ok except firefox as for x86_64
 
Old 04-25-2018, 10:53 PM   #283
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

Original Poster
Rep: Reputation: 34
Okay, the lastest scripts got me going again. Still don't know why
the previous ones bombed, but I'll look into that tomorrow or the next day.

The scripts downloaded on 2018-04-21 build through build2_s.list.
I did have to make two changes in sfs-bootstrap.sh.

1) the order of arch_selector and distribution_selector had to be reversed. Arch_selector must
come first.

2) After "elif [[ "$upgrade_type" = "local" ]]" I had to follow "upgrade_source" with "populate_others".

Will try building build3_s.list tonight.

Thanks again.
 
Old 04-28-2018, 05:49 AM   #284
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 339

Rep: Reputation: 229Reputation: 229Reputation: 229
I've found why firefox didn't build in SFS, it's rather strange.
I've always used 'xfce-terminal' and in that case it fails.
I've tried a new terminal ('kconsole') and this time it builds without the initial error.

Last edited by nobodino; 04-28-2018 at 10:14 AM.
 
Old 04-29-2018, 12:04 AM   #285
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 180

Original Poster
Rep: Reputation: 34
Quote:
I've found why firefox didn't build in SFS, it's rather strange.
Interesting. I've been using xfce-terminal also. Have to check it out. . . .

Thanks, Nobodino.
 
  


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 10:22 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