LinuxQuestions.org
Visit Jeremy's Blog.
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 08-25-2004, 03:56 PM   #1
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
libtools question


My question: How do you change the location that libtool searches for a library?

Please read below for details...

I am using LFS, but I am not a programmer. Recently I installed libX11 onto my system in order to get another program that I wanted to correctly compile. I have the habit of installing with a prefix like --prefix=/my/home/dir/filename so that I can see what will get installed onto my system. Then I delete /my/home/dir/filename, change prefix to --prefix=/usr and go from there.

I am trying to compile gnome-libs 1.4.2. During the compile process I get the following error:

grep: /home/mrguy/lib/libX11.la: No such file or directory
sed: can't read /home/mrguy/lib/libX11.la: No such file or directory
libtool: link: `/home/mrguy/lib/libX11.la' is not a valid libtool archive
make[3]: *** [libgnomeui.la] Error 1
make[3]: Leaving directory `/sources/mybeyond/gnome-libs-1.4.2/libgnomeui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/mybeyond/gnome-libs-1.4.2/libgnomeui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/mybeyond/gnome-libs-1.4.2'
make: *** [all-recursive-am] Error 2

As you can see this is were I first installed the libX11 package when I did my initial "test" install. The actual libX11.la is located in /usr/lib. Now I tried editing the libX11.la file's last entry (/usr/lib/libX11.la) from the original, which had libdir='/home/mrguy/lib' to

# Directory that this library needs to be installed in:
libdir='/usr/lib'

but I still get the same compile error.

I did the "easy" workaround. I made a symlink so that the compile could continue. It did without a problem.

So again how do I reconfigure where libtool looks for a library?
 
Old 08-26-2004, 08:36 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i think you are going to have to edit the rest of that .la script
and any other .la scripts realated to the same library
fix all the dependancy paths and everything

or just delete the bogus install of X11 libs and do it again

and from now on if you are going to make a pre-install
(all the files are not usually installed in --prefix dir by the way -- cofig files and whatnot lots of time go in standard places)
make sure you at least delete the entire build package and
start new with a fresh copy of the package from the gzip
before the second ./configure

or better just don't do that anymore !

Last edited by foo_bar_foo; 08-26-2004 at 08:43 PM.
 
  


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
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 04:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
Libtools Kroenecker Linux From Scratch 0 08-25-2004 06:39 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 02:02 PM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM

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

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