Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300672 - sci-visualization/hippodraw-1.21.3-r2 needs -lgomp
Summary: sci-visualization/hippodraw-1.21.3-r2 needs -lgomp
Status: RESOLVED DUPLICATE of bug 314095
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-12 08:38 UTC by Helmut Jarausch
Modified: 2010-05-31 19:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2010-01-12 08:38:12 UTC
Having sci-libs/minuit installed with openmp use-flag,
using gcc-4.4.2
emerging sci-visualization/hippodraw-1.21.3-r2 fails
since libgomp is missing.
The following modified patch hippodraw-1.21.3-minuit2.patch
solves the problem here, but with an older version of gcc or
sci-libs/minuit without the openmp use-flag this is not the right fix.

--- config/m4/pfkeb_have_minuit2.m4.orig	2008-07-15 18:39:21.000000000 +0100
+++ config/m4/pfkeb_have_minuit2.m4	2008-07-15 18:40:47.000000000 +0100
@@ -44,7 +44,7 @@
     [pfk_minuit2_include="/usr/local/include"])
 
   AC_ARG_WITH([minuit2-lib],
-    [  --with-minuit2-lib=DIR     Minuit2 libMinuit2Base.so file is in DIR 
+    [  --with-minuit2-lib=DIR     Minuit2 libMinuit2.so file is in DIR 
                                   (default:/usr/local/lib:/usr/lib)],
     [pfk_minuit2_lib=$with_minuit2_lib],
     [pfk_minuit2_lib="/usr/local/lib"])
@@ -54,9 +54,9 @@
   else
     MINUIT2_CXXFLAGS="-I$pfk_minuit2_include"
     if test x$enable_rpath = xno; then
-      MINUIT2_LDFLAGS="-L$pfk_minuit2_lib -lMinuit2Base"
+      MINUIT2_LDFLAGS="-L$pfk_minuit2_lib -lMinuit2 -lgomp"
     else
-      MINUIT2_LDFLAGS="-L$pfk_minuit2_lib -lMinuit2Base -R$pfk_minuit2_lib"
+      MINUIT2_LDFLAGS="-L$pfk_minuit2_lib -lMinuit2 -R$pfk_minuit2_lib -lgomp"
     fi
     AC_MSG_NOTICE([checking Minuit2 install with
       MINUIT2_CXXFLAGS=$MINUIT2_CXXFLAGS
@@ -65,18 +65,18 @@
     PFK_SHARED_SUFFIX
     no_good=no
     AC_CHECK_FILE($pfk_minuit2_include/Minuit2/FCNBase.h,, no_good=yes )
-    AC_CHECK_FILE($pfk_minuit2_lib/libMinuit2Base.$pfk_so,, no_good=yes )
+    AC_CHECK_FILE($pfk_minuit2_lib/libMinuit2.$pfk_so,, no_good=yes )
 
     if test x$no_good = xyes; then
     MINUIT2_CXXFLAGS="-I/usr/include"
-    MINUIT2_LDFLAGS="-L/usr/lib -lMinuit2Base"
+    MINUIT2_LDFLAGS="-L/usr/lib -lMinuit2 -lgomp"
       AC_MSG_NOTICE([checking Minuit2 install with
         MINUIT2_CXXFLAGS=$MINUIT2_CXXFLAGS
         MINUIT2_LDFLAGS=$MINUIT2_LDFLAGS])
 
       no_good=no
       AC_CHECK_FILE(/usr/include/Minuit2/FCNBase.h,, no_good=yes )
-      AC_CHECK_FILE(/usr/lib/libMinuit2Base.$pfk_so,, no_good=yes )
+      AC_CHECK_FILE(/usr/lib/libMinuit2.$pfk_so,, no_good=yes )
       if test x$no_good = xyes; then
         have_minuit2=no
       else





Reproducible: Always
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2010-01-12 20:53:04 UTC
It might need more work. Minuit has openmp use flag, and gomp is only for the g++ compiler. 
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-05-31 19:26:56 UTC
The problem lays with minuit not hippodraw. Minuit should not create libs with undefined symbols.
Resolving this a dupe of bug 314095, despite the fact this bug was reported earlier. 

*** This bug has been marked as a duplicate of bug 314095 ***