More on Failure to reinstall Gnome2

Scott Ballantyne sdb at ssr.com
Wed Sep 14 16:37:57 UTC 2011


Hi,

I sent a message a few days ago to this list, but haven't seen a
reply. I'm hoping more information will encourage an expert to help me
out. I tried including the complete output of the build from
ghostscript9 as the FAQ encouraged me to do, but the moderator
rejected it. So I've included only the beginning (with the configure
output) and the end with the errors and a little context. Hope that is
enough. 

Here's what I've tried - all end up with the same problem, which is a
failure to rebuild ghostscript. They all stop at the same place in the
build.

1) Tried reinstalling libnotify and libproxy.  That didn't work, and
asking on the freebsd-quesitons list, I got a suggestion from the
questions list to nuke /usr/ports.

But before doing that, I went to the gnome FAQ, and followed the starting
from scratch portion of FAQ 6.

pkg_delete -rf pkg-config\*

There were a few errors here, about directories which weren't empty
and couldn't be completely removed. I ignored them (but on a later
try, also rm'ed them, with the same results).

cd /usr/ports/x11/gnome2
make clean

Again, stopped here with error from ghostscript9 build

So I tried the more extreme solution. I rm'ed /usr/ports and then
csup'ed it. I then followed the suggestions at the end of the
portmaster man page to do a complete reinstallation of all the
ports. Since gnome2 was gone, I realize this wouldn't reinstall ALL
the ports, but I thought it was worth a try. So

portmaster --list-origins > ~/installed-ports
I then updated (again) the ports tree
portmaster --clean-distfiles-all
portmaster --check-port-dbdir
portmaster -Faf
pkg_delete '*'
rm -rf /usr/local/lib/compat/pkg
check /usr/local and /var/db/pkg
re-install portmaster
portmaster `cat ~/installed-port-list`

All the ports reinstalled without any problem.

I then tried reinstalling gnome2

cd gnome2
make

And once again ending with a failure to build ghostscript9

So I once again did

pkg_delete -rf pkg-config\*

but this time went and deleted each and every directory that was
listed as a problem in the error messages.

This time I used portmaster

portmaster -D x11/gnome2

and with the same result. And here I am today, asking for help once
again.

I append the complete build from ghostscript9. I can send the entire
output of portmaster -D x11/ghostscript9 if anyone needs that.

If anyone can assist me, I would be most grateful.

Thanks,
Scott
-- 
sdb at ssr.com

