WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] compile error against /lib64/libdl.so.2 maybe?  (Read 357 times)

Offline aus9

  • Full Member
  • ***
  • Posts: 180
[Solved] compile error against /lib64/libdl.so.2 maybe?
« on: April 21, 2020, 09:34:55 PM »
Hi

On 64 bit I have loaded compiletc submitqc gtk2-dev attr-dev (and their dependencies)

In attempting to rebuild rox-filer against newer packages I see

Code: [Select]
/usr/local/bin/ld: xtypes.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
/usr/local/bin/ld: /lib64/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:48: ROX-Filer] Error 1

# and
ls -al /lib64/libdl.so.2
lrwxrwxrwx 1 root root 13 Mar 30 06:45 /lib64/libdl.so.2 -> libdl-2.30.so

Searching Apps -> provides with either of those 2 shared objects draws a blank
but my Apps is not working correctly so  TCE appears to be
http://tinycorelinux.net/11.x/x86_64/tcz/glibc_base-dev.tcz.list
Code: [Select]
ls /usr/local/tce.installed/ | grep glibc_base-dev
glibc_base-dev

my current error config.log is
Code: [Select]
cat config.log | grep error
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
conftest.c:11:10: fatal error: ac_nonexistent.h: No such file or directory
conftest.c:11:10: fatal error: ac_nonexistent.h: No such file or directory
conftest.c:61:10: fatal error: sys/ucred.h: No such file or directory
conftest.c:28:10: fatal error: sys/ucred.h: No such file or directory
conftest.c:61:10: fatal error: sys/mntent.h: No such file or directory
conftest.c:28:10: fatal error: sys/mntent.h: No such file or directory
conftest.c:61:10: fatal error: apsymbols.h: No such file or directory
conftest.c:28:10: fatal error: apsymbols.h: No such file or directory
conftest.c:61:10: fatal error: apbuild/apsymbols.h: No such file or directory
conftest.c:28:10: fatal error: apbuild/apsymbols.h: No such file or directory
conftest.c:69:21: error: expected expression before ')' token
collect2: error: ld returned 1 exit status
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| /* Override any GCC internal prototype to avoid an error.
conftest.c:77:10: fatal error: attr/xattr.h: No such file or directory
conftest.c:44:10: fatal error: attr/xattr.h: No such file or directory

I did try one minor fix of linking libxattr.h to xattr.h but it made no diff

any clues?
« Last Edit: April 22, 2020, 06:43:02 AM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12255
Re: compile error against /lib64/libdl.so.2 maybe?
« Reply #1 on: April 21, 2020, 10:17:21 PM »
The directory /lib64 should not exist and certainly should not include /lib64/libdl.so.2, but I don't know if this is the cause of the problem.

Offline aus9

  • Full Member
  • ***
  • Posts: 180
Re: compile error against /lib64/libdl.so.2 maybe?
« Reply #2 on: April 21, 2020, 11:05:22 PM »
Quote
The directory /lib64 should not exist

Hi I was not expecting that ^.

Code: [Select]
ls -al /tmp
SNIP
-r--r--r--    1 root     staff           11 Apr 22 05:48 .X0-lock
drwxrwxr-x  139 root     staff         2780 Apr 22 05:49 tcloop/

ls -al /lib64
lrwxrwxrwx    1 root     root             4 Apr 22 05:48 /lib64 -> /lib/

EDIT timestamp for TCE is for last loaded TCEs tricking me at first


I have no backup of that dir
Code: [Select]
cat /opt/.filetool.lst
etc/fstab
etc/modprobe.conf

I can assure you have not made any TCE that has /lib64 in it.
I do run some .local/bin scripts that I can assure they have no /lib64 in them too.

and if helps but they are likely to be sym link files
Code: [Select]
ls /lib64
ld-2.30.so            libdl.so.2            libpthread-2.30.so
ld-linux-x86-64.so.2  libe2p.so.2           libpthread.so.0
libanl-2.30.so        libe2p.so.2.3         libresolv-2.30.so
libanl.so.1           libext2fs.so.2        libresolv.so.2
libblkid.so.1         libext2fs.so.2.4      librt-2.30.so
libblkid.so.1.1.0     libm-2.30.so          librt.so.1
libc-2.30.so          libm.so.6             libutil-2.30.so
libc.so.6             libnsl-2.30.so        libutil.so.1
libcom_err.so.2       libnsl.so.1           libuuid.so.1
libcom_err.so.2.1     libnss_dns-2.30.so    libuuid.so.1.3.0
libcrypt-2.30.so      libnss_dns.so.2       modules/
libcrypt.so.1         libnss_files-2.30.so  udev/
libdl-2.30.so         libnss_files.so.2

EDIT2

I have no TC on an old laptop. Let me boot that up and see if that dir exists.
Well blow me...no lib64 on that laptop. Looks like I need to track down either a TCE or something else that is interfering.
« Last Edit: April 21, 2020, 11:33:36 PM by aus9 »

Offline aus9

  • Full Member
  • ***
  • Posts: 180
Re: compile error against /lib64/libdl.so.2 maybe?
« Reply #3 on: April 21, 2020, 11:23:30 PM »
found it ....opera-62 install script

Code: [Select]
#!/bin/sh
if [ ! -e /lib64 ]; then
        ln -s /lib /lib64
fi
if [ ! -h /etc/fonts ]; then
        ln -s /usr/local/etc/fonts /etc
fi
update-mime-database /usr/local/share/mime > /dev/null 2>&1

I do not need this browser. I can use something else
« Last Edit: April 21, 2020, 11:31:34 PM by aus9 »

Offline aus9

  • Full Member
  • ***
  • Posts: 180
Re: compile error against /lib64/libdl.so.2 maybe?
« Reply #4 on: April 21, 2020, 11:30:46 PM »
full reboot just changes pathway

Code: [Select]
/usr/local/bin/ld: xtypes.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
/usr/local/bin/ld: /lib/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:48: ROX-Filer] Error 1

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10240
Re: compile error against /lib64/libdl.so.2 maybe?
« Reply #5 on: April 22, 2020, 12:46:36 AM »
The error means the compile script/Makefile/etc is faulty, it is missing -ldl.
The only barriers that can stop you are the ones you create yourself.

Offline aus9

  • Full Member
  • ***
  • Posts: 180
Re: compile error against /lib64/libdl.so.2 maybe?
« Reply #6 on: April 22, 2020, 06:34:36 AM »
thanks curaga.

Just realized that glibc_base was using /usr/lib

adjusted my configure to add LIBS="string"

Mark as solved please

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 7934
Re: [Solved] compile error against /lib64/libdl.so.2 maybe?
« Reply #7 on: April 22, 2020, 06:43:23 AM »
Hi aus9
Done.