Install Issue --- Symbol Missing

So, “g++ -dumpspecs” is quite “normal”.
Try to execute:
locate libpthread
in order to find all versions of this library.

i have a cris cross-compiler

[fclopez@localhost ~]$ locate libpthread
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibc/libpthread.map
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibc/linuxthreads/libpthread.a
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibc/linuxthreads/libpthread.so
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibc/linuxthreads/libpthread.so.0
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibc/linuxthreads/libpthread_pic.a
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibcv32/libpthread.map
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibcv32/linuxthreads/libpthread.a
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibcv32/linuxthreads/libpthread.so
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibcv32/linuxthreads/libpthread.so.0
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibcv32/linuxthreads/libpthread_pic.a
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/cris-axis-linux-gnu/lib/libpthread-0.9.so
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/cris-axis-linux-gnu/lib/libpthread.a
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/cris-axis-linux-gnu/lib/libpthread.so
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/cris-axis-linux-gnu/lib/libpthread.so.0
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/crisv32-axis-linux-gnu/lib/libpthread-0.9.so
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/crisv32-axis-linux-gnu/lib/libpthread.a
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/crisv32-axis-linux-gnu/lib/libpthread.so
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/crisv32-axis-linux-gnu/lib/libpthread.so.0
/home/home_pcpicasso/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libpthread-0.9.so
/home/home_pcpicasso/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libpthread.a
/home/home_pcpicasso/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libpthread.so
/home/home_pcpicasso/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libpthread.so.0
/home/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libpthread-0.9.so
/home/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libpthread.a
/home/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libpthread.so
/home/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libpthread.so.0
/lib/libpthread-2.5.so
/lib/libpthread.so.0
/lib/i686/nosegneg/libpthread-2.5.so
/lib/i686/nosegneg/libpthread.so.0
/usr/lib/libpthread.a
/usr/lib/libpthread.so
/usr/lib/libpthread_nonshared.a
/usr/local/cris/cris-axis-linux-gnu/lib/libpthread-0.9.so
/usr/local/cris/cris-axis-linux-gnu/lib/libpthread.a
/usr/local/cris/cris-axis-linux-gnu/lib/libpthread.so
/usr/local/cris/cris-axis-linux-gnu/lib/libpthread.so.0
/usr/local/cris/crisv32-axis-linux-gnu/lib/libpthread-0.9.so
/usr/local/cris/crisv32-axis-linux-gnu/lib/libpthread.a
/usr/local/cris/crisv32-axis-linux-gnu/lib/libpthread.so
/usr/local/cris/crisv32-axis-linux-gnu/lib/libpthread.so.0

maybe these are culprits?

/lib/libpthread-2.5.so /lib/libpthread.so.0 /lib/i686/nosegneg/libpthread-2.5.so /lib/i686/nosegneg/libpthread.so.0 /usr/lib/libpthread.a /usr/lib/libpthread.so /usr/lib/libpthread_nonshared.a

Well, I don’t think that these additional libraries are the problem.

I’d like to propose a very brutal fix for the moment.
Try:
sudo mv /usr/lib/libpthread.a /usr/lib/libpthread.a.orig
then run make again.

it says this… after mv /usr/lib/libpthread.a /usr/lib/libpthread.a.orig

[fclopez@localhost root_v5-34-00-patches]$ make
g++ -shared -Wl,-soname,libThread.so -m32 -O2 -Wl,--no-undefined -Wl,--as-needed -o lib/libThread.so core/thread/src/TCondition.o core/thread/src/TConditionImp.o core/thread/src/TMutex.o core/thread/src/TMutexImp.o core/thread/src/TRWLock.o core/thread/src/TSemaphore.o core/thread/src/TThread.o core/thread/src/TThreadFactory.o core/thread/src/TThreadImp.o core/thread/src/TPosixCondition.o core/thread/src/TPosixMutex.o core/thread/src/TPosixThread.o core/thread/src/TPosixThreadFactory.o core/thread/src/G__Thread.o -pthread -Llib -lCore -lCint -ldl
/usr/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
make: *** [lib/libThread.so] Error 1

