Hello,

I have been trying to create a port for simple-scan, a simple scanning gui, and I'm having a problem at the configure stage. I'm building this on my 9.1 amd64 bpoudriere box and it fails with:

Syntax error: "(" unexpected (expecting "then")
*** [do-configure] Error code 2

The Makefile and logfile are attached and I would appreciate any suggestions or pointers. There might be open issues post-configure but since I can't get past configure, I have not focused on that yet.

Thanks in advance.

--
Chess Griffin
# $FreeBSD$

PORTNAME=       simple-scan
PORTVERSION=    3.8.0
CATEGORIES=     print
MASTER_SITES=   https://launchpadlibrarian.net/135258303/
EXTRACT_SUFX=   .tar.xz

MAINTAINER=     ch...@chessgriffin.com
COMMENT=        simple scanning utility for GTK3

BUILD_DEPENDS=  scanimage:${PORTSDIR}/graphics/sane-backends
RUN_DEPENDS=    ${BUILD_DEPENDS}

USE_AUTOTOOLS=  aclocal autoconf
AUTOTOOLSFILES= aclocal.m4
CONFIGURE_ARGS= --prefix=${PREFIX}
CONFIGURE_ENV+= CFLAGS+="-I${LOCALBASE}/include ${CFLAGS} \
                LDFLAGS+="-L${LOCALBASE}/lib ${LDFLAGS}"
USES=           gettext gmake pkgconfig
USE_GNOME=      cairo gdkpixbuf2 glib20 gtk30 pango

.include <bsd.port.mk>
====>> Building myports/simple-scan
build started at Tue Sep 24 13:34:08 EDT 2013
port directory: /usr/ports/myports/simple-scan
building for: FreeBSD REL91amd64-default-job-01 9.1-RELEASE FreeBSD 9.1-RELEASE 
amd64
maintained by: ch...@chessgriffin.com
ident warning: no id keywords in 
/usr/local/poudriere/data/build/REL91amd64-default/ref/../01//usr/ports/myports/simple-scan/Makefile
Makefile ident: 
Poudriere version: 3.1-pre

---Begin Environment---
OSVERSION=901000
UNAME_v=FreeBSD 9.1-RELEASE
UNAME_r=9.1-RELEASE
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
MASTERMNT=/usr/local/poudriere/data/build/REL91amd64-default/ref
PKG_EXT=txz
FORCE_PACKAGE=yes
tpid=97309
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
POUDRIERE_BUILD_TYPE=bulk
NBPARALLEL=1
PKGNG=1
PKGNAME=simple-scan-3.8.0
PKG_DELETE=/usr/local/sbin/pkg-static delete -y -f
PKG_ADD=/usr/local/sbin/pkg-static add
PWD=/usr/home/chess
MASTERNAME=REL91amd64-default
USER=root
HOME=/root
POUDRIERE_VERSION=3.1-pre
LOCALBASE=/usr/local
PACKAGE_BUILDING=yes
PKG_VERSION=/poudriere/pkg-static version
---End Environment---

---Begin OPTIONS List---
---End OPTIONS List---

--CONFIGURE_ARGS--
--prefix=/usr/local --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
CFLAGS+="-I/usr/local/include -O2 -pipe -fno-strict-aliasing  
LDFLAGS+="-L/usr/local/lib " TMPDIR="/tmp" MAKE=gmake PKG_CONFIG=pkgconf 
SHELL=/bin/sh CONFIG_SHELL=/bin/sh AUTOMAKE=/usr/local/bin/automake-1.14  
AUTOMAKE_DIR=/usr/local/share/automake-1.14  AUTOMAKE_VERSION=1.14  
AUTOMAKE_APIVER=1.14  ACLOCAL=/usr/local/bin/aclocal-1.14  
ACLOCAL_DIR=/usr/local/share/aclocal-1.14 AUTOCONF=/usr/local/bin/autoconf-2.69 
 AUTOCONF_DIR=/usr/local/share/autoconf-2.69  
