Bug 48463

Summary: Gringotts port does not build due to linker error.
Product: Ports & Packages Reporter: Timothy R. Geier <tgeier>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Timothy R. Geier 2003-02-19 16:40:11 UTC
	When building gringotts 1.2.3, the following error messages occur when attempting to link the program:

cc  -O -pipe -march=pentiumpro   -o gringotts  gringotts.o grg_widgets.o  grg_entries.o grg_list.o grg_menus.o  grg_prefs.o grg_prefs_io.o grg_pwd.o  grg_safe.o grg_recent_dox.o grg_popt.o  grg_pix.o grg_attachs.o grg_fileutils.o -lpopt -Wl,--export-dynamic -L/usr/local/lib -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lXinerama -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lXft2 -lfreetype -lXext -lXrender -lfontconfig -lpangox-1.0 -lX11 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -liconv   -Wl,--export-dynamic -L/usr/local/lib -L/usr/X11R6/lib -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -liconv   -L/usr/local/lib -lgringotts -L/usr/local/lib  -liconv
/usr/libexec/elf/ld: cannot find -lXft2
*** Error code 1

Stop in /usr/ports/security/gringotts/work/gringotts-1.2.3/src.
*** Error code 1

Stop in /usr/ports/security/gringotts/work/gringotts-1.2.3.
*** Error code 1

Stop in /usr/ports/security/gringotts/work/gringotts-1.2.3.
*** Error code 1

Stop in /usr/ports/security/gringotts.

Adding flags such as "-L/usr/local/lib/compat/pkg" have no effect.  Neither does adding directories to the environment variable LD_LIBRARY_PATH.  

ldconfig -r | grep "Xft" produces

	153:-lXft.2 => /usr/X11R6/lib/libXft.so.2
        459:-lXft2.2 => /usr/local/lib/compat/pkg/libXft2.so.2
        460:-lXft.1 => /usr/local/lib/compat/pkg/libXft.so.1

Yet, changing the -l flag to any of these produces the same results.

Fix: 

The makefile can be changed to link with "-lXft", which does compile an executable.  This executable, however, segfaults and core dumps upon running.
How-To-Repeat: 
	Attempt to build gringotts version 1.2.3 port with all other ports (including the dependencies of gringotts) updated.
Comment 1 Norikatsu Shigemura freebsd_committer freebsd_triage 2003-02-19 16:43:27 UTC
State Changed
From-To: open->analyzed

This is not Gringotts's bug.  Pango's port problem.  Please wait for fix!
Comment 2 Norikatsu Shigemura freebsd_committer freebsd_triage 2003-02-24 09:50:55 UTC
State Changed
From-To: analyzed->closed

Committed.  Please update x11-toolkits/pango port and ...