DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th July 2009
Mantazz Mantazz is offline
Shell Scout
 
Join Date: Oct 2008
Posts: 90
Thanked 0 Times in 0 Posts
Default FBSD 7.2 cannot build ghostscript8

On my freshly installed 7.2-release box I cannot build ghostscript8 from ports; I keep running into the error
Code:
cc  -DHAVE_MKSTEMP -DHAVE_HYPOT   -DHAVE_FONTCONFIG -O2 -fno-strict-aliasing -pipe -fPIC -DUPD_SIGNAL=0 -I. -I/usr/ports/print/ghostscript8/work/ghostscript-8.64/jasper/src/libjasper/include -I/usr/local/include/libpng -I/usr/local/include  -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 long" -O2 -fno-strict-aliasing -pipe -DUSE_LIBICONV_GNU -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/8.64\" -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.8 -o ./bin/../sobin/libgs.so.8.64
./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
./obj/../soobj/echogs -a ./obj/../soobj/ldt.tr -s - -lm  -liconv -lstdc++  -L/usr/local/lib -lfontconfig   -Wl,-export-dynamic -lpthread -lm
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
        XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
        FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
        DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
        DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
        DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
        DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
        DEVICE_DEVS_EXTRA= \
        /bin/sh <./obj/../soobj/ldt.tr
./obj/../soobj/gdevl256.o(.text+0x7b0): In function `gs_shared_init':
: multiple definition of `gs_shared_init'
./obj/../soobj/gdevxalt.o(.text+0x1830): first defined here
/usr/bin/ld: Warning: size of symbol `gs_shared_init' changed from 150 in ./obj/../soobj/gdevxalt.o to 38 in ./obj/../soobj/gdevl256.o
gmake[1]: *** [bin/../sobin/libgs.so.8.64] Error 1
gmake[1]: Leaving directory `/usr/ports/print/ghostscript8/work/ghostscript-8.64'
gmake: *** [so] Error 2
*** Error code 1
I looked around and found a suggestion that the error might be related to building it with svga support, but I have tried a couple different ways to kill svga support (both in the Makefile and the make command invoked using "WITH_SVGALIB=0") and I receive the same error. I tried to build cups (from /usr/ports/print/cups") and ran into this error as well.

I just cvsup'ed my entire ports tree hoping that a newer version of ghostscript8 or cups would resolve this issue, but I see the same error as before.
Reply With Quote
  #2   (View Single Post)  
Old 7th July 2009
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Thanked 36 Times in 34 Posts
Default

The ghostscript port uses the OPTIONS framework (the blue screen with the checkboxes) and those settings are stored in another location, usually /var/db/ports/ghostscript8. If you selected the both of the svga options previously, they will still be used. Get the port back to it's original state (no hacks) and try running this:
# cd /usr/ports/print/ghostscript8 && make config
Then deselect GS_lvga256 and GS_vgalib.
Then run:
# make clean && make install clean

If you want to disable the svga option via the commandline without changing the OPTIONS, you would have to run this:
# make -DWITHOUT_SVGALIB install clean
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
make build hangs chill OpenBSD Installation and Upgrading 5 2nd April 2009 05:03 PM
jdk 1.6 build error. bsdnewbie999 OpenBSD General 19 3rd January 2009 02:51 PM
build a sftp server milo974 OpenBSD General 9 26th September 2008 11:09 AM
Do you build your own computers? JMJ_coder Off-Topic 28 28th July 2008 03:04 AM
New server build tanked FreeBSD General 1 5th June 2008 06:41 AM


All times are GMT. The time now is 01:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick