[Bug 230234] graphics/php72-gd: Fails to build with ports libgd without XPM support

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 31 10:18:54 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230234

            Bug ID: 230234
           Summary: graphics/php72-gd: Fails to build with ports libgd
                    without XPM support
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tz at freebsd.org
          Reporter: madpilot at FreeBSD.org
          Assignee: tz at freebsd.org
             Flags: maintainer-feedback?(tz at freebsd.org)

Hi,

If one has disabled XPM support in graphics/gd php php-gd ports fail to build

This is the error I'm getting:

/wrkdirs/usr/ports/graphics/php72-gd/work/php-7.2.8/ext/gd/gd.c:57:11: fatal
error: 'X11/xpm.h' file not found
# include <X11/xpm.h>
          ^~~~~~~~~~~
1 error generated.
*** [gd.lo] Error code 1

make[1]: stopped in /wrkdirs/usr/ports/graphics/php72-gd/work/php-7.2.8/ext/gd
1 error

make[1]: stopped in /wrkdirs/usr/ports/graphics/php72-gd/work/php-7.2.8/ext/gd
===> Compilation failed unexpectedly.

Simply adding a LIB_DEPENDS on libxpm makes it compile, but adds a bunch of
unwanted X11 dependencies.

I don't have a patch to really fix the issue at hand.

php configure script first checks if GD has XPM support, but does not define
anything in that phase. Then it tests for a gdImageCreateFromXpm() function,
which is defined anyway as a stub returning an error message.

After this defines HAVE_GD_XPM, which causes the above error.

I'm trying to make a patch fixing the configure script.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list