LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-28-2011, 03:57 AM   #1
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
C++: ../x86_64-suse-linux/bin/ld: cannot find -lcmt


I was building a project which includes Qt and C++.

There were some errors related to the ogre package, which I resolved by following the instruction in the README file, now there is a new error:
Code:
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: cannot find -lcmt
I searched Google w.r.t -lcmt, couldn't find much.

Any ideas.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-28-2011, 05:38 AM   #2
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
What compelled you to search for "-lcmt"; how about trying "libcmt.so"?

Does SuSe offer a package manager that can be used to look up if there is a package for libcmt-devel, or something similarly named?
 
2 members found this post helpful.
Old 03-28-2011, 05:44 AM   #3
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Thanks for responding, DWhitney.
Quote:
Originally Posted by dwhitney67 View Post
What compelled you to search for "-lcmt"; how about trying "libcmt.so"?
My absent mindedness, it happens sometimes

Quote:
Originally Posted by dwhitney67 View Post
Does SuSe offer a package manager that can be used to look up if there is a package for libcmt-devel, or something similarly named?
There must be some other name for the package, since after you wrote an eye opener post, I tried this:
Code:
linux-uitj:/home/anisha # cnf libcmt-devel
libcmt-devel: command not found
But, let me search further for the exact name.
 
Old 03-28-2011, 06:00 AM   #4
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
I have searched Google now, the package name seems to be correct, but the suse repositories doesn't seem to recognize it.

There are random rpm's available, but let me report this to be moved to software section, it has nothing to do with programming. Let me see, if some one there knows about the rpm for suse.
 
Old 03-28-2011, 06:04 AM   #5
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
There may not be a 64-bit version.
 
Old 03-28-2011, 06:06 AM   #6
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
I couldn't locate even a 32 bit version, even putting libcmt doesn't result in anything from the suse repository search bar.
 
Old 03-28-2011, 06:10 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Hi Anisha.

I guess, you already know, that lcmt means libcmt.a or libcmt.so .
The available packages have libcmt.a, libcmt.so
wget http://apt.sw.be/redhat/el5/en/x86_6....rf.x86_64.rpm
wget http://apt.sw.be/redhat/el5/en/x86_6....rf.x86_64.rpm

Source package :
http://apt.sw.be/redhat/el5/en/source
wget http://apt.sw.be/redhat/el5/en/sourc...fc6.rf.src.rpm
cd libcmt-0.1.0/ && ./configure --prefix=/usr/ --libdir=/usr/lib64/
&& etc. etc.

..

Last edited by knudfl; 03-28-2011 at 08:09 AM.
 
1 members found this post helpful.
Old 03-28-2011, 06:14 AM   #8
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
You are the life saver, Knud.
Quote:
Originally Posted by knudfl View Post
I guess, you already know, that lcmt means libcmt.a or libcmt.so .
Sometimes I search Google with my mental eyes closed.

Those packages have a redhat in the link path, you used to say that random packages don't work, I'll try out those and see if they work,

A big thanks to you again.
 
Old 03-28-2011, 06:21 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"Random" packages don't work ...

When you investigate, what the package is, and what it provides,
and may be run 'ldd <binary>' : Then it's not really a "random" any more.

If you choose a package, that was built with later libraries ( glibc ),
than the version(s), you have, then it will probably not work.
..

Last edited by knudfl; 03-28-2011 at 06:25 AM.
 
Old 03-28-2011, 06:56 AM   #10
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
With your fourth link, I did:
Code:
sudo rpmbuild --rebuild libcmt-0.1.0-3.fc6.rf.src.rpm
It resulted in:
Code:
/usr/src/packages/BUILDROOT/libcmt-0.1.0-3.fc6.rf.x86_64/usr/lib/libcmt.a: should be in */lib64
error: Bad exit status from /var/tmp/rpm-tmp.u17avU (%install)


RPM build errors:
    InstallSourcePackage at: psm.c:232: Header V3 DSA signature: NOKEY, key ID 1aa78495
    Bad exit status from /var/tmp/rpm-tmp.u17avU (%install)
Does this mean I need to install .a file too? I don't want to messa round taking decisions on my own.
 
Old 03-28-2011, 08:21 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
My mistake : the file libcmt.so is in the package libcmt-0.1.0-3.el5.rf.x86_64.rpm.

( I have edited post # 7 ).

Then there is no reason to build the packages.
The errors : A typo in the file libcmt.spec, or caused by a different syntax.
( .spec files are usually not interchangeable between Suse / Fedora (RH) / Mandriva,
without edits. Usually you will be stopped at start.)


Setting up the recommended "unprivileged rpmbuild account" in /home/<user>/, #13
http://www.linuxquestions.org/questi...1-a-766486/#13

..
 
  


Reply



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
.../.../x86_64-suse-linux/bin/ld:pointerset.o:relocation R_X86_64_32S against '.rodat pradeepkoppaka SUSE / openSUSE 1 03-11-2011 02:01 PM
arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth feiyinziiu Programming 1 10-17-2009 11:03 PM
/arm-linux-uclibc/bin/ld: cannot find -lcrypto tosatishpatel Linux - Software 0 03-20-2006 11:53 PM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 10:42 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:59 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