AUTOHEADER=/usr/local/bin/autoheader-2.69  
AUTOIFNAMES=/usr/local/bin/ifnames-2.69  AUTOM4TE=/usr/local/bin/autom4te-2.69  
AUTORECONF=/usr/local/bin/autoreconf-2.69  
AUTOSCAN=/usr/local/bin/autoscan-2.69  
AUTOUPDATE=/usr/local/bin/autoupdate-2.69  AUTOCONF_VERSION=2.69  
PATH=/usr/local/libexec/ccache:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
 CCACHE_DIR="/root/.ccache" CONFIG_SITE=/usr/ports/Templates/config.site 
lt_cv_sys_max_cmd_len=262144
--End CONFIGURE_ENV--

--MAKE_ENV--
TMPDIR="/tmp" SHELL=/bin/sh NO_LINT=YES AUTOMAKE=/usr/local/bin/automake-1.14  
AUTOMAKE_DIR=/usr/local/share/automake-1.14  AUTOMAKE_VERSION=1.14  
AUTOMAKE_APIVER=1.14  ACLOCAL=/usr/local/bin/aclocal-1.14  
ACLOCAL_DIR=/usr/local/share/aclocal-1.14 AUTOCONF=/usr/local/bin/autoconf-2.69 
 AUTOCONF_DIR=/usr/local/share/autoconf-2.69  
AUTOHEADER=/usr/local/bin/autoheader-2.69  
AUTOIFNAMES=/usr/local/bin/ifnames-2.69  AUTOM4TE=/usr/local/bin/autom4te-2.69  
AUTORECONF=/usr/local/bin/autoreconf-2.69  
AUTOSCAN=/usr/local/bin/autoscan-2.69  
AUTOUPDATE=/usr/local/bin/autoupdate-2.69  AUTOCONF_VERSION=2.69  
PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 
-pipe -fno-strict-aliasing"  CPP="cpp" CPPFLAGS=""  LDFLAGS=""  CXX="c++" 
CXXFLAGS="-O2 -pipe -fno-strict-aliasing"  MANPREFIX="/usr/local" 
PATH=/usr/local/libexec/ccache:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
 CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install  -s -o root -g wheel 
-m 555"  BSD_INSTALL_LIB="install  -s -o root -g wheel -m 444"  
BSD_INSTALL_SCRIPT="install  -o root -g wheel -m 555"  
BSD_INSTALL_DATA="install  -o root -g wheel -m 444"  BSD_INSTALL_MAN="install  
-o root -g wheel -m 444"
--End MAKE_ENV--

--SUB_LIST--
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/simple-scan
DOCSDIR=/usr/local/share/doc/simple-scan
EXAMPLESDIR=/usr/local/share/examples/simple-scan
WWWDIR=/usr/local/www/simple-scan
ETCDIR=/usr/local/etc/simple-scan
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
WITH_CCACHE_BUILD=yes
CCACHE_DIR=/root/.ccache
PACKAGES=/packages
DISTDIR=/distfiles
#### /usr/local/etc/poudriere.d/REL91amd64-make.conf ####
WITH_PKGNG=YES
WITH_NEW_XORG=YES
WITH_KMS=YES
WITHOUT_IPV6=YES
WITHOUT_HAL=YES
WITH_CUPS=YES
WITHOUT_NLS=YES
DISABLE_MAKE_JOBS=yes
---End make.conf---
===>  Cleaning for simple-scan-3.8.0
=======================<phase: check-config   >============================
===========================================================================
=======================<phase: pkg-depends    >============================
===>   simple-scan-3.8.0 depends on file: /usr/local/sbin/pkg - not found
===>    Verifying install for /usr/local/sbin/pkg in /usr/ports/ports-mgmt/pkg
===>   Installing existing package /packages/All/pkg-1.1.4_3.txz
Installing pkg-1.1.4_3... done
If you are upgrading from the old package format, first run:

  # pkg2ng
===>   Returning to build of simple-scan-3.8.0
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===> Fetching all distfiles required by simple-scan-3.8.0 for building
===========================================================================
=======================<phase: checksum       >============================
===> Fetching all distfiles required by simple-scan-3.8.0 for building
=> SHA256 Checksum OK for simple-scan-3.8.0.tar.xz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===> Fetching all distfiles required by simple-scan-3.8.0 for building
===>  Extracting for simple-scan-3.8.0
=> SHA256 Checksum OK for simple-scan-3.8.0.tar.xz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for simple-scan-3.8.0
===========================================================================
=======================<phase: build-depends  >============================
===>   simple-scan-3.8.0 depends on executable: scanimage - not found
===>    Verifying install for scanimage in /usr/ports/graphics/sane-backends
===>   Installing existing package /packages/All/sane-backends-1.0.23_1.txz
Installing sane-backends-1.0.23_1...Installing tiff-4.0.3...Installing 
jpeg-8_4... done
Installing jbigkit-1.6... done
 done
Installing gettext-0.18.3...Installing libiconv-1.14_1... done
 done
===> Creating users and/or groups.
Creating group 'saned' with gid '194'.
Creating user 'saned' with uid '194'.
mkdir: /usr/local/etc/sane.d/dll.d: File exists
mkdir: /usr/local/share/sane: File exists
mkdir: /usr/local/share/sane/artec_eplus48u: File exists
mkdir: /usr/local/share/sane/epjitsu: File exists
mkdir: /usr/local/share/sane/gt68xx: File exists
mkdir: /usr/local/share/sane/snapscan: File exists
 done
==================================================================

saned will log to the 'daemon' facility; this is a hard-coded
default. Also, saned has no support for SSL/TLS or cryptographic
authentication; you may wish to deploy security/stunnel to wrap
it if you have concerns about security.

If you are using a USB scanner, you should create
/usr/local/etc/devd/saned.conf to allow saned access permissions.
Currently, devfs.rules(5) has no support for USB specific filters
such as vendor, product and serial number.

Here is an example saned.conf for an Epson CX3650
multi-function scanner/printer device (assuming you are sharing
the printer function with cups):

notify 100 {
        match "system" "USB";
        match "subsystem" "INTERFACE";
        match "type" "ATTACH";
        match "cdev" "ugen[0-9].[0-9]";
        match "vendor" "0x04b8";
        match "product" "0x080e";
        action "chown -L cups:saned /dev/$cdev && chmod -L 660 /dev/$cdev";
};

To determine which port your scanner is connected to, inspect the
output of 'usbconfig list' before and after connecting your scanner,
and note the numbers which appear after 'ugen' in the first column.
Then, use 'usbconfig -d X.Y dump_device_desc' to learn the idVendor
and idProduct fields, and plug them into the above example entry.

Finally, restart devd with the command:
 # /etc/rc.d/devd restart

Please take /usr/local/etc/sane.d/dll.conf
as an example only; you may wish to enable only the 'net' backend
on client machines; be sure to point it at your scan server.

If you are setting up a scan server, you may also wish to edit
/usr/local/etc/sane.d/saned.conf
to only permit specific machines.

==================================================================
===>   Returning to build of simple-scan-3.8.0
===>   simple-scan-3.8.0 depends on executable: gmake - not found
===>    Verifying install for gmake in /usr/ports/devel/gmake
===>   Installing existing package /packages/All/gmake-3.82_1.txz
Installing gmake-3.82_1... done
===>   Returning to build of simple-scan-3.8.0
===>   simple-scan-3.8.0 depends on executable: pkgconf - not found
===>    Verifying install for pkgconf in /usr/ports/devel/pkgconf
===>   Installing existing package /packages/All/pkgconf-0.9.3.txz
Installing pkgconf-0.9.3... done
===>   Returning to build of simple-scan-3.8.0
===>   simple-scan-3.8.0 depends on file: /usr/local/bin/automake-1.14 - not 
found
===>    Verifying install for /usr/local/bin/automake-1.14 in 
/usr/ports/devel/automake
===>   Installing existing package /packages/All/automake-1.14.txz
Installing automake-1.14...Installing perl-5.14.4_1...Removing stale symlinks 
from /usr/bin...
    Skipping /usr/bin/perl
    Skipping /usr/bin/perl5
Done.
Creating various symlinks in /usr/bin...
    Symlinking /usr/local/bin/perl5.14.4 to /usr/bin/perl
    Symlinking /usr/local/bin/perl5.14.4 to /usr/bin/perl5
