pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/52190: building graphics/cairo doesn't find ft2build.h



>Number:         52190
>Category:       pkg
>Synopsis:       building graphics/cairo doesn't find ft2build.h
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 23 19:45:00 +0000 2017
>Originator:     Frank Wille
>Release:        pkgsrc2017Q1
>Organization:
NetBSD
>Environment:
NetBSD altair.owl.de 7.1_STABLE NetBSD 7.1_STABLE (IBOOKG4) #0: Thu Apr 13 11:26:49 CEST 2017  frank@tethys:/home/frank/netbsd/7/src/objmacppc/sys/arch/macppc/compile/IBOOKG4 macppc
>Description:
Links to Freetype and/or Freetype2 are missing. Freetype is also missing in /usr/pkg/share/x11-links/lib/ and pkgconfig.

Problem 1:

[...]
  CC       cairo-xlib-screen.lo
In file included from cairo-fontconfig-private.h:49:0,
                 from cairo-xlib-screen.c:66:
/usr/pkgsrc/graphics/cairo/work/.x11-buildlink/include/fontconfig/fcfreetype.h:27:22: fatal error: ft2build.h: No such file or directory
 #include <ft2build.h>
                      ^
compilation terminated.


Problem 2 (after manually fixing the previous):

[...]
  CCLD     libcairoboilerplate.la

*** Warning: This system cannot link to static lib archive ../src/libcairo.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
  CC       any2ppm-any2ppm.o
  CCLD     any2ppm
ld: cannot find -lfreetype
*** Error code 1

>How-To-Repeat:
Execute "make" in pkgsrc/graphics/cairo (pkgsrc2017Q1).

>Fix:
Not sure. I'm not familiar with the pkgsrc build system. I'm also unsure if I should linke to the freetype in /usr/X11R7 or in /usr/pkg.

Problem 1:
# cd pkgsrc/graphics/cairo/work/.buildlink/include
# ln -s /usr/X11R7/include/freetype2/ft2build.h .

Problem 2:
# cd pkgsrc/graphics/cairo/work/.buildlink/lib
# ln -s /usr/X11R7/lib/libfreetype.so.17.4.11 libfreetype.so



Home | Main Index | Thread Index | Old Index