Bug 237227 - math/ggobi: Fix undefined references
Summary: math/ggobi: Fix undefined references
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-12 18:37 UTC by Rainer Hurling
Modified: 2019-04-13 01:50 UTC (History)
1 user (show)

See Also:


Attachments
Patch to fix math/ggobi (1.03 KB, patch)
2019-04-12 18:37 UTC, Rainer Hurling
rhurlin: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Hurling 2019-04-12 18:37:31 UTC
Created attachment 203621 [details]
Patch to fix math/ggobi

Since some time now there are problems with math/ggobi, not able to build on amd64 and i386[1][2]. The build breaks with

ld: error: ./.libs/libggobi.so: undefined reference to pow
ld: error: ./.libs/libggobi.so: undefined reference to log
ld: error: ./.libs/libggobi.so: undefined reference to g_module_error
ld: error: ./.libs/libggobi.so: undefined reference to g_module_open
ld: error: ./.libs/libggobi.so: undefined reference to g_module_symbol
ld: error: ./.libs/libggobi.so: undefined reference to log10
ld: error: ./.libs/libggobi.so: undefined reference to acos
ld: error: ./.libs/libggobi.so: undefined reference to cos
ld: error: ./.libs/libggobi.so: undefined reference to sin
ld: error: ./.libs/libggobi.so: undefined reference to __isfinite
ld: error: ./.libs/libggobi.so: undefined reference to exp
ld: error: ./.libs/libggobi.so: undefined reference to fmod
ld: error: ./.libs/libggobi.so: undefined reference to erf


The appended patch should fix this by
- Add deps x11-fonts/fontconfig, print/freetype2 
  and graphics/graphviz
- Add USES=gnome
- Add USE_GNOME=cairo gdkpixbuf2 glib20
- Add USE_GCC=yes
- Reorder USES parameters
- Pet portlint by adding newline before GNU_CONFIGURE
- Add one more file to pkg-plist

The patch is tested on Poudriere (11.2i/a, 12.0i/a, and HEADi/a),
'portlint -AC' seems happy.


[1] http://beefy11.nyi.freebsd.org/data/head-i386-default/p498047_s345970/logs/ggobi-2.1.11_1.log
[2] http://beefy12.nyi.freebsd.org/data/head-amd64-default/p498047_s345970/logs/ggobi-2.1.11_1.log
Comment 1 commit-hook freebsd_committer 2019-04-13 01:50:12 UTC
A commit references this bug:

Author: swills
Date: Sat Apr 13 01:49:59 UTC 2019
New revision: 498792
URL: https://svnweb.freebsd.org/changeset/ports/498792

Log:
  math/ggobi: Fix undefined references

  PR:		237227
  Submitted by:	Rainer Hurling <rhurlin@gwdg.de> (maintainer)

Changes:
  head/math/ggobi/Makefile
Comment 2 Steve Wills freebsd_committer 2019-04-13 01:50:58 UTC
Committed, thanks!