Done.
Removing /usr/local/etc/perl5_version... Done.
Creating /usr/local/etc/perl5_version... Done.
 done
Installing m4-1.4.16_1,1... done
Installing automake-wrapper-20130530... done
Installing autoconf-wrapper-20130530... done
Installing autoconf-2.69... done
 done
===>   Returning to build of simple-scan-3.8.0
===>   simple-scan-3.8.0 depends on file: /usr/local/bin/autoconf-2.69 - found
===>   simple-scan-3.8.0 depends on file: /usr/local/bin/intltool-extract - not 
found
===>    Verifying install for /usr/local/bin/intltool-extract in 
/usr/ports/textproc/intltool
===>   Installing existing package /packages/All/intltool-0.50.2.txz
Installing intltool-0.50.2...Installing p5-XML-Parser-2.41_1...Installing 
expat-2.1.0... done
 done
 done
===>   Returning to build of simple-scan-3.8.0
===>   simple-scan-3.8.0 depends on file: /usr/local/bin/ccache - not found
===>    Verifying install for /usr/local/bin/ccache in /usr/ports/devel/ccache
===>   Installing existing package /packages/All/ccache-3.1.9_2.txz
Installing ccache-3.1.9_2...Create compiler links...
create symlink for cc
create symlink for cc (world)
create symlink for c++
create symlink for c++ (world)
create symlink for gcc
create symlink for gcc (world)
create symlink for g++
create symlink for g++ (world)
 done

NOTE:
Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for 
information on using ccache with FreeBSD ports and src.
===>   Returning to build of simple-scan-3.8.0
===========================================================================
=======================<phase: lib-depends    >============================
===>   simple-scan-3.8.0 depends on shared library: intl - found
===>   simple-scan-3.8.0 depends on shared library: atk-1.0 - not found
===>    Verifying install for atk-1.0 in /usr/ports/accessibility/atk
===>   Installing existing package /packages/All/atk-2.8.0.txz
Installing atk-2.8.0...Installing gnomehier-3.0... done
Installing python27-2.7.5_3... done
Installing python2-2_1... done
Installing python-2.7_1,2... done
Installing pcre-8.33... done
Installing libffi-3.0.13... done
Installing glib-2.36.3...No schema files found: doing nothing.
 done
 done
====
Note that some of the standard modules are provided as separate
ports since they require extra dependencies:

bsddb           databases/py-bsddb
gdbm            databases/py-gdbm
sqlite3         databases/py-sqlite3
tkinter         x11-toolkits/py-tkinter

Install them as needed.
====
===>   Returning to build of simple-scan-3.8.0
===>   simple-scan-3.8.0 depends on shared library: cairo - not found
===>    Verifying install for cairo in /usr/ports/graphics/cairo
===>   Installing existing package /packages/All/cairo-1.10.2_5,2.txz
Installing cairo-1.10.2_5,2...Installing xproto-7.0.24... done
Installing xcb-util-renderutil-0.3.8...Installing 
xcb-util-0.3.9_1,1...Installing libxcb-1.9.1...Installing libXdmcp-1.1.1... done
Installing libXau-1.0.8... done
Installing libxml2-2.8.0_2... done
Installing libpthread-stubs-0.3_3... done
 done
 done
 done
Installing renderproto-0.11.1... done
Installing pixman-0.30.0... done
Installing libXrender-0.9.8...Installing libX11-1.6.1,1...Installing 
kbproto-1.0.6... done
 done
 done
Installing fontconfig-2.10.95,1...Installing freetype2-2.5.0.1... done
Running fc-cache to build fontconfig cache...
/usr/local/share/fonts: skipping, no such directory
/usr/local/lib/X11/fonts: caching, new cache contents: 0 fonts, 1 dirs
/usr/local/lib/X11/fonts/local: caching, new cache contents: 0 fonts, 0 dirs
/root/.local/share/fonts: skipping, no such directory
/root/.fonts: skipping, no such directory
/var/db/fontconfig: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
 done
Installing png-1.5.17... done
 done
