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.
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
---------------------
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
-----------------------
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/
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,560
Rep:
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
----------------------
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
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,560
Rep:
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).
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,560
Rep:
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
----------------------
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.