Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#10539 - Qgis does not start.

Attached to Project: Community Packages
Opened by Alexander Kaltsas (firewalker) - Friday, 30 May 2008, 11:08 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 03 June 2008, 14:27 GMT
Task Type Bug Report
Category
Status Closed
Assigned To dtw (dibblethewrecker)
Andrea Scarpino (BaSh)
Architecture All
Severity High
Priority Normal
Reported Version 1.5.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I installed it but I had the following error:

qgis: error while loading shared libraries: libgeos.so.2: cannot open shared object file: No such file or directory

I solved it with the command:

ln -s /usr/lib/libgeos.so /usr/lib/libgeos.so.2

But now I have this error:

qgis: symbol lookup error: /opt/qgis/lib/libqgis_core.so: undefined symbol: _ZTIN4geos12MultiPolygonE
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 03 June 2008, 14:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed by me
Comment by Alexander Kaltsas (firewalker) - Friday, 30 May 2008, 14:59 GMT
I rebuilded the package. i changed

--with-qtdir=/opt/qt4

with

--with-qtdir=/usr/

And it worked. The official Qt4 packet from extra is installed to /usr and not to /opt/qt4
Comment by Eric Belanger (Snowman) - Sunday, 01 June 2008, 20:23 GMT
You're not supposed to symlink libraries like that. Rebuilding the package is the proper way to fix this kind of error (as you eventually found out).

Andrea: You were the last one to modify the package. Can you rebuild it?

Thanks
Comment by Andrea Scarpino (BaSh) - Monday, 02 June 2008, 10:58 GMT
I rebuilt qgis but it require libgeos.so.2 yet. I don't know because qgis require libgeos.so.2.
I added libgeos.so.2 (as libgeos.so symlink) in geos package.
I think this is fixed now.
Comment by Eric Belanger (Snowman) - Monday, 02 June 2008, 16:59 GMT
Yes, I don'know know why but rebuilding qgis doesn't fix it. So adding the symlinks to geos is the best way I can think of to fix it.
But why do you use an .install file to add the symlink? You can do that in the PKGBUILD build function.
Comment by Andrea Scarpino (BaSh) - Monday, 02 June 2008, 19:04 GMT
because I don't know how I can do the symlink if the libgeos.so don't exist
Comment by Eric Belanger (Snowman) - Monday, 02 June 2008, 19:31 GMT
use:
ln -s /usr/lib/libgeos.so $startdir/pkg/usr/lib/libgeos.so.2
at the end of the PKGBUILd build function. I can't see why it wouldn't work.

When you'll do the change, add a comment in the AUR page telling that users will have to force the installation of the new geos package if they had installed geos 3.0.0-2 (because of file conflict created by symlink).
Comment by Eric Belanger (Snowman) - Monday, 02 June 2008, 19:31 GMT
And thanks for your work on dtw's packages.
Comment by Andrea Scarpino (BaSh) - Monday, 02 June 2008, 19:41 GMT
Yes, I know this but I can do this only if /usr/lib/libgeos.so exist...I thought I can't do this
Anyway I don't know if this is a good solution, but ok...if you said me this is ;)
thanks
Comment by Eric Belanger (Snowman) - Monday, 02 June 2008, 20:31 GMT
I haven't looked into it in details but it seems that geos 3.0.0 had a library soname bump (see comment http://aur.archlinux.org/packages.php?ID=8944 ) and that for some reason qgis tries to link to the old library. I don't know how that could happen. Maybe the old geos is included in qgis' source tarball.

Loading...