===>   Returning to build of simple-scan-3.8.0
===>   simple-scan-3.8.0 depends on shared library: gdk_pixbuf-2.0 - not found
===>    Verifying install for gdk_pixbuf-2.0 in /usr/ports/graphics/gdk-pixbuf2
===>   Installing existing package /packages/All/gdk-pixbuf2-2.28.2.txz
Installing gdk-pixbuf2-2.28.2...Installing xextproto-7.2.1... done
Installing libXi-1.7.2,1...Installing libXfixes-5.0.1...Installing 
fixesproto-5.0... done
 done
Installing libXext-1.3.2,1... done
Installing inputproto-2.3... done
 done
Installing libSM-1.2.1,1...Installing libICE-1.0.8,1... done
 done
Installing libXt-1.1.4,1... done
Installing jasper-1.900.1_12... done
 done
===>   Returning to build of simple-scan-3.8.0
===>   simple-scan-3.8.0 depends on shared library: glib-2.0 - found
===>   simple-scan-3.8.0 depends on shared library: pcre - found
===>   simple-scan-3.8.0 depends on shared library: gtk-3.0 - not found
===>    Verifying install for gtk-3.0 in /usr/ports/x11-toolkits/gtk30
===>   Installing existing package /packages/All/gtk-3.8.2_1.txz
Installing gtk-3.8.2_1...Installing xineramaproto-1.2.1... done
Installing recordproto-1.14.2... done
Installing randrproto-1.4.0... done
Installing libXtst-1.2.2... done
Installing libXrandr-1.4.1... done
Installing libXinerama-1.1.3,1... done
Installing libXdamage-1.1.4...Installing damageproto-1.2.1... done
 done
Installing libXcursor-1.1.14... done
Installing libXcomposite-0.4.4,1...Installing compositeproto-0.4.2... done
 done
Installing pango-1.34.1_1...Installing xorg-fonts-truetype-7.7_1...Installing 
mkfontscale-1.1.1...Installing libfontenc-1.1.2... done
 done
Installing mkfontdir-1.0.7... done
Installing font-util-1.3.0... done
Installing font-misc-meltho-1.0.3... done
Installing font-misc-ethiopic-1.0.3... done
Installing font-bh-ttf-1.0.3... done
Installing encodings-1.0.4,1... done
Installing dejavu-2.34... done
 done
Installing libXft-2.3.1... done
Installing harfbuzz-0.9.19...Installing graphite2-1.2.3... done
Installing icu-50.1.2... done
 done
 done
Installing polkit-0.105_1...Installing gnome_subr-1.0... done
Installing gobject-introspection-1.36.0_2... done
Installing dbus-1.6.12...===> Creating users and/or groups.
Creating group 'messagebus' with gid '556'.
Creating user 'messagebus' with uid '556'.
 done
 done
Installing cups-client-1.5.4_1... done
Installing shared-mime-info-1.1... done
Installing hicolor-icon-theme-0.12... done
Installing lcms2-2.5... done
Installing gtk-update-icon-cache-2.24.19... done
Installing colord-1.0.1...Installing sqlite3-3.8.0.2... done
===> Creating users and/or groups.
Creating group 'colord' with gid '970'.
Creating user 'colord' with uid '970'.
 done
Installing at-spi2-core-2.8.0... done
Installing at-spi2-atk-2.8.0... done
 done
Make sure that the freetype module is loaded.  If it is not, add the following
line to the "Modules" section of your X Windows configuration file:

        Load "freetype"

Add the following line to the "Files" section of X Windows configuration file:

        FontPath "/usr/local/lib/X11/fonts/dejavu/"

Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.
===>   Returning to build of simple-scan-3.8.0
===>   simple-scan-3.8.0 depends on shared library: pango-1.0 - found
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for simple-scan-3.8.0
Syntax error: "(" unexpected (expecting "then")
*** [do-configure] Error code 2

Stop in /usr/ports/myports/simple-scan.
===>  Cleaning for simple-scan-3.8.0
build of /usr/ports/myports/simple-scan ended at Tue Sep 24 13:35:37 EDT 2013
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to