Opened 18 years ago

Last modified 18 years ago

#1152 closed defect (worksforme)

libtool install error on Fedora 4 with python module

Reported by: niles@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

gdal-1.3.1, gcc 4.0.2, Fedora Core 4 Linux

Building an RPM from the current SPEC file.

It gets all the way to about the last step of installation and gets this obscure
error message:

libtool: install: error: cannot install `_gdalmodule.la' to a directory not
ending in /usr/lib64/python2.4/site-packages

Maybe this is related to the fact the rpmbuild tries to install things in a
temporary place like "/var/tmp/gdal-1.3.1-root/" and the libtool script doesn't
like that.  It could be as simple as the parent directories not getting created,
since it's "lib64" instead of "lib"

Anyway, building RPMs seems important enough to fix whatever is the issue.

Change History (5)

comment:1 by niles@…, 18 years ago

This bug was due the missing sub-directory created by the SPEC file.  However, I
still can't get it to install correctly, because it complains it must be
relinked.  When it tries to re-link it fails to find "-lgdal".  This may all be
fixable in the SPEC file, I probably haven't spend enough time trying to get it
work.

comment:2 by warmerdam, 18 years ago

Rick,

Sorry, I'm not sure why this is happening. 

Are you using the "Next Generation" Python bindings or the old ones? 
Hey

comment:3 by niles@…, 18 years ago

I'm wimping out and changing the configure option to "--without-python".  It
built just fine after that.  If you'd like me to pursue this further, I can do
that, just let me know.  I think anyone with a x86_64 machine can try to build
the RPM to see the issue. 

 I would recommend making the RPM SPEC file part of the base distribution if it
isn't already.  This package is complex enough that any changes to the
build/install system need to be reflected in the SPEC file and not left for a
third party to fix.

 I would also strongly recommend working on getting GDAL officially added to the
Fedora Extras repository.  It makes it REALLY easy for people to install gdal
with one command "yum install gdal" and not have to deal with any of these
headaches on a case-by-case basis.  If you need a someone to be responsible, I'm
happy to do it, but obviously you already have people building RPMs for you and
they should have the first right of refusal.

comment:4 by niles@…, 18 years ago

To answer your question about which Python binding I'm using....

I'm not using any...I don't use Python. :)


comment:5 by warmerdam, 18 years ago

Rick,

OK, lets just drop this for the time being then. 
Note: See TracTickets for help on using tickets.