[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tries to link to 32-bit libs on 64-bit build

From: Paul Raines
Subject: Re: tries to link to 32-bit libs on 64-bit build
Date: Tue, 6 Feb 2007 10:52:04 -0500 (EST)

I took a guess and got the RPM to build by putting in a

  export LDFLAGS=-L/usr/lib64

before the configure line in the RPM spec file.  That seems to have worked
as it got a -L/usr/lib64 into the below.  But I still don't understand
why libtool would need such direction as it should be able to tell it
is building on a 64bit box and there are no explict cross complitation
flags.   Anyway, I am building on RHEL4 with the latest libtool-1.5.6-4.EL4.1
and in general like to stick with the official RPMS

RHEL4 does not have libgnomedb so that RPM comes from Fedora Core 4 Extras

On Wed, 7 Feb 2007, Peter O'Gorman wrote:

On Feb 6, 2007, at 11:38 PM, Paul Raines wrote:

I am trying to build libgnomedb from RPM on a 64-bit box. It dies as follows:

/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -g -pipe -m64 -o libgnomedb-2.la -rpath /usr/lib64 -version-info 4:0:0 db-shell.lo sql-viewer.lo table-properties-dialog.lo tables-page.lo utils.lo gnome-db-combo.lo gnome-db-connection-properties.lo gnome-db- connection-selector.lo gnome-db-dsn-config.lo gnome-db-error.lo gnome-db-error-dialog.lo gnome-db-form.lo gnome-db-gray-bar.lo gnome-db-grid.lo gnome-db-find-dialog.lo gnome-db-init.lo gnome-db-list.lo gnome-db-model.lo gnome-db-provider-selector.lo gnome-db-query-builder.lo gnome-db-report-editor.lo gnome-db-stock.lo gnome-db-table-editor.lo gnome-db-util.lo gnome-db-browser.lo gnome-db-browser-procedures.lo gnome-db-browser-tables.lo gnome-db-browser-types.lo gnome-db-browser-views.lo gnome-db-config.lo gnome-db-control.lo gnome-db-control-widget.lo gnome-db-data-source-selector.lo gnome-db-dsn-config-druid.lo gnome-db-editor.lo gnome-db-icon-list.lo gnome-db-login.lo gnome-db-login-dialog.lo gnome-db-window.lo -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgda-2 -lglib-2.0 -lxslt -lxml2 -lpthread -lz -lm -Wl,--export-dynamic -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -Wl,--export-dynamic -pthread -L/usr/X11R6/lib64 -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lxml2 -lpthread -lz -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation -lORBit-2 -lm -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 gcc -shared .libs/db-shell.o .libs/sql-viewer.o .libs/table- properties-dialog.o .libs/tables-page.o .libs/utils.o .libs/gnome- db-combo.o .libs/gnome-db-connection-properties.o .libs/gnome-db- connection-selector.o .libs/gnome-db-dsn-config.o .libs/gnome-db-error.o .libs/gnome-db-error-dialog.o .libs/gnome-db-form.o .libs/ gnome-db-gray-bar.o .libs/gnome-db-grid.o .libs/gnome-db-find-dialog.o .libs/gnome-db-init.o .libs/gnome-db-list.o .libs/gnome-db-model.o .libs/gnome-db-provider-selector.o .libs/gnome-db-query-builder.o .libs/gnome-db-report-editor.o .libs/gnome-db-stock.o .libs/gnome-db-table-editor.o .libs/gnome-db-util.o .libs/ gnome-db-browser.o .libs/gnome-db-browser-procedures.o .libs/gnome- db-browser-tables.o .libs/gnome-db-browser-types.o .libs/gnome-db- browser-views.o .libs/gnome-db-config.o .libs/gnome-db-control.o .libs/gnome-db-control-widget.o .libs/gnome-db-data-source-selector.o .libs/gnome-db-dsn-config-druid.o .libs/gnome-db-editor.o .libs/gnome-db-icon-list.o .libs/gnome-db-login.o .libs/ gnome-db-login-dialog.o .libs/gnome-db-window.o -lgda-2 -lxslt -lglade-2.0 -pthread -L/usr/X11R6/lib64 -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lxml2 -lpthread -lz -lgnomecanvas-2 -lgnome-2 /usr/lib/libpopt.so -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation -lORBit-2 -lm -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -m64 -Wl,--export-dynamic -Wl,--export-dynamic -Wl,--export-dynamic -Wl,-soname -Wl,libgnomedb-2.so.4 -o .libs/libgnomedb-2.so.4.0.0
/usr/lib/libpopt.so: could not read symbols: File in wrong format

Why despite the fact that there is -rpath /usr/lib64 there and there is
a perfectly valid /usr/lib64/libpopt.o is libtool resolving to use

Please reconfirm this bug using a snapshot of libtool, see http:// www.gnu.org/software/libtool for a link to the snapshots. You will have to relibtoolize the source to test. You should also probably complain to whoever provided you with the rpm.


Paul Raines                email: raines at nmr.mgh.harvard.edu
MGH/MIT/HMS Athinoula A. Martinos Center for Biomedical Imaging
149 (2301) 13th Street     Charlestown, MA 02129            USA

reply via email to

[Prev in Thread] Current Thread [Next in Thread]