#15144 closed defect (worksforme)
Ghostscript fails with: /src/gdevx.c:1209: error: 'dy' undeclared (first use in this function)
Reported by: | btjanes@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: |
Description
---> Fetching ghostscript ---> Attempting to fetch ghostscript-8.62.tar.gz from http://downloads.sourceforge.net/ghostscript ---> Attempting to fetch ghostscript-fonts-std-8.11.tar.gz from http://downloads.sourceforge.net/gs-fonts ---> Attempting to fetch ghostscript-fonts-other-6.0.tar.gz from http://downloads.sourceforge.net/gs-fonts ---> Verifying checksum(s) for ghostscript ---> Extracting ghostscript ---> Applying patches to ghostscript ---> Configuring ghostscript ---> Building ghostscript Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/work/ghostscript-8.62" && make " returned error 2 Command output: ./src/gdevx.c:1209: error: 'dy' undeclared (first use in this function) ./src/gdevx.c:1209: error: 'w' undeclared (first use in this function) ./src/gdevx.c:1209: error: 'h' undeclared (first use in this function) ./src/gdevx.c:1210: error: request for member 'foreground' in something not a structure or union ./src/gdevx.c:1211: error: request for member 'function' in something not a structure or union ./src/gdevx.c:1211: error: 'GXand' undeclared (first use in this function) ./src/gdevx.c:1219: error: request for member 'background' in something not a structure or union ./src/gdevx.c:1219: warning: comparison between pointer and integer ./src/gdevx.c:1220: error: request for member 'background' in something not a structure or union ./src/gdevx.c:1223: error: request for member 'function' in something not a structure or union ./src/gdevx.c:1223: error: 'GXor' undeclared (first use in this function) ./src/gdevx.c:1231: error: request for member 'background' in something not a structure or union ./src/gdevx.c:1232: error: request for member 'background' in something not a structure or union ./src/gdevx.c:1240: warning: comparison between pointer and integer ./src/gdevx.c:1245: warning: comparison between pointer and integer ./src/gdevx.c:1250: warning: implicit declaration of function 'XFillRectangles' ./src/gdevx.c:1251: warning: statement with no effect ./src/gdevx.c:1254: error: 'struct gc_ptr_element_s' has no member named 'x' ./src/gdevx.c:1254: error: 'struct gc_ptr_element_s' has no member named 'y' ./src/gdevx.c:1254: warning: left-hand operand of comma expression has no effect ./src/gdevx.c:1254: warning: statement with no effect ./src/gdevx.c:1259: warning: comparison between pointer and integer ./src/gdevx.c:1260: error: 'struct gc_ptr_element_s' has no member named 'width' ./src/gdevx.c:1260: error: 'struct gc_ptr_element_s' has no member named 'height' ./src/gdevx.c:1260: warning: left-hand operand of comma expression has no effect ./src/gdevx.c:1260: warning: statement with no effect ./src/gdevx.c:1261: error: wrong type argument to increment ./src/gdevx.c:1261: warning: statement with no effect ./src/gdevx.c:1271: error: request for member 'foreground' in something not a structure or union make: * [obj/gdevx.o] Error 1
Error: Status 1 encountered during processing.
Change History (5)
comment:1 Changed 17 years ago by btjanes@…
comment:2 Changed 17 years ago by takanori@…
I couldn't reproduce your problem. It works here.
$ uname -a Darwin pc192168024053.miko.org 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar 4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386 $ gcc --version i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5480) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ port installed ghostscript The following ports are currently installed: ghostscript @8.62_1 (active)
Maybe you have not installed X11SDK correctly, I guess.
comment:3 follow-up: 5 Changed 17 years ago by btjanes@…
Thanks for the quick reply! Upon trying to install ghostscript, I noticed that it wanted to also install X11 (Xfree86). I read some stuff on the web saying that you shouldn't use that and that you should instead use Leopard's X11. Well, so I linked /usr/X11R6 to /usr/X11 and everything seemed fine until I got that error. I just installed the X11SDK from my Leopard disk and it looks like ghostscript has now installed correctly. Thanks for you help. BTW, is there something that I missed that told me that I needed that SDK or is it just one of those things that I should have known?
comment:4 Changed 17 years ago by takanori@…
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:5 Changed 17 years ago by jmroot (Joshua Root)
Replying to btjanes@rtda.com:
BTW, is there something that I missed that told me that I needed that SDK or is it just one of those things that I should have known?
It is mentioned on the install page.
Sorry, I forgot to format the output and mention that this is with a brand new install (first time user) of macports 1.600, trying to grab the default version of ghostscript, 8.62.