Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2006 01:55:52 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        jah259@cornell.edu
Cc:        ports@freebsd.org
Subject:   Re: graphics/xpdf
Message-ID:  <20061115065552.GA99320@xor.obsecurity.org>
In-Reply-To: <4987.128.84.178.28.1163572999.squirrel@www.nic-nac-project.de>
References:  <4987.128.84.178.28.1163572999.squirrel@www.nic-nac-project.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 15, 2006 at 01:43:19AM -0500, Jimmy Hartzell wrote:
> I am at a loss for what to do, as, trying to compile graphics/xpdf, I got
> the following results:
> $ sudo portinstall xpdf
> --->  Installing 'xpdf-3.01_3' from a port (graphics/xpdf)
> --->  Building '/usr/ports/graphics/xpdf'
> =3D=3D=3D>  Cleaning for freetype2-2.2.1_1
> =3D=3D=3D>  Cleaning for gmake-3.81_1
> =3D=3D=3D>  Cleaning for autoconf-2.59_2
> =3D=3D=3D>  Cleaning for t1lib-5.1.0_1,1
> =3D=3D=3D>  Cleaning for open-motif-2.2.3_2
> =3D=3D=3D>  Cleaning for xorg-libraries-6.9.0
> =3D=3D=3D>  Cleaning for gsfonts-8.11_2
> =3D=3D=3D>  Cleaning for pkg-config-0.21
> =3D=3D=3D>  Cleaning for gettext-0.14.5_2
> =3D=3D=3D>  Cleaning for perl-5.8.8
> =3D=3D=3D>  Cleaning for m4-1.4.4
> =3D=3D=3D>  Cleaning for help2man-1.36.4_1
> =3D=3D=3D>  Cleaning for libtool-1.5.22_2
> =3D=3D=3D>  Cleaning for imake-6.9.0
> =3D=3D=3D>  Cleaning for libdrm-2.0.2
> =3D=3D=3D>  Cleaning for fontconfig-2.3.2_6,1
> =3D=3D=3D>  Cleaning for libiconv-1.9.2_2
> =3D=3D=3D>  Cleaning for p5-gettext-1.05_1
> =3D=3D=3D>  Cleaning for expat-2.0.0_1
> =3D=3D=3D>  Cleaning for xpdf-3.01_3
> =3D=3D=3D>  Vulnerability check disabled, database not found
> =3D=3D=3D>  Extracting for xpdf-3.01_3
> =3D> MD5 Checksum OK for xpdf-3.01.tar.gz.
> =3D> SHA256 Checksum OK for xpdf-3.01.tar.gz.
> =3D> MD5 Checksum OK for xpdf-3.01pl2.patch.
> =3D> SHA256 Checksum OK for xpdf-3.01pl2.patch.
> =3D=3D=3D>  Patching for xpdf-3.01_3
> =3D=3D=3D>  Applying distribution patches for xpdf-3.01_3
> =3D=3D=3D>  Applying FreeBSD patches for xpdf-3.01_3
> =3D=3D=3D>   xpdf-3.01_3 depends on executable in : freetype-config - fou=
nd
> =3D=3D=3D>   xpdf-3.01_3 depends on executable in : gmake - found
> =3D=3D=3D>   xpdf-3.01_3 depends on file: /usr/local/bin/autoconf259 - fo=
und
> =3D=3D=3D>   xpdf-3.01_3 depends on shared library: t1.5 - found
> =3D=3D=3D>   xpdf-3.01_3 depends on shared library: freetype.9 - found
> =3D=3D=3D>   xpdf-3.01_3 depends on shared library: Xm.3 - found
> =3D=3D=3D>   xpdf-3.01_3 depends on shared library: X11.6 - found
> =3D=3D=3D>  Configuring for xpdf-3.01_3
> checking for gcc... cc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether cc accepts -g... yes
> checking for cc option to accept ANSI C... none needed
> checking for library containing strerror... none required
> checking whether we are using the GNU C++ compiler... yes
> checking whether c++ accepts -g... yes
> checking for a BSD-compatible install... /usr/bin/install -c -o root -g w=
heel
> checking for ranlib... ranlib
> checking for OS/2 (with EMX)... no
> checking for DOS (with DJGPP)... no
> checking how to run the C preprocessor... cc -E
> checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
> checking for gethostbyname... yes
> checking for connect... yes
> checking for remove... yes
> checking for shmat... yes
> checking for IceConnectionNumber in -lICE... yes
> checking for dirent.h that defines DIR... yes
> checking for library containing opendir... none required
> checking for gethostbyname... (cached) yes
> checking select() and fd_set in sys/select.h and sys/bsdtypes.h... not ne=
eded
> checking FD_ZERO and strings.h or bstring.h... not needed
> checking for rewinddir... yes
> checking for popen... yes
> checking for mkstemp... yes
> checking for mkstemps... yes
> checking whether select takes fd_set arguments... yes
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking for _LARGE_FILES value needed for large files... no
> checking for _LARGEFILE_SOURCE value needed for large files... no
> checking for fseeko... yes
> checking for fseek64... no
> checking for ftell64... no
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking whether to use Xpm library... maybe
> checking where to find the Xpm header files...
> checking X11/xpm.h usability... yes
> checking X11/xpm.h presence... yes
> checking for X11/xpm.h... yes
> checking for XpmCreatePixmapFromData in -lXpm... yes
> using Xpm library
> checking whether to use Xext library... maybe
> checking where to find the Xext header files...
> checking X11/Xlib.h usability... yes
> checking X11/Xlib.h presence... yes
> checking for X11/Xlib.h... yes
> checking for XextAddDisplay in -lXext... yes
> using Xext library
> checking whether to use Xp library... maybe
> checking where to find the Xp header files...
> checking X11/extensions/Print.h usability... yes
> checking X11/extensions/Print.h presence... yes
> checking for X11/extensions/Print.h... yes
> checking for XpStartPage in -lXp... yes
> using Xp library
> checking whether to use Xt library... maybe
> checking where to find the Xt header files...
> checking X11/Intrinsic.h usability... yes
> checking X11/Intrinsic.h presence... yes
> checking for X11/Intrinsic.h... yes
> checking for XtAppInitialize in -lXt... yes
> using Xt library
> checking whether to use Xm library... maybe
> checking where to find the Xm header files...
> checking Xm/XmAll.h usability... yes
> checking Xm/XmAll.h presence... yes
> checking for Xm/XmAll.h... yes
> checking for XmCreateForm in -lXm... yes
> using Xm library
> checking whether to use Sgm library... maybe
> checking where to find the Sgm header files...
> checking Sgm/HPanedW.h usability... no
> checking Sgm/HPanedW.h presence... no
> checking for Sgm/HPanedW.h... no
> not using Sgm library
> checking for XtAppSetExitFlag in -lXt... yes
> checking whether to use t1 library... (cached) /usr/local/lib
> checking where to find the t1 header files... (cached) /usr/local/include
> checking t1lib.h usability... yes
> checking t1lib.h presence... yes
> checking for t1lib.h... yes
> checking for T1_InitLib in -lt1... yes
> using t1 library
> checking whether to use freetype2 library... (cached) /usr/local/lib
> checking where to find the freetype2 header files... (cached)
> /usr/local/include/freetype2
> checking ft2build.h usability... yes
> checking ft2build.h presence... yes
> checking for ft2build.h... yes
> checking for FT_Get_Name_Index in -lfreetype... yes
> using freetype2 library
> checking whether to use libpaper library... maybe
> checking where to find the libpaper header files...
> checking paper.h usability... no
> checking paper.h presence... no
> checking for paper.h... no
> not using libpaper library
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating goo/Makefile
> config.status: creating fofi/Makefile
> config.status: creating splash/Makefile
> config.status: creating xpdf/Makefile
> config.status: creating aconf.h
> =3D=3D=3D>  Building for xpdf-3.01_3
> cd goo; gmake
> gmake[1]: Entering directory `/usr/ports/graphics/xpdf/work/xpdf-3.01/goo'
> c++ -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -I.. -I. -c GHash.cc
> c++ -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -I.. -I. -c GList.cc
> [large portion of output snipped]
> c++ -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -I.. -I./../goo -I. -c
> FoFiType1C.cc
> rm -f libfofi.a
> ar rc libfofi.a FoFiBase.o FoFiEncodings.o FoFiTrueType.o FoFiType1.o
> FoFiType1C.o
> ranlib libfofi.a
> gmake[1]: Leaving directory `/usr/ports/graphics/xpdf/work/xpdf-3.01/fofi'
> cd splash; gmake
> gmake[1]: Entering directory `/usr/ports/graphics/xpdf/work/xpdf-3.01/spl=
ash'
> c++ -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -I.. -I./../goo
> -I./../fofi -I. -I/usr/local/include -I/usr/local/include/freetype2 -c
> Splash.cc
> c++ -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -I.. -I./../goo
> -I./../fofi -I. -I/usr/local/include -I/usr/local/include/freetype2 -c
> SplashBitmap.cc
> c++ -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -I.. -I./../goo
> -I./../fofi -I. -I/usr/local/include -I/usr/local/include/freetype2 -c
> SplashClip.cc
> c++ -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -I.. -I./../goo
> -I./../fofi -I. -I/usr/local/include -I/usr/local/include/freetype2 -c
> SplashFTFont.cc
> SplashFTFont.cc: In member function `virtual SplashPath*
> SplashFTFont::getGlyphPath(int)':
> SplashFTFont.cc:221: error: invalid conversion from `int (*)(const
> FT_Vector*, void*)' to `int (*)(FT_Vector*, void*)'
> SplashFTFont.cc:221: error: invalid conversion from `int (*)(const
> FT_Vector*, void*)' to `int (*)(FT_Vector*, void*)'
> SplashFTFont.cc:221: error: invalid conversion from `int (*)(const
> FT_Vector*, const FT_Vector*, void*)' to `int (*)(FT_Vector*, FT_Vector*,
> void*)'
> SplashFTFont.cc:221: error: invalid conversion from `int (*)(const
> FT_Vector*, const FT_Vector*, const FT_Vector*, void*)' to `int
> (*)(FT_Vector*, FT_Vector*, FT_Vector*, void*)'
> gmake[1]: *** [SplashFTFont.o] Error 1
> gmake[1]: Leaving directory `/usr/ports/graphics/xpdf/work/xpdf-3.01/spla=
sh'
> gmake: *** [all] Error 2
> *** Error code 2
>=20
> Stop in /usr/ports/graphics/xpdf.
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portinstall74760.0 make
> ** Fix the problem and try again.
> ** Listing the failed packages (*:skipped / !:failed)
>         ! graphics/xpdf (bad C++ code)
> --->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

Hmm, maybe in 5 or 10 years time this error will no longer be reported
regularly (that would be nice).  You have stale freetype headers
installed, find and remove them (e.g. using pkg_which).  Google for
more discussion.

Kris


--CE+1k2dSO48ffgeK
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFWrn4Wry0BWjoQKURApnHAJ4nLSJdspJpRS/V68TPHrtMJ4Vv0ACdH/vR
HLhVsHVYXwtjNPVoDb0n+Cc=
=zYlJ
-----END PGP SIGNATURE-----

--CE+1k2dSO48ffgeK--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061115065552.GA99320>