===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for ghostscript9-9.02_4
===>  Extracting for ghostscript9-9.02_4
=> SHA256 Checksum OK for ghostscript/ghostscript-9.02.tar.bz2.
=> SHA256 Checksum OK for ghostscript/epag-3.09.tar.gz.
/usr/bin/tar -C /usr/ports/print/ghostscript9/work/ghostscript-9.02 -xzf /usr/ports/distfiles//ghostscript/epag-3.09.tar.gz
/bin/ln -s -f epag-3.09 /usr/ports/print/ghostscript9/work/ghostscript-9.02/epag
install  -o root -g wheel -m 444 /usr/ports/print/ghostscript9/files/epag.contrib.mak /usr/ports/print/ghostscript9/work/ghostscript-9.02/base/epag.contrib.mak
===>  Patching for ghostscript9-9.02_4
===>  Applying FreeBSD patches for ghostscript9-9.02_4
/usr/bin/sed -i.bak -e 's|%%DATADIR%%|/usr/local/share/ghostscript|g ;  s|%%GS_VERSION%%|9.02|g'  /usr/ports/print/ghostscript9/work/ghostscript-9.02/contrib/japanese/dmp_site.ps
===>   ghostscript9-9.02_4 depends on executable: gmake - found
===>   ghostscript9-9.02_4 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found
===>   ghostscript9-9.02_4 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found
===>   ghostscript9-9.02_4 depends on file: /usr/local/bin/autoconf-2.68 - found
===>   ghostscript9-9.02_4 depends on shared library: expat - found
===>   ghostscript9-9.02_4 depends on shared library: jasper - found
===>   ghostscript9-9.02_4 depends on shared library: jbig2dec - found
===>   ghostscript9-9.02_4 depends on shared library: jpeg - found
===>   ghostscript9-9.02_4 depends on shared library: png - found
===>   ghostscript9-9.02_4 depends on shared library: tiff - found
===>   ghostscript9-9.02_4 depends on shared library: cupsimage.2 - found
===>   ghostscript9-9.02_4 depends on shared library: fontconfig.1 - found
===>   ghostscript9-9.02_4 depends on shared library: freetype.9 - found
===>   ghostscript9-9.02_4 depends on shared library: iconv.3 - found
===>  Configuring for ghostscript9-9.02_4
configure.ac:1525: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
configure.ac:1525: the top level
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 ISO C89... none needed
checking how to run the C preprocessor... cpp
checking for a sed that does not truncate output... /usr/bin/sed
checking for ranlib... ranlib
checking for pkg-config... /usr/local/bin/pkg-config
checking supported compiler flags... 
   -O2
   -Wall
   -Wstrict-prototypes
   -Wundef
   -Wmissing-declarations
   -Wmissing-prototypes
   -Wwrite-strings
   -Wno-strict-aliasing
   -Wdeclaration-after-statement
   -fno-builtin
   -fno-common

   -g
   -O0
 ...done.
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/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 errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking sys/window.h usability... no
checking sys/window.h presence... no
checking for sys/window.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking for struct stat.st_blocks... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking size of unsigned long int... 8
checking for cos in -lm... yes
checking for pthread_create in -lpthread... yes
checking for libiconv_open in -liconv... yes
checking for stringprep in -lidn... no
checking for systempapername in -lpaper... no
configure: WARNING: disabling support for libpaper
checking for fontconfig with pkg-config... yes
checking for dbus with pkg-config... yes
checking for dlopen in -ldl... no
checking for local freetype library source... yes
checking for local jpeg library source... no
checking for jpeg_set_defaults in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jmemsys.h... no
checking for local zlib source... no
checking for deflate in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for local png library source... no
checking for png_create_write_struct in -lpng... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for local lcms library source... yes
checking for TIFFOpen in -ltiff... yes
checking tiff.h usability... yes
checking tiff.h presence... yes
checking for tiff.h... yes
checking for cups-config... /usr/local/bin/cups-config
checking for local ijs library source... yes
checking for local jbig2dec library source... no
checking for jbig2_page_out in -ljbig2dec... yes
checking for local jasper library source... no
checking for jas_image_create in -ljasper... yes
checking for X... libraries /usr/local/lib, headers /usr/local/include
checking whether -R must be followed by a space... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XOpenDisplay in -lX11... yes
checking for XdbeQueryExtension in -lXext... yes
checking for XtAppCreateShell in -lXt... yes
checking for mkstemp... yes
checking for hypot... yes
checking for fopen64... no
checking for mkstemp64... no
checking for setlocale... yes
checking whether cc needs -traditional... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking return type of signal handlers... void
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for bzero... yes
checking for dup2... yes
checking for floor... yes
checking for gettimeofday... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for mkfifo... yes
checking for modf... yes
checking for pow... yes
checking for putenv... yes
checking for rint... yes
checking for setenv... yes
checking for sqrt... yes
checking for strchr... yes
checking for strerror... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cups/pstopxl
===>  Building for ghostscript9-9.02_4
/bin/ln -s -f /usr/ports/print/ghostscript9/work/ghostscript-9.02/epag-3.09/gdevepag.c /usr/ports/print/ghostscript9/work/ghostscript-9.02/base
/bin/mkdir -p /usr/ports/print/ghostscript9/work/ghostscript-9.02/obj
/bin/mkdir -p /usr/ports/print/ghostscript9/work/ghostscript-9.02/bin

------SNIP and now skipping ahead to the end...

gmake GS_XE=./bin/../sobin/libgs.so.9.02 STDIO_IMPLEMENTATION=c DISPLAY_DEV=./o
./obj/../soobj/genconf ./obj/../soobj/devs.tr -h /dev/stdout -p "%s&s&&" -pl "&-l%s&s&&" -pL "&-L%s&s&&" -ol ./obj/../soobj/ld.tr | awk 'BEGIN{j=0; p=1;} /jpeg_device/ {if(j++ > 0) p=0;} // {if(p==1) { print; } else { p=1 } }' > ./obj/../soobj/gconfxx.h
Can't open /dev/stdout for output.
./obj/../soobj/echogs -a ./obj/../soobj/gconfxx.h 
cc  -DHAVE_MKSTEMP -DHAVE_HYPOT   -DHAVE_FONTCONFIG  -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -O2 -fno-strict-aliasing -pipe -g -fPIC -DUPD_SIGNAL=0 -I.  -I/usr/ports/print/ghostscript9/work/ghostscript-9.02/lcms/include  -I/usr/ports/print/ghostscript9/work/ghostscript-9.02/jasper/src/libjasper/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 -DGX_COLOR_INDEX_TYPE="unsigned long int" -O2 -fno-strict-aliasing -pipe -DUSE_LIBICONV_GNU -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/9.02\" -I./psi -I./obj/../soobj -I./obj/../soobj -I./base  -o ./obj/../soobj/gs.o -c ./psi/gs.c
rm -f ./obj/../soobj/gconfig.c
rm -f ./obj/../soobj/gconfig.h
cp ./obj/../soobj/gconfxx.h ./obj/../soobj/gconfig.h
cp ./base/gconf.c ./obj/../soobj/gconfig.c
cc  -DHAVE_MKSTEMP -DHAVE_HYPOT   -DHAVE_FONTCONFIG  -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -O2 -fno-strict-aliasing -pipe -g -fPIC -DUPD_SIGNAL=0 -I.  -I/usr/ports/print/ghostscript9/work/ghostscript-9.02/lcms/include  -I/usr/ports/print/ghostscript9/work/ghostscript-9.02/jasper/src/libjasper/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 -DGX_COLOR_INDEX_TYPE="unsigned long int" -O2 -fno-strict-aliasing -pipe -DUSE_LIBICONV_GNU -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/9.02\" -fPIC -I./obj/../soobj -I./base  -o ./obj/../soobj/gconfig.o -c ./obj/../soobj/gconfig.c
./obj/../soobj/gconfig.c:189: warning: no previous prototype for 'gs_lib_register_device'
rm -f ./obj/../soobj/gscdefs.c
cp ./base/gscdef.c ./obj/../soobj/gscdefs.c
cc  -DHAVE_MKSTEMP -DHAVE_HYPOT   -DHAVE_FONTCONFIG  -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -O2 -fno-strict-aliasing -pipe -g -fPIC -DUPD_SIGNAL=0 -I.  -I/usr/ports/print/ghostscript9/work/ghostscript-9.02/lcms/include  -I/usr/ports/print/ghostscript9/work/ghostscript-9.02/jasper/src/libjasper/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 -DGX_COLOR_INDEX_TYPE="unsigned long int" -O2 -fno-strict-aliasing -pipe -DUSE_LIBICONV_GNU -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/9.02\" -fPIC -I./obj/../soobj -I./base  -o ./obj/../soobj/gscdefs.o -c ./obj/../soobj/gscdefs.c
rm -f ./obj/../soobj/iconfig.c
cp ./obj/../soobj/gconfxx.h ./obj/../soobj/gconfig.h
cp ./psi/iconf.c ./obj/../soobj/iconfig.c
cc  -DHAVE_MKSTEMP -DHAVE_HYPOT   -DHAVE_FONTCONFIG  -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -O2 -fno-strict-aliasing -pipe -g -fPIC -DUPD_SIGNAL=0 -I.  -I/usr/ports/print/ghostscript9/work/ghostscript-9.02/lcms/include  -I/usr/ports/print/ghostscript9/work/ghostscript-9.02/jasper/src/libjasper/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 -DGX_COLOR_INDEX_TYPE="unsigned long int" -O2 -fno-strict-aliasing -pipe -DUSE_LIBICONV_GNU -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/9.02\" -I./psi -I./obj/../soobj -I./obj/../soobj -I./base  -o ./obj/../soobj/iconfig.o -c ./obj/../soobj/iconfig.c
cc  -DHAVE_MKSTEMP -DHAVE_HYPOT   -DHAVE_FONTCONFIG  -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -O2 -fno-strict-aliasing -pipe -g -fPIC -DUPD_SIGNAL=0 -I.  -I/usr/ports/print/ghostscript9/work/ghostscript-9.02/lcms/include  -I/usr/ports/print/ghostscript9/work/ghostscript-9.02/jasper/src/libjasper/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 -DGX_COLOR_INDEX_TYPE="unsigned long int" -O2 -fno-strict-aliasing -pipe -DUSE_LIBICONV_GNU -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/9.02\" -fPIC -I./obj/../soobj -I./base  -o ./obj/../soobj/gsromfs0.o -c ./base/gsromfs0.c
./obj/../soobj/echogs -w ./obj/../soobj/ldt.tr -n - cc -L/usr/local/lib -L/usr/local/lib -shared -Wl,-soname=libgs.so.9 -o ./bin/../sobin/libgs.so.9.02
./obj/../soobj/echogs -a ./obj/../soobj/ldt.tr -n -s ./obj/../soobj/gsromfs0.o ./obj/../soobj/gs.o -s
cat ./obj/../soobj/ld.tr >>./obj/../soobj/ldt.tr
cat: ./obj/../soobj/ld.tr: No such file or directory
gmake[1]: *** [bin/../sobin/libgs.so.9.02] Error 1
gmake[1]: Leaving directory `/usr/ports/print/ghostscript9/work/ghostscript-9.02'
gmake: *** [so] Error 2
*** Error code 1

Stop in /usr/ports/print/ghostscript9.
*** Error code 1

Stop in /usr/ports/print/ghostscript9.

===>>> make failed for print/ghostscript9
===>>> Aborting update

===>>> Update for print/ghostscript9 failed
===>>> Aborting update

===>>> Update for print/libspectre failed
===>>> Aborting update

===>>> Update for graphics/evince failed
===>>> Aborting update

===>>> Update for x11-toolkits/py-gnome-desktop failed
===>>> Aborting update

===>>> Update for accessibility/orca failed
===>>> Aborting update






More information about the freebsd-gnome mailing list