Digikam from svn fails to compile because of absence of libXrender.la

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Digikam from svn fails to compile because of absence of libXrender.la

Fabrice Flore-Thebault
Hello,

Well, don't know where is the  best to tell about it :

I have no succes in my tentative to compile Digikam from svn on debian/ppc
(unstable+experimental).

As I understand it, the issue is related to libxrender and libtool :

----
Making all in jpegutils
make[4]: entrant dans le
répertoire « /srv/fab/svn-src/graphics/digikam/libs/jpegutils »
/bin/sh ../../../libtool --silent --tag=CXX --mode=link
g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o
libjpegutils.la  -L/usr/share/qt3/lib -L/usr/lib    -R /usr/lib -R /usr/lib -R /usr/share/qt3/lib -R /usr/lib
jpegmetadata.lo exifrotate.lo transupp.lo -ljpeg -lkexif
grep: /usr/lib/libXrender.la: No such file or directory
/bin/sed: can't read /usr/lib/libXrender.la: No such file or directory
libtool: link: `/usr/lib/libXrender.la' is not a valid libtool archive
make[4]: *** [libjpegutils.la] Erreur 1
----

The fact is that libxrender-dev (0.9.0.2-2) doesn't provide
any 'libXrender.la' file anymore :

/usr/share/doc/libxrender-dev/changelog.Debian.gz :
  * In accordance with all other X libraries, stop shipping Libtool .la file.

If the problem is known, is there a known solution ?

What is possible to do to go ahead without this .la file ?
 
--
Fabrice Flore-Thébault
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Digikam from svn fails to compile because of absence of libXrender.la

Gerhard Kulzer
On Wednesday 12 April 2006 19:46, Fabrice Flore-Thebault wrote:

> Hello,
>
> Well, don't know where is the  best to tell about it :
>
> I have no succes in my tentative to compile Digikam from svn on debian/ppc
> (unstable+experimental).
>
> As I understand it, the issue is related to libxrender and libtool :
>
> ----
> Making all in jpegutils
> make[4]: entrant dans le
> répertoire « /srv/fab/svn-src/graphics/digikam/libs/jpegutils »
> /bin/sh ../../../libtool --silent --tag=CXX --mode=link
> g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
> -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2
> -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
> -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE
> -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
> -DQT_CLEAN_NAMESPACE -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL
> -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libjpegutils.la
> -L/usr/share/qt3/lib -L/usr/lib    -R /usr/lib -R /usr/lib -R
> /usr/share/qt3/lib -R /usr/lib jpegmetadata.lo exifrotate.lo transupp.lo
> -ljpeg -lkexif
> grep: /usr/lib/libXrender.la: No such file or directory
> /bin/sed: can't read /usr/lib/libXrender.la: No such file or directory
> libtool: link: `/usr/lib/libXrender.la' is not a valid libtool archive
> make[4]: *** [libjpegutils.la] Erreur 1
> ----
>
> The fact is that libxrender-dev (0.9.0.2-2) doesn't provide
> any 'libXrender.la' file anymore :
>
> /usr/share/doc/libxrender-dev/changelog.Debian.gz :
>   * In accordance with all other X libraries, stop shipping Libtool .la
> file.
>
> If the problem is known, is there a known solution ?
>
> What is possible to do to go ahead without this .la file ?

I don't know the reasons for this disappearance, it seems to be motivated.
The easiest workaround is to copy the libXrender.la to /usr/lib from your
previous deb. Its a small file (842 B)

Gerhard

for your convenience if you don't have and obsolete deb, here is the content
of libXrender.la: I think it should work for ppc

# libXrender.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)
Debian: 215 $
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='libXrender.so.1'
# Names of this library.
library_names='libXrender.so.1.3.0 libXrender.so.1 libXrender.so'
# The name of the static archive.
old_library='libXrender.a'
# Libraries that this one depends upon.
dependency_libs=' -L/usr/X11R6/lib -lX11'
# Version information for libXrender.
current=4
age=3
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/usr/lib'

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Digikam from svn fails to compile because of absence of libXrender.la

Rex Dieter
In reply to this post by Fabrice Flore-Thebault
Fabrice Flore-Thebault wrote:

> Well, don't know where is the  best to tell about it :
...

