LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-02-2018, 03:22 AM   #361
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393

xz nok:
-------------
make[3]*: on quitte le répertoire «*/tmp/xz-5.2.4/src/liblzma*»
Making all in xzdec
make[3]*: on entre dans le répertoire «*/tmp/xz-5.2.4/src/xzdec*»
/bin/sh ../../libtool --tag=CC --mode=link gcc -fvisibility=hidden -Wall -Wextra -Wvla -Wformat=2 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls -O2 -fPIC -o xzdec xzdec-xzdec.o xzdec-tuklib_progname.o xzdec-tuklib_exit.o ../../src/liblzma/liblzma.la
libtool: link: gcc -fvisibility=hidden -Wall -Wextra -Wvla -Wformat=2 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls -O2 -fPIC -o .libs/xzdec xzdec-xzdec.o xzdec-tuklib_progname.o xzdec-tuklib_exit.o ../../src/liblzma/.libs/liblzma.so
/usr/bin/ld: ../../src/liblzma/.libs/liblzma.so: undefined reference to `pthread_sigmask'
/usr/bin/ld: ../../src/liblzma/.libs/liblzma.so: undefined reference to `pthread_join'
/usr/bin/ld: ../../src/liblzma/.libs/liblzma.so: undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:501: xzdec] Error 1
make[3]*: on quitte le répertoire «*/tmp/xz-5.2.4/src/xzdec*»
make[2]: *** [Makefile:420: all-recursive] Error 1
make[2]*: on quitte le répertoire «*/tmp/xz-5.2.4/src*»
make[1]: *** [Makefile:613: all-recursive] Error 1
make[1]*: on quitte le répertoire «*/tmp/xz-5.2.4*»
make: *** [Makefile:480: all] Error 2
-------------------------
 
Old 08-02-2018, 03:23 AM   #362
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,530

