Mailinglist Archive: opensuse-amd64 (449 mails)

< Previous Next >
Re: [suse-amd64] 64-bit libs and 32-bit libs
  • From: Sid Boyce <sboyce@xxxxxxxxxxxxxxxx>
  • Date: Mon, 11 Oct 2004 00:56:43 +0000 (UTC)
  • Message-id: <4169D97D.9030003@xxxxxxxxxxxxxxxx>
Matt T. wrote:
On Sunday 10 October 2004 12:02, Sid Boyce wrote:

Andreas Jaeger wrote:

Sid Boyce <sboyce@xxxxxxxxxxxxxxxx> writes:

[...]
The only problem with 9.1, some apps won't build, the specific problem
is that it looks in 64-bit libraries for shared and in 32-bit for static
libs, hope that's fixed in 9.2.

That's a bug in the apps, there's nothing we can do about this. Feel
free to share a simple example here on the list and let's discuss
that.

I've tried various configure options and this is the one that works for
apps that successfully built on both kde-3.2 and 3.3.
./configure --prefix=/opt/kde3 --with-qtdir=/usr/lib64/qt3
--with-qt-libraries=/usr/lib64/qt3/lib64 --with-extra-libs=/usr/lib64
--enable-libsuffix=64



Having the same problem, I looked into the makefile for some apps, and there it does indeed try to link to the libs in /usr/lib instead of /usr/lib64

I did just hack the makefile, and it works then, but the --enable-libsuffix=64 and / or --with-extra-libs=/usr/lib64 might do the same trick.

Now I do not know enough of autoconf / configure & Co, but I would look for the problem there. The makefile is created by configure, and configure by autoconf, so somewhere there the system does not recognize that it should link to the libs in /usr/lib64 and writes the makefile using /usr/lib instead.

Therefore, Andreas, I'm not so sure if it can be blamed on the apps. It might be the autoconf / configure part of compiling the apps, and there I think you could so something, couldn't you?

Regards,
Matt

Seems that autoconf/configure don't do a thorough job. I changed any instance of lib to lib64 in configure,libtool, then in Makefiles I hardcoded paths as errors occurred (kmymoney2 and kmymoney2/html only I think) and finally it built, checkinstall, rpm -Uvh kmymoney2-0.6-1.x86_64.rpm and it all works.
--- configure 2004-06-06 18:13:46.000000000 +0100
+++ ../../kmymoney2-0.6/configure 2004-10-11 00:09:58.959572194 +0100
@@ -345,7 +345,7 @@
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
-libdir='${exec_prefix}/lib'
+libdir='${exec_prefix}/lib64'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'

--- libtool 2004-10-11 01:32:14.798681943 +0100
+++ ../../kmymoney2-0.6/libtool 2004-10-11 00:27:58.010227660 +0100
@@ -297,10 +297,10 @@
link_all_deplibs=unknown

# Compile-time system search path for libraries
-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"

# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
+sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"

# Fix the shell variable $srcfile for the compiler.
fix_srcfile_path=""
@@ -2023,7 +2023,7 @@
name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
# Search the libtool library
- lib="$searchdir/lib${name}.la"
+ lib="/usr/lib64/lib${name}.la"
if test -f "$lib"; then
found=yes
break

--- kmymoney2/Makefile 2004-10-11 01:32:29.557406435 +0100
+++ ../../kmymoney2-0.6/kmymoney2/Makefile 2004-10-11 00:35:59.676030103 +0100
@@ -119,15 +119,15 @@

DISTFILES= $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)

-ACLOCAL = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run aclocal-1.8
+ACLOCAL = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run aclocal-1.8
AMDEP_FALSE = #
AMDEP_TRUE =
-AMTAR = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run tar
+AMTAR = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run tar
ARTSCCONFIG = /opt/kde3/bin/artsc-config
-AUTOCONF = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run autoconf
+AUTOCONF = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run autoconf
AUTODIRS =
-AUTOHEADER = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run autoheader
-AUTOMAKE = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run automake-1.8
+AUTOHEADER = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run autoheader
+AUTOMAKE = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run automake-1.8
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
@@ -211,7 +211,7 @@
LIB_XEXT = -lXext
LN_S = ln -s
LTLIBOBJS =
-MAKEINFO = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run makeinfo
+MAKEINFO = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run makeinfo
MCOPIDL = /opt/kde3/bin/mcopidl
MEINPROC = /opt/kde3/bin/meinproc
MOC = /usr/lib/qt3/bin/moc
@@ -259,7 +259,7 @@
ac_ct_RANLIB = ranlib
ac_ct_STRIP = strip
all_includes = -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include
-all_libraries = -L/usr/X11R6/lib64 -L/usr/lib64/qt3/lib64 -L/opt/kde3/lib -L/usr/lib64
+all_libraries = -L/usr/X11R6/lib64 -L/usr/lib64/qt3/lib64 -L/opt/kde3/lib64 -L/usr/lib64
am__fastdepCC_FALSE = #
am__fastdepCC_TRUE =
am__fastdepCXX_FALSE = #
@@ -282,7 +282,7 @@
host_vendor = unknown
includedir = ${prefix}/include
infodir = ${prefix}/info
-install_sh = /ftp/oct04/XXX/kmymoney2-0.6/admin/install-sh
+install_sh = /ftp/oct04/kmymoney2-0.6/admin/install-sh
kde_appsdir = ${prefix}/share/applnk
kde_bindir = ${exec_prefix}/bin
kde_confdir = ${prefix}/share/config
@@ -290,7 +290,7 @@
kde_htmldir = ${prefix}/share/doc/HTML
kde_icondir = ${prefix}/share/icons
kde_includes = /opt/kde3/include
-kde_libraries = /opt/kde3/lib
+kde_libraries = /opt/kde3/lib64
kde_libs_htmldir = /opt/kde3/share/doc/HTML
kde_libs_prefix = /opt/kde3
kde_locale = ${prefix}/share/locale
@@ -304,7 +304,7 @@
kde_templatesdir = ${prefix}/share/templates
kde_wallpaperdir = ${prefix}/share/wallpapers
kde_widgetdir = ${exec_prefix}/lib/kde3/plugins/designer
-libdir = ${exec_prefix}/lib
+libdir = ${exec_prefix}/lib64
libexecdir = ${exec_prefix}/libexec
localstatedir = ${prefix}/var
mandir = ${prefix}/man


