From owner-freebsd-ports@FreeBSD.ORG Mon Feb 13 10:40:07 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CCCA106566B for ; Mon, 13 Feb 2012 10:40:07 +0000 (UTC) (envelope-from lenzi.sergio@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id C0BDD8FC0A for ; Mon, 13 Feb 2012 10:40:06 +0000 (UTC) Received: by yenl12 with SMTP id l12so2886350yen.13 for ; Mon, 13 Feb 2012 02:40:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references :disposition-notification-to:content-type:date:message-id :mime-version:x-mailer; bh=wX9OLUzkkMwCY0kUWSDQTjLF2rJ4MlGoagqiMxIz4Sg=; b=Xh34kUOQTjg+j+Tr6zjVvE65cfOR2xptQInNIuYmB/RVFXMQ41TI5uxW56PBRJ2Ncs KQAYv+SkU8akRk4D7AX6CC1LMxxs36shI7/QyAePlWQ6rwFBUqWgt6UIJ8xR9Q5i1zO0 elUgo5bY2PTsJM00CHduQrqFL/6pMxQujtS6E= Received: by 10.236.201.201 with SMTP id b49mr18775886yho.18.1329129605922; Mon, 13 Feb 2012 02:40:05 -0800 (PST) Received: from [192.168.6.230] ([201.21.160.190]) by mx.google.com with ESMTPS id v7sm23532848yhi.1.2012.02.13.02.40.03 (version=SSLv3 cipher=OTHER); Mon, 13 Feb 2012 02:40:05 -0800 (PST) From: Sergio de Almeida Lenzi To: Steve Kargl In-Reply-To: <20120213070123.GA95501@troutmask.apl.washington.edu> References: <20120212191005.GZ3283@deviant.kiev.zoral.com.ua> <20120213.114357.1614398076060728986.hrs@allbsd.org> <20120213070123.GA95501@troutmask.apl.washington.edu> Date: Mon, 13 Feb 2012 08:40:00 -0200 Message-ID: <1329129600.68595.6.camel@z6000.lenzicasa> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports Subject: Re: print/ghostscript9 fix X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 10:40:07 -0000 The error occurs becuse it gets jpeg definitions from the system libjpeg before the ones from own openjpeg code. For me, I disable openjpeg code (because it uses system libjpeg also).... add ============= CONFIGURE ARGS+= --disable-openjpeg ============== after line 67 in the Makefile make clean install and the system works... > > laptop:root[207] uname -a > FreeBSD laptop 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r230975M: Sat Feb 4 09:03:27 PST 2012 root@laptop:/usr/obj/usr/src/sys/MOBILE i386 > > cc -DHAVE_MKSTEMP -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -O2 -pipe -march=native -fno-strict-aliasing -fPIC -DUPD_SIGNAL=0 -I. -I/usr/ports/print/ghostscript9/work/ghostscript-9.05/lcms/include -I/usr/local/include/libpng -I/usr/local/include -I/usr/local/include/freetype2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=1 -DHAVE_SYS_TIME_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -pipe -march=native -fno-strict-aliasing -DUSE_LIBICONV_GNU -I/usr/local/include -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/9.05\" -Iopenjpeg/libopenjpeg/.. -Iopenjpeg/libopenjpeg -I./soobj -I./base -DUSE_OPENJPEG_JP2 -ffast-math -DOPJ_STATIC -std=c99 -o ./soobj/sjpx_openjpeg.o \ > -c -DOPJ_STATIC ./base/sjpx_openjpeg.c > ./base/sjpx_openjpeg.c: In function 'decode_image': > ./base/sjpx_openjpeg.c:169: error: too many arguments to function 'opj_decode' > ./base/sjpx_openjpeg.c:205: error: 'opj_image_comp_t' has no member named 'typ' > ./base/sjpx_openjpeg.c:205: error: 'CTYPE_COLOR' undeclared (first use in this function) > ./base/sjpx_openjpeg.c:205: error: (Each undeclared identifier is reported only once > ./base/sjpx_openjpeg.c:205: error: for each function it appears in.) > ./base/sjpx_openjpeg.c:207: error: 'opj_image_comp_t' has no member named 'typ' > ./base/sjpx_openjpeg.c:207: error: 'CTYPE_OPACITY' undeclared (first use in this function) > ./base/sjpx_openjpeg.c:217: error: 'CLRSPC_CMYK' undeclared (first use in this function) > ./base/sjpx_openjpeg.c:250: error: 'opj_image_t' has no member named 'has_palette' > ./base/sjpx_openjpeg.c:257: error: 'CLRSPC_EYCC' undeclared (first use in this function) > gmake[2]: *** [soobj/sjpx_openjpeg.o] Error 1 > gmake[2]: Leaving directory `/usr/ports/print/ghostscript9/work/ghostscript-9.05' > gm > > > troutmask:root[207] uname -a > FreeBSD troutmask.apl.washington.edu 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r230912: Thu Feb 2 10:40:37 PST 2012 kargl@troutmask.apl.washington.edu:/usr/obj/usr/src/sys/SPEW amd64 > > > cc -DHAVE_MKSTEMP -DHAVE_FONTCONFIG -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -O2 -pipe -march=opteron -fno-strict-aliasing -fPIC -DUPD_SIGNAL=0 -I. -I/usr/ports/print/ghostscript9/work/ghostscript-9.05/lcms/include -I/usr/local/include/libpng -I/usr/local/include -I/usr/local/include/freetype2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H=1 -DHAVE_SYS_TIME_H=1 -DGX_COLOR_INDEX_TYPE="unsigned long int" -O2 -pipe -march=opteron -fno-strict-aliasing -DUSE_LIBICONV_GNU -I/usr/local/include -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/9.05\" -Iopenjpeg/libopenjpeg/.. -Iopenjpeg/libopenjpeg -I./soobj -I./base -DUSE_OPENJPEG_JP2 -ffast-math -DOPJ_STATIC -std=c99 -o ./soobj/sjpx_openjpeg.o \ > -c -DOPJ_STATIC ./base/sjpx_openjpeg.c > ./base/sjpx_openjpeg.c: In function 'decode_image': > ./base/sjpx_openjpeg.c:169: error: too many arguments to function 'opj_decode' > ./base/sjpx_openjpeg.c:205: error: 'opj_image_comp_t' has no member named 'typ' > ./base/sjpx_openjpeg.c:205: error: 'CTYPE_COLOR' undeclared (first use in this function) > ./base/sjpx_openjpeg.c:205: error: (Each undeclared identifier is reported only once > ./base/sjpx_openjpeg.c:205: error: for each function it appears in.) > ./base/sjpx_openjpeg.c:207: error: 'opj_image_comp_t' has no member named 'typ' > ./base/sjpx_openjpeg.c:207: error: 'CTYPE_OPACITY' undeclared (first use in this function) > ./base/sjpx_openjpeg.c:217: error: 'CLRSPC_CMYK' undeclared (first use in this function) > ./base/sjpx_openjpeg.c:250: error: 'opj_image_t' has no member named 'has_palette' > ./base/sjpx_openjpeg.c:257: error: 'CLRSPC_EYCC' undeclared (first use in this function) > gmake[2]: *** [soobj/sjpx_openjpeg.o] Error 1 > gmake[2]: Leaving directory `/usr/ports/print/ghostscript9/work/ghostscript-9.05' > gmake[1]: *** [so-subtarget] Error 2 > gmake[1]: Leaving directory `/usr/ports/print/ghostscript9/work/ghostscript-9.05' > gmake: *** [so] Error 2 > *** Error code 1 > > > And, yes, I have the latest update to this port. >