Rep: Reputation: Disabled
Quote:
Originally Posted by nobodino View Post
findutils nok:
-----------------
mv -f $depbase.Tpo $depbase.Po
freadahead.c: Dans la fonction «*freadahead*»:
freadahead.c:64:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread on your system, then report this to bug-gnulib."
#error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread on your system, then report this to bug-gnulib."
^~~~~
make[4]: *** [Makefile:890: freadahead.o] Error 1
make[4]: *** Attente des tâches non terminées....
make[4]*: on quitte le répertoire «*/tmp/findutils-4.4.2/gnulib/lib*»
make[3]: *** [Makefile:696: all] Error 2
make[3]*: on quitte le répertoire «*/tmp/findutils-4.4.2/gnulib/lib*»
make[2]: *** [Makefile:606: all-recursive] Error 1
make[2]*: on quitte le répertoire «*/tmp/findutils-4.4.2/gnulib*»
make[1]: *** [Makefile:643: all-recursive] Error 1
make[1]*: on quitte le répertoire «*/tmp/findutils-4.4.2*»
make: *** [Makefile:582: all] Error 2
make all-recursive
make[1]*: on entre dans le répertoire «*/tmp/findutils-4.4.2*»
Making all in gnulib
make[2]*: on entre dans le répertoire «*/tmp/findutils-4.4.2/gnulib*»
Making all in lib
make[3]*: on entre dans le répertoire «*/tmp/findutils-4.4.2/gnulib/lib*»
make all-am
make[4]*: on entre dans le répertoire «*/tmp/findutils-4.4.2/gnulib/lib*»
depbase=`echo freadahead.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../intl -O2 -fPIC -MT freadahead.o -MD -MP -MF $depbase.Tpo -c -o freadahead.o freadahead.c &&\
mv -f $depbase.Tpo $depbase.Po
freadahead.c: Dans la fonction «*freadahead*»:
freadahead.c:64:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread on your system, then report this to bug-gnulib."
#error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread on your system, then report this to bug-gnulib."
^~~~~
make[4]: *** [Makefile:890: freadahead.o] Error 1
make[4]*: on quitte le répertoire «*/tmp/findutils-4.4.2/gnulib/lib*»
make[3]: *** [Makefile:696: all] Error 2
make[3]*: on quitte le répertoire «*/tmp/findutils-4.4.2/gnulib/lib*»
make[2]: *** [Makefile:606: all-recursive] Error 1
make[2]*: on quitte le répertoire «*/tmp/findutils-4.4.2/gnulib*»
make[1]: *** [Makefile:643: all-recursive] Error 1
make[1]*: on quitte le répertoire «*/tmp/findutils-4.4.2*»
make: *** [Makefile:582: all] Error 2
---------------------
https://src.fedoraproject.org/cgit/r...b-fflush.patch
https://src.fedoraproject.org/cgit/r...-makedev.patch
 
1 members found this post helpful.
Old 08-02-2018, 03:26 AM   #363
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
perl nok:
-----------------
trings -fPIC perly.c
In file included from perl.h:5310,
from miniperlmain.c:52:
miniperlmain.c: Dans la fonction «*main*»:
miniperlmain.c:134:29: warning: transtypage entre des types de fonction incompatibles de «*void (*)(int)*» vers «*void (*)(int, siginfo_t *, void *)*» {alias «*void (*)(int, struct <anonyme> *, void *)*»} [-Wcast-function-type]
rsignal(PL_sig_num[i], (Sighandler_t) SIG_DFL);
^
embed.h:638:44: note: dans la définition de la macro «*rsignal*»
#define rsignal(a,b) Perl_rsignal(aTHX_ a,b)
^
cc -fstack-protector-strong -o miniperl \
opmini.o perlmini.o gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o dquote.o time64.o miniperlmain.o -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
op.c: Dans la fonction «*S_fold_constants*»:
op.c:5469:34: warning: l'argument «*o*» pourrait être écrasé par «*longjmp*» ou «*vfork*» [-Wclobbered]
S_fold_constants(pTHX_ OP *const o)
~~~~~~~~~~^
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/8.2.0/../../../../lib64/libpthread.a(elision-lock.o): in function `_dl_tunable_set_elision_enable':
(.text+0xe3): undefined reference to `_dl_x86_cpu_features'
collect2: error: ld a retourné le statut de sortie 1
make: *** [makefile:362: lib/buildcustomize.pl] Error 1
make: *** Attente des tâches non terminées....
--------------------
 
Old 08-02-2018, 03:26 AM   #364
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,530

Rep: Reputation: Disabled
Quote:
Originally Posted by nobodino View Post
gzip nok:
----------
fseeko.c: In function 'rpl_fseeko':
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
#error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
^~~~~
CC openat-proc.o
make[3]: *** [Makefile:1775: fseeko.o] Error 1
make[3]: *** Waiting for unfinished jobs....
fseterr.c: In function 'fseterr':
fseterr.c:78:3: error: #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
#error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
^~~~~
make[3]: *** [Makefile:1775: fseterr.o] Error 1
make[3]: Leaving directory '/tmp/gzip-1.9/lib'
make[2]: *** [Makefile:1580: all] Error 2
make[2]: Leaving directory '/tmp/gzip-1.9/lib'
make[1]: *** [Makefile:1746: all-recursive] Error 1
make[1]: Leaving directory '/tmp/gzip-1.9'
make: *** [Makefile:1527: all] Error 2
make all-recursive
make[1]: Entering directory '/tmp/gzip-1.9'
Making all in lib
make[2]: Entering directory '/tmp/gzip-1.9/lib'
make all-am
make[3]: Entering directory '/tmp/gzip-1.9/lib'
CC glthread/lock.o
CC fseeko.o
fseeko.c: In function 'rpl_fseeko':
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
#error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
^~~~~
make[3]: *** [Makefile:1775: fseeko.o] Error 1
make[3]: Leaving directory '/tmp/gzip-1.9/lib'
make[2]: *** [Makefile:1580: all] Error 2
make[2]: Leaving directory '/tmp/gzip-1.9/lib'
make[1]: *** [Makefile:1746: all-recursive] Error 1
make[1]: Leaving directory '/tmp/gzip-1.9'
make: *** [Makefile:1527: all] Error 2
-----------------------
https://src.fedoraproject.org/cgit/r...n/gnulib.patch

in general look here for glibc-2.28 patches: search the software in the top right box and look for the latest git commits
https://src.fedoraproject.org/cgit/
 
1 members found this post helpful.
Old 08-02-2018, 03:28 AM   #365
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
ok for the link, I just test every core package for the time being.
 
Old 08-02-2018, 03:34 AM   #366
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
and last gcc nok:
-------------------
checking for uintptr_t... yes
checking for int_least32_t... yes
checking for int_fast32_t... yes
checking for uint64_t... yes
checking what to include in gstdint.h... stdint.h (already complete)
configure: error: Pthreads are required to build libgomp
make[2]: *** [Makefile:23013: configure-stage1-target-libgomp] Error 1
make[2]*: on quitte le répertoire «*/tmp/gcc.build.lnx*»
make[1]: *** [Makefile:25179: stage1-bubble] Error 2
make[1]*: on quitte le répertoire «*/tmp/gcc.build.lnx*»
make: *** [Makefile:25500: bootstrap] Error 2
----------------------
 
Old 08-02-2018, 03:37 AM   #367
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
I tested 25 core packages:
- 17 are ok:
----------
root@darkstar:/tmp# ls -la *.t?z
-rw-r--r-- 1 root root 1525228 août 2 10:02 bash-4.4.023-x86_64-1.txz
-rw-r--r-- 1 root root 577996 août 2 10:04 bison-3.0.5-x86_64-1.txz
-rw-r--r-- 1 root root 92752 août 2 10:05 bzip2-1.0.6-x86_64-3.txz
-rw-r--r-- 1 root root 315536 août 2 10:12 diffutils-3.6-x86_64-2.txz
-rw-r--r-- 1 root root 339352 août 2 10:13 file-5.34-x86_64-1.txz
-rw-r--r-- 1 root root 1109132 août 2 10:14 gawk-4.2.1-x86_64-2.txz
-rw-r--r-- 1 root root 122244 août 2 10:15 gettext-0.19.8.1-x86_64-5.txz
-rw-r--r-- 1 root root 235372 août 2 10:16 grep-3.1-x86_64-2.txz
-rw-r--r-- 1 root root 84776 août 2 10:23 lzip-1.20-x86_64-3.txz
-rw-r--r-- 1 root root 483868 août 2 09:39 make-4.2.1-x86_64-3.txz
-rw-r--r-- 1 root root 1279192 août 2 10:00 ncurses-6.1_20180616-x86_64-1.txz
-rw-r--r-- 1 root root 119852 août 2 10:17 patch-2.7.6-x86_64-3.txz
-rw-r--r-- 1 root root 207860 août 2 10:18 sed-4.5-x86_64-2.txz
-rw-r--r-- 1 root root 795224 août 2 10:20 tar-1.30-x86_64-2.txz
-rw-r--r-- 1 root root 1225964 août 2 10:20 texinfo-6.5-x86_64-6.txz
-rw-r--r-- 1 root root 2408220 août 2 10:22 util-linux-2.32.1-x86_64-1.txz
-rw-r--r-- 1 root root 29876 août 2 10:23 which-2.21-x86_64-2.txz
---------------
- 8 failed: m4, binutils, coreutils, findutils, gzip, perl, xz and gcc

That's all for now.
 
1 members found this post helpful.
Old 08-02-2018, 03:56 AM   #368
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,530

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
BTW, if can be useful, with glibc-2.28 installed and trying to build i3 or lxpanel I spotted something that I think is wrong when using pthread

Code:
lxpanel

/bin/sh ../libtool  --tag=CC   --mode=link gcc -I./netstat -O2 -fPIC -module -avoid-version -shared -export-dynamic -no-undefined -rpath /usr/lib64/lxpanel/plugins ../src/liblxpanel.la -lfm-gtk -lfm -lwnck-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lmenu-cache -lglib-2.0 -Wl,--as-needed -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,--sort-common -o netstat.la  netstat/la-netstat.lo netstat/la-devproc.lo netstat/la-statusicon.lo netstat/la-wireless.lo netstat/la-lxnm_client.lo netstat/la-passwd_gui.lo -liw -lm                                         
libtool: link: gcc -shared  -fPIC -DPIC  netstat/.libs/la-netstat.o netstat/.libs/la-devproc.o netstat/.libs/la-statusicon.o netstat/.libs/la-wireless.o netstat/.libs/la-lxnm_client.o netstat/.libs/la-passwd_gui.o   -Wl,-rpath -Wl,/tmp/SBo/lxpanel-0.9.3/src/.libs -Wl,-rpath -Wl,/usr/lib64/lxpanel ../src/.libs/liblxpanel.so -lkeybinder -lX11 /usr/lib64/libfm-gtk.so /usr/lib64/libfm.so -lexif -ldl -lwnck-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype -lgthread-2.0 -lgmodule-2.0 /usr/lib64/libmenu-cache.so -lgio-2.0 -lgobject-2.0 -lglib-2.0 -liw -lm  -O2 -pthread -Wl,--export-dynamic -pthread -Wl,--as-needed -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,--sort-common   -pthread -Wl,-soname -Wl,netstat.so -o .libs/netstat.so
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/8.2.0/../../../../lib64/libpthread.a(elision-lock.o): .preinit_array section is not allowed in DSO
/usr/bin/ld: failed to set dynamic section sizes: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1003: netstat.la] Error 1
make[3]: Leaving directory '/tmp/SBo/lxpanel-0.9.3/plugins'
make[2]: *** [Makefile:831: all] Error 2
make[2]: Leaving directory '/tmp/SBo/lxpanel-0.9.3/plugins'
make[1]: *** [Makefile:517: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/lxpanel-0.9.3'
make: *** [Makefile:420: all] Error 2

- - -

i3

gcc -Wunused-value -Wunused-value    -I/usr/include/yajl -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/startup-notification-1.0       -I/usr/include/yajl    -O2 -fPIC -Wall   -o i3   src/i3-assignments.o src/i3-bindings.o src/i3-click.o src/i3-commands.o src/i3-commands_parser.o src/i3-con.o src/i3-config.o src/i3-config_directives.o src/i3-config_parser.o src/i3-display_version.o src/i3-ewmh.o src/i3-fake_outputs.o src/i3-floating.o src/i3-handlers.o src/i3-ipc.o src/i3-key_press.o src/i3-load_layout.o src/i3-log.o src/i3-main.o src/i3-manage.o src/i3-match.o src/i3-move.o src/i3-output.o src/i3-randr.o src/i3-regex.o src/i3-render.o src/i3-resize.o src/i3-restore_layout.o src/i3-scratchpad.o src/i3-sd-daemon.o src/i3-sighandler.o src/i3-startup.o src/i3-tree.o src/i3-util.o src/i3-version.o src/i3-window.o src/i3-workspace.o src/i3-x.o src/i3-xcb.o src/i3-xcursor.o src/i3-xinerama.o ./libi3.a -lxcb -lxcb-xkb -lxcb-xinerama -lxcb-randr -lxcb-util -lxcb -lxcb-xrm -lxcb -lyajl -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lstartup-notification-1 -lxcb -lxcb-xkb -lxcb-xinerama -lxcb-randr -lxcb-cursor -lxcb -lxcb-keysyms -lxcb -lxcb-icccm -lxcb -lxcb-xrm -lxcb -lxkbcommon-x11 -lxkbcommon -lyajl -lpcre -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo   -lrt -lev -lm
/usr/bin/ld: src/i3-log.o: undefined reference to symbol 'pthread_condattr_setpshared@@GLIBC_2.2.5'
/usr/bin/ld: /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1517: i3] Error 1
make[1]: Leaving directory '/tmp/SBo/i3-4.15/build'
make: *** [Makefile:1266: all] Error 2

excerpt from the configure phase
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking for the pthreads library -lpthreads... no                                                                                                                                                                                                                                                                                                                                
checking whether pthreads work without any flags... no                                                                                                                                                                                                                                                                                                                            
checking whether pthreads work with -Kthread... no                                                                                                                                                                                                                                                                                                                               
checking whether pthreads work with -pthread... no                                                                                                                                                                                                                                                                                                                                
checking whether pthreads work with -pthreads... no                                                                                                                                                                                                                                                                                                                               
checking whether pthreads work with -mthreads... no                                                                                                                                                                                                                                                                                                                               
checking for the pthreads library -lpthread... no                                                                                                                                                                                                                                                                                                                                
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no                                                                                                                                                                                                                                                                                                                                     
checking for pthread-config... no

in the config.log
configure:6765: checking whether pthreads work with -pthread
configure:6859: gcc -o conftest -O2 -fPIC -pthread  -ldl conftest.c  -lrt -lev -lm  >&5
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/8.2.0/../../../../lib64/libpthread.a(pthread_create.o): in function `__pthread_create_2_1':
(.text+0x180f): undefined reference to `_dl_stack_flags'
/usr/bin/ld: (.text+0x2028): undefined reference to `_dl_stack_flags'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/8.2.0/../../../../lib64/libpthread.a(elision-lock.o): in function `_dl_tunable_set_elision_enable':
(.text+0xe3): undefined reference to `_dl_x86_cpu_features'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/8.2.0/../../../../lib64/libpthread.a(nptl-init.o): in function `__pthread_initialize_minimal_internal':
(.text+0x228): undefined reference to `_dl_cpuclock_offset'
/usr/bin/ld: (.text+0x3d1): undefined reference to `_dl_pagesize'
/usr/bin/ld: (.text+0x45a): undefined reference to `_dl_init_static_tls'
/usr/bin/ld: (.text+0x480): undefined reference to `_dl_wait_lookup_done'
/usr/bin/ld: /usr/lib64/gcc/x86_64-slackware-linux/8.2.0/../../../../lib64/libpthread.a(nptl-init.o): in function `__pthread_get_minstack':
(.text+0x4ba): undefined reference to `_dl_pagesize'
collect2: error: ld returned 1 exit status
I found this maybe-pertinent block in the fedora's glibc.spec, but I haven't tried applying to glibc.SlackBuild yet...
Code:
###############################################################################
# Rebuild libpthread.a using --whole-archive to ensure all of libpthread
# is included in a static link. This prevents any problems when linking
# statically, using parts of libpthread, and other necessary parts not
# being included. Upstream has decided that this is the wrong approach to
# this problem and that the full set of dependencies should be resolved
# such that static linking works and produces the most minimally sized
# static application possible.
###############################################################################
pushd %{glibc_sysroot}%{_prefix}/%{_lib}/
$GCC -r -nostdlib -o libpthread.o -Wl,--whole-archive ./libpthread.a
rm libpthread.a
ar rcs libpthread.a libpthread.o
rm libpthread.o
popd
 