I have no idea why it didn’t recognize your “/usr/lib/libpthread.so”. Try to execute:
ls -al /usr/lib/libpthread.so
cat /usr/lib/libpthread.so

Well, reverse the change:
sudo mv /usr/lib/libpthread.a.orig /usr/lib/libpthread.a
and let’s wait for what Philippe says …

it says…

[fclopez@localhost ~]$ ls -al /usr/lib/libpthread.so
lrwxrwxrwx 1 root root 9 Sep 18 22:14 /usr/lib/libpthread.so -> libthr.so
[fclopez@localhost ~]$ cat /usr/lib/libpthread.so
cat: /usr/lib/libpthread.so: No such file or directory

Do you have the “glibc-devel” package installed?

Try to execute:
rpm -qf /usr/lib/libpthread.so
(You should get something like “glibc-devel-2.5-81.el5_8.7.i386”.)

Try also:
locate libthr

i have

glibc-devel-2.5-81.el5_8.7

Well, I get:
[…] $ rpm -qf /usr/lib/libpthread.so
glibc-devel-2.5-81.el5_8.7.i386
[…] $ ls -al /usr/lib/libpthread.so
-rw-r–r-- 1 root root 216 Aug 28 21:13 /usr/lib/libpthread.so
[…] $ cat /usr/lib/libpthread.so
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libpthread.so.0 /usr/lib/libpthread_nonshared.a )

So, you need to find the origin of this “libthr.so” symbolic link. Try to execute:
locate libthr

here is the output : locate libthr

[fclopez@localhost ~]$ locate libthr
/home/fclopez/altera/10.1sp1/quartus/linux/tcl8.5/thread2.6.2/libthread2.6.2.so
/home/fclopez/altera/10.1sp1/quartus/linux64/tcl8.5/thread2.6.2/libthread2.6.2.so
/home/fclopez/altera_v11/11.0sp1/quartus/linux/tcl8.5/thread2.6.2/libthread2.6.2.so
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibc/libthread_db.map
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibc/linuxthreads_db/libthread_db.so
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibc/linuxthreads_db/libthread_db.so.1
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibc/linuxthreads_db/libthread_db_pic.a
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibcv32/libthread_db.map
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibcv32/linuxthreads_db/libthread_db.so
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibcv32/linuxthreads_db/libthread_db.so.1
/home/home.old/l_common/cris-dist-1.64/tmpdir/install-cris-tools.18593/glibcv32/linuxthreads_db/libthread_db_pic.a
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/cris-axis-linux-gnu/lib/libthread_db-1.0.so
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/cris-axis-linux-gnu/lib/libthread_db.so
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/cris-axis-linux-gnu/lib/libthread_db.so.1
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/crisv32-axis-linux-gnu/lib/libthread_db-1.0.so
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/crisv32-axis-linux-gnu/lib/libthread_db.so
/home/home_pcpicasso/l_common/cris-dist-1.64/yes/crisv32-axis-linux-gnu/lib/libthread_db.so.1
/home/home_pcpicasso/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libthread_db-1.0.so
/home/home_pcpicasso/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libthread_db.so
/home/home_pcpicasso/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libthread_db.so.1
/home/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libthread_db-1.0.so
/home/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libthread_db.so
/home/l_common/devboard-R2_10/target/cris-axis-linux-gnu/lib/libthread_db.so.1
/lib/libthread_db-1.0.so
/lib/libthread_db.so.1
/lib/i686/nosegneg/libthread_db-1.0.so
/lib/i686/nosegneg/libthread_db.so.1
/usr/lib/libthr.so
/usr/lib/libthread_db.so
/usr/lib/libthreadutil.so.2
/usr/lib/libthreadutil.so.2.2.3
/usr/local/cris/cris-axis-linux-gnu/lib/libthread_db-1.0.so
/usr/local/cris/cris-axis-linux-gnu/lib/libthread_db.so
/usr/local/cris/cris-axis-linux-gnu/lib/libthread_db.so.1
/usr/local/cris/crisv32-axis-linux-gnu/lib/libthread_db-1.0.so
/usr/local/cris/crisv32-axis-linux-gnu/lib/libthread_db.so
/usr/local/cris/crisv32-axis-linux-gnu/lib/libthread_db.so.1