> libjpegutils.la  -L/usr/share/qt3/lib -L/usr/lib    -R /usr/lib -R
> /usr/lib -R /usr/share/qt3/lib -R /usr/lib jpegmetadata.lo exifrotate.lo
> transupp.lo -ljpeg -lkexif grep: /usr/lib/libXrender.la: No such file or
> directory /bin/sed: can't read /usr/lib/libXrender.la: No such file or
> directory libtool: link: `/usr/lib/libXrender.la' is not a valid libtool
> archive make[4]: *** [libjpegutils.la] Erreur 1
> ----
>
> The fact is that libxrender-dev (0.9.0.2-2) doesn't provide
> any 'libXrender.la' file anymore :

Yep, on systems with proper shared library support, .la files associated
with shared libs "just suck".  ;-)  There's probably a .la file somewhere
on your system that still references the now-missing libXrender.la.
grep "libXrender.la" /usr/lib/*.la
will highlight the offender(s).  Easiest quick-n-dirty fix:  
sed -i -e 's|/usr/lib/libXrender.la||' /usr/lib/*.la

-- Rex

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Digikam from svn fails to compile because of absence of libXrender.la

Gerhard Kulzer
On Thursday 13 April 2006 17:40, Rex Dieter wrote:

> Fabrice Flore-Thebault wrote:
> > Well, don't know where is the  best to tell about it :
>
> ...
>
> > libjpegutils.la  -L/usr/share/qt3/lib -L/usr/lib    -R /usr/lib -R
> > /usr/lib -R /usr/share/qt3/lib -R /usr/lib jpegmetadata.lo exifrotate.lo
> > transupp.lo -ljpeg -lkexif grep: /usr/lib/libXrender.la: No such file or
> > directory /bin/sed: can't read /usr/lib/libXrender.la: No such file or
> > directory libtool: link: `/usr/lib/libXrender.la' is not a valid libtool
> > archive make[4]: *** [libjpegutils.la] Erreur 1
> > ----
> >
> > The fact is that libxrender-dev (0.9.0.2-2) doesn't provide
> > any 'libXrender.la' file anymore :
>
> Yep, on systems with proper shared library support, .la files associated
> with shared libs "just suck".  ;-)  There's probably a .la file somewhere
> on your system that still references the now-missing libXrender.la.
> grep "libXrender.la" /usr/lib/*.la
> will highlight the offender(s).  Easiest quick-n-dirty fix:
> sed -i -e 's|/usr/lib/libXrender.la||' /usr/lib/*.la

Well on my system there are just too many: Debian unstable, KDE 3.5.2
grep -c "libXrender.la" /usr/lib/*.la|wc
    241     241    6544

Gerhard
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Digikam from svn fails to compile because of absence of libXrender.la

Fabrice Flore-Thebault
Le Vendredi 14 Avril 2006 06:42, Gerhard Kulzer a écrit :

> On Thursday 13 April 2006 17:40, Rex Dieter wrote:
> > Fabrice Flore-Thebault wrote:
> > > Well, don't know where is the  best to tell about it :
> >
> > ...
> >
> > > libjpegutils.la  -L/usr/share/qt3/lib -L/usr/lib    -R /usr/lib -R
> > > /usr/lib -R /usr/share/qt3/lib -R /usr/lib jpegmetadata.lo
> > > exifrotate.lo transupp.lo -ljpeg -lkexif grep: /usr/lib/libXrender.la:
> > > No such file or directory /bin/sed: can't read /usr/lib/libXrender.la:
> > > No such file or directory libtool: link: `/usr/lib/libXrender.la' is
> > > not a valid libtool archive make[4]: *** [libjpegutils.la] Erreur 1
> > > ----
> > >
> > > The fact is that libxrender-dev (0.9.0.2-2) doesn't provide
> > > any 'libXrender.la' file anymore :
> >
> > Yep, on systems with proper shared library support, .la files associated
> > with shared libs "just suck".  ;-)  There's probably a .la file somewhere
> > on your system that still references the now-missing libXrender.la.
> > grep "libXrender.la" /usr/lib/*.la
> > will highlight the offender(s).  Easiest quick-n-dirty fix:
> > sed -i -e 's|/usr/lib/libXrender.la||' /usr/lib/*.la
>
> Well on my system there are just too many: Debian unstable, KDE 3.5.2
> grep -c "libXrender.la" /usr/lib/*.la|wc
>     241     241    6544

Well, exactly the same, and a lot of kde libraries are in the list.
I assume this is not a Digikam issue, but an issue with all of these
libraries, and the one clean way to fix the problem would be to rebuild all
these libraries against the new xorg libraries which don't provide .la files
anymore ? Or not ?

--
Fabrice Flore-Thébault
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users