Old 08-02-2018, 05:50 AM   #369
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
see on LFS: http://lists.linuxfromscratch.org/pi...st/thread.html
 
1 members found this post helpful.
Old 08-02-2018, 06:45 AM   #370
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
the patch from: https://src.fedoraproject.org/cgit/r...k-around.patch
is ok for m4.
 
Old 08-02-2018, 08:37 AM   #371
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
the patch from: https://src.fedoraproject.org/cgit/r...n/gnulib.patch
is ok for gzip.
 
Old 08-02-2018, 10:43 AM   #372
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
for findutils the 2 links are applicable to findutils-4.6.0:
https://src.fedoraproject.org/cgit/r...b-fflush.patch
https://src.fedoraproject.org/cgit/r...-makedev.patch

for findutils-4.4.2, I've done this patch trying to see what's applicable to that version: it compiles
Attached Files
File Type: txt findutils-glibc-2.28.patch.txt (3.1 KB, 13 views)
 
1 members found this post helpful.
Old 08-02-2018, 03:20 PM   #373
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
the 3 patches for m4, findutils and gzip allows me to build the tools. I'll see where it will crash in the SFS building (see in the github project what is needed).

Last edited by nobodino; 08-02-2018 at 03:26 PM.
 
Old 08-02-2018, 11:45 PM   #374
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint,Manjaro...
Posts: 702

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
It crashed on binutils on list1:
------------------
a findutils
a pkgtools
a aaa_base
a etc
d kernel-headers
d python
d python3
d bison
l glibc
a adjust
# a test-glibc
l zlib
d bison
d help2man
a lzip
d flex
d binutils
------------------------
checking mremap with MREMAP_MAYMOVE... yes
checking for a sed that does not truncate output... /tools/bin/sed
checking whether gcc is Clang... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
checking for pthread-config... no
configure: error: pthread not found
make[1]: *** [Makefile:5996: configure-gold] Error 1
make[1]: Leaving directory '/tmp/binutils-2.31.1'
make: *** [Makefile:850: all] Error 2
----------------------
 
Old 08-03-2018, 03:39 AM   #375
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
configure: error: pthread not found ?
this is strange, you should have it from your new glibc package?
 
  


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:14 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
Open Source Consulting | Domain Registration