From MAILER-DAEMON Sun Jan 04 08:51:18 2009
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1LJTNu-0004TU-Dq
	for mharc-bug-ghostscript@gnu.org; Sun, 04 Jan 2009 08:51:18 -0500
Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i18g2000prf.googlegroups.com!not-for-mail
From: hishida77web@gmail.com
Newsgroups: gnu.ghostscript.bug
Date: Sun, 4 Jan 2009 04:20:09 -0800 (PST)
Organization: http://groups.google.com
Lines: 45
Message-ID: <21893e6b-9d64-4d02-9c18-653e1224f94d@i18g2000prf.googlegroups.com>
NNTP-Posting-Host: 59.140.153.205
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1231071609 7359 127.0.0.1 (4 Jan 2009 12:20:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 4 Jan 2009 12:20:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i18g2000prf.googlegroups.com; posting-host=59.140.153.205; 
	posting-account=buBliQoAAACDl1WU0MN7FFlnZVjRh_2H
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 
	5.1),gzip(gfe),gzip(gfe)
Xref: news.stanford.edu gnu.ghostscript.bug:24526
To: bug-ghostscript@gnu.org
X-Mailman-Approved-At: Sun, 04 Jan 2009 08:51:16 -0500
Subject: problem in "make"ing ghost script 8.63
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-ghostscript>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Jan 2009 12:40:21 -0000

Dear developpers,

hi
I have a problem in "make" ghost script 8.63.

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/ldt.tr
./obj/gdevopvp.o: In function `opvp_to_utf8':
gdevopvp.c:(.text+0xedf): undefined reference to `libiconv_open'
gdevopvp.c:(.text+0xf0f): undefined reference to `libiconv'
gdevopvp.c:(.text+0xf32): undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make: *** [bin/gs] Error 1


My problem seems almost same as PROBLEM3 in this message:
http://groups.google.com/group/gnu.ghostscript.bug/browse_thread/thread/e4cf50c3fe6ff176

First, I typed this way:
>./configure --prefix=$HOME
>make
-->error caused.

And I found the message above, then typed:
>make clean
>./configure --prefix=$HOME
>make -j1
--> the error again


Sorry, I am NOT familiar with c & c++, cannot suggest solutions.
Thank you for your kind help.


sincerely,

Hiromi

From MAILER-DAEMON Thu Jan 29 23:18:32 2009
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1LSkps-0006tl-4D
	for mharc-bug-ghostscript@gnu.org; Thu, 29 Jan 2009 23:18:32 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1LSe4o-0003r8-Fg
	for bug-ghostscript@gnu.org; Thu, 29 Jan 2009 16:05:30 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1LSe4l-0003pl-JB
	for bug-ghostscript@gnu.org; Thu, 29 Jan 2009 16:05:30 -0500
Received: from [199.232.76.173] (port=56040 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1LSe4l-0003pb-4D
	for bug-ghostscript@gnu.org; Thu, 29 Jan 2009 16:05:27 -0500
Received: from rv-out-0506.google.com ([209.85.198.232]:38432)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <jason@totten.org>) id 1LSe4k-0005wf-Dz
	for bug-ghostscript@gnu.org; Thu, 29 Jan 2009 16:05:26 -0500
Received: by rv-out-0506.google.com with SMTP id g9so2546084rvb.2
	for <bug-ghostscript@gnu.org>; Thu, 29 Jan 2009 13:05:24 -0800 (PST)
MIME-Version: 1.0
Received: by 10.141.107.13 with SMTP id j13mr203350rvm.65.1233263124186; Thu, 
	29 Jan 2009 13:05:24 -0800 (PST)
Date: Thu, 29 Jan 2009 16:05:24 -0500
Message-ID: <9348fe7f0901291305v6120943at8cc47b3f2b761768@mail.gmail.com>
From: jason totten <jason@totten.org>
To: bug-ghostscript@gnu.org
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Mailman-Approved-At: Thu, 29 Jan 2009 23:18:30 -0500
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.5
Subject: BUG & FIX : Tray selection for PCL 4/5 does not work... fixed in 
	Artifex branch...
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-ghostscript>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2009 21:05:30 -0000

Hi -
I ran across a problem creating PCL files from PDF and the %MediaSource
parameter not working correctly. After fixing the problem locally, I finally
stumbled across the bug at Artifex (
http://bugs.ghostscript.com/show_bug.cgi?id=690182) which has a slightly
less complete solution. The parameter is changed from -d%MediaSource (which
I think is ignored anyway) to -dMediaPosition (which is what it is referred
to in the code as anyway) and it works. The only thing I might check is any
other options that are required if tray "6" is selected.

I'm attaching my changes (rough line numbers) below.

Thanks -
Jason R. Totten

-----------
::gdevdjet.c
~316
 {
     gx_device_hpjet *dev = (gx_device_hpjet *)pdev;
     int paper_source = -1;
-    int paper_source_tab[] = { 5, 1 };
+    int paper_valid_trays[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39 };

     if (dev->ManualFeed_set && dev->ManualFeed) paper_source = 2;
-     else if (dev->MediaPosition_set && dev->MediaPosition >= 0 &&
-          dev->MediaPosition < countof(paper_source_tab))
-     paper_source = paper_source_tab[dev->MediaPosition];
+     else if (dev->MediaPosition_set && dev->MediaPosition >= 0 ){
+           int i;
+           for (i = 0; i < countof(paper_valid_trays); i++){
+              if (dev->MediaPosition == paper_valid_trays[i]){
+                paper_source = dev->MediaPosition;
+                break;
+              }
+           }
+    }

     if (paper_source >= 0)
     sprintf(buf, "%s\033&l%dH", str, paper_source);
     else


~549

     {
     code = param_write_bool(plist, "ManualFeed", &dev->ManualFeed);
     }
+    if (code >= 0)
+    {
+    code = param_write_int(plist, "MediaPosition", &dev->MediaPosition);
+    }
     if (code >=0)
         code = param_write_bool(plist, "Tumble", &dev->Tumble);
     return code;

~568

     code = param_read_bool(plist, "ManualFeed", &ManualFeed);
     if (code == 0) ManualFeed_set = true;
     if (code >= 0) {
-    code = param_read_int(plist, "%MediaSource", &MediaPosition);
+    code = param_read_int(plist, "MediaPosition", &MediaPosition);
     if (code == 0) MediaPosition_set = true;
     else if (code < 0) {
-        if (param_read_null(plist, "%MediaSource") == 0) {
+        if (param_read_null(plist, "MediaPosition") == 0) {
         code = 0;
         }
     }