Try to execute:
rpm -qf /usr/lib/libthr.so

the output…

[fclopez@localhost ~]$ rpm -qf /usr/lib/libthr.so
file /usr/lib/libthr.so is not owned by any package

So, I believe you have a screwed operating system.
You must have installed something that has overwritten some system files (and now that something is “making problems”).
Try to execute (maybe this will give you a hint where it comes from):
ls -al /usr/lib/libthr.so

Well, in order to fix it, for the moment, try to reinstall the “glibc-devel” package (you need to do it with any option needed to “restore” all its files).
Try something like (though I’m not sure if this is sufficient):
sudo rm -f /usr/lib/libpthread.so
sudo yum reinstall glibc-devel
Afterwards [url=https://root-forum.cern.ch/t/install-issue-symbol-missing/11179/29 the contents of the “/usr/lib/libpthread.so”[/url].

Indeed, something went screwed. Suggested solution helped. Thanks

Could you, please, investigate where this “/usr/lib/libthr.so” came from.
Well, it might be a useful information for another people.
Maybe simple “ls -al /usr/lib/libthr.so” would give you a hint.

It says:

[fclopez@localhost ~]$ ls -al /usr/lib/libthr.so
lrwxrwxrwx 1 root root 16 Sep 18 22:14 /usr/lib/libthr.so ->  /lib/libthr.so.3

but /lib/libthr.so.3 does not exists :question: … beats me… screwed indeed

[fclopez@localhost lib]$ ls /lib/libthr.so.3
ls: /lib/libthr.so.3: No such file or directory

This looks like a “FreeBSD” stuff … looking at the dates of symbolic links … someone screwed it on “Sep 18 22:14”.

I think you should try something like:
sudo yum verify-all
or at least:
sudo yum verify glibc-devel
(You might need to install the “yum-plugin-verify” first.)

[root@localhost packages]# yum verify glibc-devel
Loaded plugins: kernel-module, verify
verify done

and tons more problems apparently. I attach here some…

==================== Installed Packages ====================
AdobeReader_enu.i486 : Adobe Reader, an application to easily view, print and collaborate on PDF files.
    File: /etc/bash_completion.d/acroread.sh
    Tags: ghost
        Problem:  file type does not match
        Current:  symlink
        Original: file
    File: /usr/bin/acroread
    Tags: ghost
        Problem:  file type does not match
        Current:  symlink
        Original: file
    File: /usr/share/man/man1/acroread.1.gz
    Tags: documentation, ghost
        Problem:  file type does not match
        Current:  symlink
        Original: file

OpenIPMI.i386 : OpenIPMI (Intelligent Platform Management Interface) library and tools
    File: /usr/bin/openipmish
        Problem:  checksum does not match
        Current:  d41d8cd98f00b204e9800998ecf8427e
        Original: 26feb4e219d7bdd24c267caeec59d030
                                   --------                                   
        Problem:  size does not match
        Current:  138 k
        Original: 131 k

 //etcetera

Either you find the one who screwed your system and (s)he tells you what (s)he did (and then you check some “suspicious” packages only) … or … I’m afraid you need to go through all these tons of messages and decide what is “normal” and what is not. :mrgreen:
Yes, I did expect that “heavy load” from “verify-all”. :wink:

Indeed! :imp: :smiling_imp: :angry: :laughing: