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' > ===> Cleaning for freetype2-2.2.1_1 > ===> Cleaning for gmake-3.81_1 > ===> Cleaning for autoconf-2.59_2 > ===> Cleaning for t1lib-5.1.0_1,1 > ===> Cleaning for open-motif-2.2.3_2 > ===> Cleaning for xorg-libraries-6.9.0 > ===> Cleaning for gsfonts-8.11_2 > ===> Cleaning for pkg-config-0.21 > ===> Cleaning for gettext-0.14.5_2 > ===> Cleaning for perl-5.8.8 > ===> Cleaning for m4-1.4.4 > ===> Cleaning for help2man-1.36.4_1 > ===> Cleaning for libtool-1.5.22_2 > ===> Cleaning for imake-6.9.0 > ===> Cleaning for libdrm-2.0.2 > ===> Cleaning for fontconfig-2.3.2_6,1 > ===> Cleaning for libiconv-1.9.2_2 > ===> Cleaning for p5-gettext-1.05_1 > ===> Cleaning for expat-2.0.0_1 > ===> Cleaning for xpdf-3.01_3 > ===> Vulnerability check disabled, database not found > ===> Extracting for xpdf-3.01_3 > => MD5 Checksum OK for xpdf-3.01.tar.gz. > => SHA256 Checksum OK for xpdf-3.01.tar.gz. > => MD5 Checksum OK for xpdf-3.01pl2.patch. > => SHA256 Checksum OK for xpdf-3.01pl2.patch. > ===> Patching for xpdf-3.01_3 > ===> Applying distribution patches for xpdf-3.01_3 > ===> Applying FreeBSD patches for xpdf-3.01_3 > ===> xpdf-3.01_3 depends on executable in : freetype-config - found > ===> xpdf-3.01_3 depends on executable in : gmake - found > ===> xpdf-3.01_3 depends on file: /usr/local/bin/autoconf259 - found > ===> xpdf-3.01_3 depends on shared library: t1.5 - found > ===> xpdf-3.01_3 depends on shared library: freetype.9 - found > ===> xpdf-3.01_3 depends on shared library: Xm.3 - found > ===> xpdf-3.01_3 depends on shared library: X11.6 - found > ===> 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 wheel > 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 needed > 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 > ===> 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/splash' > 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/splash' > gmake: *** [all] Error 2 > *** Error code 2 > > 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
pgpwFJG7jIy5X.pgp
Description: PGP signature