Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397507 - sci-libs/gdal: undefined reference to `ompi_mpi_cxx_op_intercept'
Summary: sci-libs/gdal: undefined reference to `ompi_mpi_cxx_op_intercept'
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords: PATCH
: 417603 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-03 16:09 UTC by John (EBo) David
Modified: 2013-06-25 02:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for configure.in to resolve missing references found in mpi_cxx library (mpi.patch,284 bytes, text/plain)
2012-01-03 16:09 UTC, John (EBo) David
Details
emerge --info output (emerge.info,5.33 KB, text/plain)
2012-01-03 16:10 UTC, John (EBo) David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John (EBo) David 2012-01-03 16:09:13 UTC
Created attachment 297797 [details]
patch for configure.in to resolve missing references found in mpi_cxx library

Ebuilds for both 1.6.3-r1 and 1.8.1-r1 fail with the following error messages:

var/tmp/portage/sci-libs/gdal-1.8.1-r1/work/gdal-1.8.1/libgdal.so: undefined reference to `ompi_mpi_cxx_op_intercept'
/var/tmp/portage/sci-libs/gdal-1.8.1-r1/work/gdal-1.8.1/libgdal.so: undefined reference to `MPI::Datatype::Free()'
/var/tmp/portage/sci-libs/gdal-1.8.1-r1/work/gdal-1.8.1/libgdal.so: undefined reference to `MPI::Comm::Comm()'
/var/tmp/portage/sci-libs/gdal-1.8.1-r1/work/gdal-1.8.1/libgdal.so: undefined reference to `MPI::Win::Free()'

A quick search provided the following troubleshooting reference:

http://www.cs.utah.edu/formal_verification/GEM/help/troubleshooting.html

A quick hack to atoconfig adding 'LPIB="-lmpi_cxx $LIBS"' to the end of autoconfig.in solved the problem (see attached mpi.patch)

It is likely that this is not a full and proper fix, as we should probably track down if MPI is a required package or optional, or if it a problem with the IUSE="cxx".  In either case, the MPI C++ library references are missing.

Hope that helps...
Comment 1 John (EBo) David 2012-01-03 16:10:27 UTC
Created attachment 297799 [details]
emerge --info output
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2012-05-24 19:12:29 UTC
With what useflags did you compile the gdal please.
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2012-05-26 10:14:59 UTC
*** Bug 417603 has been marked as a duplicate of this bug. ***
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2012-05-26 10:27:37 UTC
You guys need to find out which package pull in the mpi and then fix its pkgconfig, becuase it should provide the -lmpi_cxx. The gdal itself do ot require these symbols at all, as they are not used anywhere in its source.

Also interesting would be try to alter the configure phase and change --without-libtool to --with-libtool, maybe they fixed it and it should solve this problem too.
Comment 5 John (EBo) David 2012-05-28 04:36:49 UTC
(In reply to comment #4)
> You guys need to find out which package pull in the mpi and then fix its
> pkgconfig, becuase it should provide the -lmpi_cxx. The gdal itself do ot
> require these symbols at all, as they are not used anywhere in its source.
> 
> Also interesting would be try to alter the configure phase and change
> --without-libtool to --with-libtool, maybe they fixed it and it should solve
> this problem too.

I was hoping to get to this, but things are piling up at work and I realistically will not get back to this for months.  Can anyone else follow up on this?
Comment 6 John (EBo) David 2012-05-28 04:38:48 UTC
one thing that does come to mind though is if the mpi use flag is set then for now it would be appropriate to include the patch until it is fixed upstream.  This would keep things from breaking now, and allow us to work on fixing it correctly.
Comment 7 John (EBo) David 2012-10-19 17:03:25 UTC
I'm still hammered at work, but I just tested the latest ebuild <gdal-1.9.1>, and the problem still persists.  As a quick test I pulled in the old mpi patch from before and it works just fine.

I'm still not sure what is pulling in MPI.

  EBo --
Comment 8 Aaron W. Swenson gentoo-dev 2013-06-24 23:38:26 UTC
(In reply to John (EBo) David from comment #7)
> I'm still hammered at work, but I just tested the latest ebuild
> <gdal-1.9.1>, and the problem still persists.  As a quick test I pulled in
> the old mpi patch from before and it works just fine.
> 
> I'm still not sure what is pulling in MPI.
> 
>   EBo --

Does it persist in gdal-1.10.0-r1?
Comment 9 John (EBo) David 2013-06-25 02:44:36 UTC
(In reply to Aaron W. Swenson from comment #8)
> Does it persist in gdal-1.10.0-r1?

I just built gdal-1.10.0-r1 without incident, so I am updating the status to works for me -- or at least so far.

This was built but not fully tested on an amd64.  I will try the x86 later to verify.

As a note, I have been using a hacked 1.10.0 ebuild since May 15'th with good results.  

Thanks!