--- kmymoney2/html/Makefile 2004-10-11 01:32:29.590405792 +0100
+++ ../../kmymoney2-0.6/kmymoney2/html/Makefile 2004-10-11 00:33:26.000000000 +0100
@@ -58,15 +58,15 @@

DISTFILES= $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)

-ACLOCAL = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run aclocal-1.8
+ACLOCAL = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run aclocal-1.8
AMDEP_FALSE = #
AMDEP_TRUE =
-AMTAR = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run tar
+AMTAR = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run tar
ARTSCCONFIG = /opt/kde3/bin/artsc-config
-AUTOCONF = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run autoconf
+AUTOCONF = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run autoconf
AUTODIRS =
-AUTOHEADER = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run autoheader
-AUTOMAKE = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run automake-1.8
+AUTOHEADER = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run autoheader
+AUTOMAKE = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run automake-1.8
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
@@ -103,7 +103,7 @@
KDE_CXXFLAGS =
KDE_EXTRA_RPATH = -R /usr/lib64
KDE_INCLUDES = -I/opt/kde3/include
-KDE_LDFLAGS = -L/opt/kde3/lib
+KDE_LDFLAGS = -L/opt/kde3/lib64
KDE_MT_LDFLAGS =
KDE_MT_LIBS = -lpthread
KDE_PLUGIN = -avoid-version -module -no-undefined $(KDE_RPATH) $(KDE_MT_LDFLAGS)
@@ -150,7 +150,7 @@
LIB_XEXT = -lXext
LN_S = ln -s
LTLIBOBJS =
-MAKEINFO = ${SHELL} /ftp/oct04/XXX/kmymoney2-0.6/admin/missing --run makeinfo
+MAKEINFO = ${SHELL} /ftp/oct04/kmymoney2-0.6/admin/missing --run makeinfo
MCOPIDL = /opt/kde3/bin/mcopidl
MEINPROC = /opt/kde3/bin/meinproc
MOC = /usr/lib/qt3/bin/moc
@@ -198,7 +198,7 @@
ac_ct_RANLIB = ranlib
ac_ct_STRIP = strip
all_includes = -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include
-all_libraries = -L/usr/X11R6/lib64 -L/usr/lib64/qt3/lib64 -L/opt/kde3/lib -L/usr/lib64
+all_libraries = -L/usr/X11R6/lib64 -L/usr/lib64/qt3/lib64 -L/opt/kde3/lib64 -L/usr/lib64
am__fastdepCC_FALSE = #
am__fastdepCC_TRUE =
am__fastdepCXX_FALSE = #
@@ -221,7 +221,7 @@
host_vendor = unknown
includedir = ${prefix}/include
infodir = ${prefix}/info
-install_sh = /ftp/oct04/XXX/kmymoney2-0.6/admin/install-sh
+install_sh = /ftp/oct04/kmymoney2-0.6/admin/install-sh
kde_appsdir = ${prefix}/share/applnk
kde_bindir = ${exec_prefix}/bin
kde_confdir = ${prefix}/share/config
@@ -229,7 +229,7 @@
kde_htmldir = ${prefix}/share/doc/HTML
kde_icondir = ${prefix}/share/icons
kde_includes = /opt/kde3/include
-kde_libraries = /opt/kde3/lib
+kde_libraries = /opt/kde3/lib64
kde_libs_htmldir = /opt/kde3/share/doc/HTML
kde_libs_prefix = /opt/kde3
kde_locale = ${prefix}/share/locale
@@ -243,7 +243,7 @@
kde_templatesdir = ${prefix}/share/templates
kde_wallpaperdir = ${prefix}/share/wallpapers
kde_widgetdir = ${exec_prefix}/lib/kde3/plugins/designer
-libdir = ${exec_prefix}/lib
+libdir = ${exec_prefix}/lib64
libexecdir = ${exec_prefix}/libexec
localstatedir = ${prefix}/var
mandir = ${prefix}/man

Apologies for the long post, there's stuff I could trim, it's 01:52 BST.
Regards
Sid.

--
Sid Boyce .... Hamradio G3VBV and keen Flyer
=====LINUX ONLY USED HERE=====

< Previous Next >