How to cope with a missing ".la" file?

Asked by Uqbar

The compilation of a package complains that libhal.la file is missing.
I see that most of the libraries have a text file whose name ends with ".la". But my libhal.* library is missing it.
I see from the otehr .la files that they have been created by an "ltmain.sh" script.
My idea is to download and recompile the libhal in order to have that file created.
Is there any alternative way to create a ".la" files?
Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu hal Edit question
Assignee:
No assignee Edit question
Solved by:
Cesare Tirabassi
Solved:
Last query:
Last reply:
Revision history for this message
Cesare Tirabassi (norsetto) said :
#1

libhal.la is included in the package libhal-dev.
In ubuntu we generally have two distinct library packages: those for the users and those for the developers.
For compilying your own programs you need the second type too.

Revision history for this message
Uqbar (uqbar) said :
#2

At least for Feisty this seems not to be the case: the .la file is missing.
I suppose I need to file a bug for this, right?

Grazie.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#3

I have downloaded and checked the content of the libhal-dev package (feisty). Here is the result:

drwxr-xr-x root/root 0 2007-03-30 20:23 ./
drwxr-xr-x root/root 0 2007-03-30 20:23 ./usr/
drwxr-xr-x root/root 0 2007-03-30 20:23 ./usr/share/
drwxr-xr-x root/root 0 2007-03-30 20:23 ./usr/share/doc/
drwxr-xr-x root/root 0 2007-03-30 20:23 ./usr/share/doc/libhal-dev/
-rw-r--r-- root/root 135 2007-03-30 20:22 ./usr/share/doc/libhal-dev/README
-rw-r--r-- root/root 131 2006-09-19 22:23 ./usr/share/doc/libhal-dev/AUTHORS
-rw-r--r-- root/root 12024 2007-03-30 20:22 ./usr/share/doc/libhal-dev/copyright
-rw-r--r-- root/root 218571 2006-09-19 22:49 ./usr/share/doc/libhal-dev/changelog.gz
-rw-r--r-- root/root 16740 2006-09-19 22:44 ./usr/share/doc/libhal-dev/NEWS.gz
-rw-r--r-- root/root 29074 2007-03-30 20:22 ./usr/share/doc/libhal-dev/changelog.Debian.gz
drwxr-xr-x root/root 0 2007-03-30 20:23 ./usr/include/
drwxr-xr-x root/root 0 2007-03-30 20:23 ./usr/include/hal/
-rw-r--r-- root/root 20118 2007-03-30 20:23 ./usr/include/hal/libhal.h
drwxr-xr-x root/root 0 2007-03-30 20:23 ./usr/lib/
drwxr-xr-x root/root 0 2007-03-30 20:23 ./usr/lib/pkgconfig/
-rw-r--r-- root/root 307 2007-03-30 20:23 ./usr/lib/pkgconfig/hal.pc
-rw-r--r-- root/root 788 2007-03-30 20:23 ./usr/lib/libhal.la
-rw-r--r-- root/root 66352 2007-03-30 20:23 ./usr/lib/libhal.a
lrwxrwxrwx root/root 0 2007-03-30 20:23 ./usr/lib/libhal.so -> libhal.so.1.0.0

So, what is it you are doing/missing!?

Revision history for this message
Uqbar (uqbar) said :
#4

What I have here is different. Also the size of the .a file differs.
My package is marked as: feisty-backports/main libhal-dev 0.5.9-1ubuntu2~feisty1
As far as I remember I've not requested its installation so, I suppose, this should come from the original CD installation or a subsequent upgrade.
Any hint?

Revision history for this message
Uqbar (uqbar) said :
#5

I've also switched from the Italian repository to the main one. Nothing changes.
In any case I have no way to install libhal-1.0 with the standard repositories.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#6

Do you need 0.5.9-1?
If not just force the install of 0.5.8-1.
If yes than you need to generate the libtool library file using the libtool package.
The package also includes man pages and the necessary script (ltmain.sh).
In addition the package libtool-doc contains examples and supporting documentation.

If you so wish, you can issue a bug report about library tool files not included with the latest releases.

Revision history for this message
Uqbar (uqbar) said :
#7

I don't need any specific version: 0.5.9 is the version I've found on my system after CD installation.
I've installed Feisty (Kubuntu) and have always used the KDE Adept interface for upgrades.
So I don't actually understand your suggestions! Sorry (I'm a newbie with Debian/Ubuntu).
How is it possible you have 1.0 as the default version and my apt database says it'd be 0.5.9?
Thanks again.

Revision history for this message
Best Cesare Tirabassi (norsetto) said :
#8

You have to see it as version 1 build 0.5.9 (and the package version will be 0.5.9 of libhal1).

Revision history for this message
Uqbar (uqbar) said :
#9

Thanks Cesare Tirabassi, that solved my question.

Revision history for this message
Uqbar (uqbar) said :
#10

I needed to work on the hint as I'm a newbie and I had to guess thngs that were not so clear in the hint.
I had to download the packages for both libhal1 and libhal-dev v0.5.8-1,
I had to figure out that dpkg and not Adept is the tool for installing packages from files.
In any case now it works.
Thanks a lot,