Bug 237227

Summary: math/ggobi: Fix undefined references
Product: Ports & Packages Reporter: Rainer Hurling <rhurlin>
Component: Individual Port(s)Assignee: Steve Wills <swills>
Status: Closed FIXED    
Severity: Affects Only Me CC: rhurlin
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to fix math/ggobi rhurlin: maintainer-approval+

Description Rainer Hurling freebsd_committer freebsd_triage 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 freebsd_triage 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 freebsd_triage 2019-04-13 01:50:58 UTC
Committed, thanks!