Package: coinor-libipopt-dev
Version: 3.8.3-2
Severity: normal

I have been using a hand-compiled libipopt with a C++ program
for a while.  The linear solver for ipopt was ma27 (fortran).  The
C++ program was purely sequential, hence there was no need
to mention or have MPI.

Now I want to build the same program with libipopt from the new
package (thanks for packaging, by the way!).  As the linker flags
I use
    -lipopt -llapack -lblas -lgfortran
which is what worked before.  (As ma27 is not used anymore I guess
the -lgfortran is obsolete.)  The program compiles and links,
however when running it I get
symbol lookup error: /usr/lib/libipopt.so.0: undefined symbol: MPI_Init
on the first call to libipopt, and the program aborts.

Trying to be smart, I add -lmpi to me list of linker flags.  Then I
get the run time error
[haile:4637] *** An error occurred in MPI_Comm_rank
[haile:4637] *** on communicator MPI_COMM_WORLD
[haile:4637] *** MPI_ERR_COMM: invalid communicator
[haile:4637] *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort)

Is this a bug or am I using the wrong flags?  How can I find out what
the correct linker flags are?  The ipopt manual mentions a file
ipopt_addlibs_cpp.txt with this information, but it is not contained
in the Debian package.

I guess the most elegant solution would be to use pkg-config.
Support for pkg-config seems to have entered the ipopt code
shortly after the 3.8.3 release.  Maybe it can be backported?

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages coinor-libipopt-dev depends on:
ii coinor-libipopt0 3.8.3-2 Interior-Point Optimizer, for larg

coinor-libipopt-dev recommends no packages.

coinor-libipopt-dev suggests no packages.

-- no debconf information




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to