libX11 config failure

Alexander Klepikov sv_00 at
Thu May 28 13:18:51 UTC 2009

Larry Gadallah wrote:
> Dear x11 at
> For some reason, configuration for libX11 fails on the current ports
> tree (fetched via portsnap). For your reference, I have attached the
> config.log file per the error messages below:
> appending configuration tag "F77" to libtool
> checking for gcc... (cached) cc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether cc accepts -g... (cached) yes
> checking for cc option to accept ISO C89... (cached) none needed
> checking dependency style of cc... (cached) gcc3
> CWARNFLAGS+= -Wold-style-definition -Wdeclaration-after-statement: not
> found
> checking for cpp... /usr/bin/cpp
> checking if /usr/bin/cpp requires -undef... yes
> checking if /usr/bin/cpp requires -traditional... yes
> checking whether to use XCB... (cached) yes
> ./configure: 21141: Syntax error: word unexpected (expecting ")")
> ===>  Script "configure" failed unexpectedly.
> Please report the problem to x11 at [maintainer] and attach the
> "/usr/ports/x11/libX11/work/libX11-1.2/config.log" including the output of
> the failure of your make command. Also, it might be a good idea to provide
> an overview of all packages installed on your system (e.g. an `ls
> /var/db/pkg`).
> *** Error code 1

May be I am too late, but I hope my post will help someone. I had the same
issue. I fugured out that configure script does not find macros
PKG_CHECK_MODULES. That macros is in /PCBSD/local/share/aclocal/pkg.m4 . In
/usr/ports/libX11/Makefile you can see

ACLOCAL_AGRS = -I . -I ${LOCALBASE}/share/aclocal

But LOCALBASE equals to /usr/local/ and there is no
/usr/local/share/aclocal/pkg.m4 !!! 
So I just did

ln -s /PCBSD/local/share/aclocal/pkg.m4 /usr/local/share/aclocal/pkg.m4

and voila!
Also I found that some ports cannot find, for example, unzip. But 'which
unzip' shows... yes, /PCBSD/local/bin/unzip ! It looks like it was not a
very good idea to put files to /PCBSD.

With best wishes,
 Alexander Klepikov
View this message in context:
Sent from the freebsd-x11 mailing list archive at

More information about the freebsd-x11 mailing list