public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* a2ps on Cygwin quietly exits with code 127 on Windows 7
@ 2010-07-27  3:20 Beau Nanaz
  2010-07-27  3:34 ` Dave Korn
  0 siblings, 1 reply; 9+ messages in thread
From: Beau Nanaz @ 2010-07-27  3:20 UTC (permalink / raw)
  To: cygwin

Greetings.

I have a new Windows-7 machine and one of the first things I downloaded 
was Cygwin, making sure to include a2ps and ps2pdf.

Unlike the flawless running (after diddling $HOME/.a2ps/a2psrc) I had 
under my previous XP box, This one is misbehaving: It does nothing 
visible, even for a2ps --version.  Observe:
+--------------------------------+
| Jake@Maxwell ~$ a2ps --version |
| Jake@Maxwell ~$ echo $?        |
| 127                            |
+--------------------------------+

Error 127?  What's wrong?  According to errno.h:
#define EISCONN 127     /* Socket is already connected */

I already know from the cygwin setup that this is a2ps release 4.13.

Has a2ps gotten too smart and started messing with sockets?  if so, is 
there an option in a2psrc I can mess with to make remove this obstruction?

Thanks for any useful advice here.

-- JS

Note: If I could have found a forum on a2ps alone I would have posted 
this there.
-- 
To contact me, do not use [Reply];
Use jakesalomon at yahoo dot com


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: a2ps on Cygwin quietly exits with code 127 on Windows 7
  2010-07-27  3:20 a2ps on Cygwin quietly exits with code 127 on Windows 7 Beau Nanaz
@ 2010-07-27  3:34 ` Dave Korn
  2010-07-27  5:34   ` Yaakov (Cygwin/X)
  2010-07-27  5:38   ` Rasputin Paskudniak
  0 siblings, 2 replies; 9+ messages in thread
From: Dave Korn @ 2010-07-27  3:34 UTC (permalink / raw)
  To: cygwin

On 23/07/2010 21:23, Beau Nanaz wrote:
> Greetings.
> 
> I have a new Windows-7 machine and one of the first things I downloaded
> was Cygwin, making sure to include a2ps and ps2pdf.
> 
> Unlike the flawless running (after diddling $HOME/.a2ps/a2psrc) I had
> under my previous XP box, This one is misbehaving: It does nothing
> visible, even for a2ps --version.  

  Try installing libintl2.  a2ps.exe depends on that very old version but
doesn't mention it explicitly in its setup.hint dependencies.  (Probably it
used to get pulled in by default anyway by some other package but now the last
other thing that used to use v2 of libintl has been updated to a more recent
one so there's nothing left to cause it to be installed any more.)

    cheers,
      DaveK



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: a2ps on Cygwin quietly exits with code 127 on Windows 7
  2010-07-27  3:34 ` Dave Korn
@ 2010-07-27  5:34   ` Yaakov (Cygwin/X)
  2010-07-27  6:00     ` Rasputin Paskudniak
  2010-07-27  5:38   ` Rasputin Paskudniak
  1 sibling, 1 reply; 9+ messages in thread
From: Yaakov (Cygwin/X) @ 2010-07-27  5:34 UTC (permalink / raw)
  To: cygwin

On Tue, 2010-07-27 at 04:53 +0100, Dave Korn wrote:
>   Try installing libintl2.  a2ps.exe depends on that very old version but
> doesn't mention it explicitly in its setup.hint dependencies.  (Probably it
> used to get pulled in by default anyway by some other package but now the last
> other thing that used to use v2 of libintl has been updated to a more recent
> one so there's nothing left to cause it to be installed any more.)

The a2ps maintainer is David Hudson, who has AFAICS not been heard from
on these lists since October 2005.  In the meantime, besides this
release depending on an ancient libintl2, there is a new version 4.14
available upstream.


Yaakov



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: a2ps on Cygwin quietly exits with code 127 on Windows 7
  2010-07-27  3:34 ` Dave Korn
  2010-07-27  5:34   ` Yaakov (Cygwin/X)
@ 2010-07-27  5:38   ` Rasputin Paskudniak
  2010-08-02 11:40     ` Rasputin Paskudniak
  1 sibling, 1 reply; 9+ messages in thread
From: Rasputin Paskudniak @ 2010-07-27  5:38 UTC (permalink / raw)
  To: cygwin

On 7/26/2010 11:53 PM, Dave Korn wrote:
> On 23/07/2010 21:23, Beau Nanaz wrote:
>> Greetings.
>>
>> I have a new Windows-7 machine and one of the first things I downloaded
>> was Cygwin, making sure to include a2ps and ps2pdf.
>>
>> Unlike the flawless running (after diddling $HOME/.a2ps/a2psrc) I had
>> under my previous XP box, This one is misbehaving: It does nothing
>> visible, even for a2ps --version.
>
>    Try installing libintl2.  a2ps.exe depends on that very old version but
> doesn't mention it explicitly in its setup.hint dependencies.  (Probably it
> used to get pulled in by default anyway by some other package but now the last
> other thing that used to use v2 of libintl has been updated to a more recent
> one so there's nothing left to cause it to be installed any more.)
>
>      cheers,
>        DaveK
>
>
>
YEOWW!  That did it.  My problem has been solved - I just ran it ant 
then ran that through ps2pdf.  Beautiful!!

Thank you!  Now where is there an FAQ on a2ps so we can add that to the 
list.  I can't be the only one banging my head against the wall on this 
issue.  (And whatever nomm de guerre I am using, my first name is *not* 
Harvey. ;-)

-- 
+- Rasputin Paskudniak -----------------------------------+
|- In perpetual pursuit of undomesticated aquatic avians -|
+---------------------------------------------------------+


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: a2ps on Cygwin quietly exits with code 127 on Windows 7
  2010-07-27  5:34   ` Yaakov (Cygwin/X)
@ 2010-07-27  6:00     ` Rasputin Paskudniak
  2010-07-31  5:00       ` Yaakov (Cygwin/X)
  0 siblings, 1 reply; 9+ messages in thread
From: Rasputin Paskudniak @ 2010-07-27  6:00 UTC (permalink / raw)
  To: cygwin

On 7/27/2010 12:47 AM, Yaakov (Cygwin/X) wrote:
> On Tue, 2010-07-27 at 04:53 +0100, Dave Korn wrote:
>>    Try installing libintl2.  a2ps.exe depends on that very old version but
>> doesn't mention it explicitly in its setup.hint dependencies.  (Probably it
>> used to get pulled in by default anyway by some other package but now the last
>> other thing that used to use v2 of libintl has been updated to a more recent
>> one so there's nothing left to cause it to be installed any more.)
>
> The a2ps maintainer is David Hudson, who has AFAICS not been heard from
> on these lists since October 2005.  In the meantime, besides this
> release depending on an ancient libintl2, there is a new version 4.14
> available upstream.
>
>
> Yaakov

Yaakov,
I have tried compiling 4.14.  Here is the last few lines of the make 
output, with line numbers to compensate for line-breaks:

     179     /bin/sh ../libtool --tag=CC --mode=compile gcc 
-DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" 
-DSYSCONFFILE=\"/usr/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl 
-I.    -g -O2  -c -o path-concat.lo path-concat.c
     180  gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" 
-DSYSCONFFILE=\"/usr/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl 
-I. -g -O2 -c path-concat.c -o path-concat.o
     181 In file included from path-concat.c:30:
     182 /usr/include/string.h:58: error: parse error before "void"
     183 make[3]: *** [path-concat.lo] Error 1
     184 make[3]: Leaving directory `/home/Jake/scratch/a2ps/a2ps-4.14/lib'
     185 make[2]: *** [all] Error 2
     186 make[2]: Leaving directory `/home/Jake/scratch/a2ps/a2ps-4.14/lib'
     187 make[1]: *** [all-recursive] Error 1
     188 make[1]: Leaving directory `/home/Jake/scratch/a2ps/a2ps-4.14'
     189 make: *** [all] Error 2

(Sighh..)


-- 
+- Rasputin Paskudniak -----------------------------------+
|- In perpetual pursuit of undomesticated aquatic avians -|
+---------------------------------------------------------+


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: a2ps on Cygwin quietly exits with code 127 on Windows 7
  2010-07-27  6:00     ` Rasputin Paskudniak
@ 2010-07-31  5:00       ` Yaakov (Cygwin/X)
  2010-09-29 15:30         ` Yaakov (Cygwin/X)
  0 siblings, 1 reply; 9+ messages in thread
From: Yaakov (Cygwin/X) @ 2010-07-31  5:00 UTC (permalink / raw)
  To: cygwin

On Tue, 2010-07-27 at 01:51 -0400, Rasputin Paskudniak wrote:
> Yaakov,
> I have tried compiling 4.14.  Here is the last few lines of the make 
> output, with line numbers to compensate for line-breaks:
> 
>      179     /bin/sh ../libtool --tag=CC --mode=compile gcc 
> -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" 
> -DSYSCONFFILE=\"/usr/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl 
> -I.    -g -O2  -c -o path-concat.lo path-concat.c
>      180  gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" 
> -DSYSCONFFILE=\"/usr/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl 
> -I. -g -O2 -c path-concat.c -o path-concat.o
>      181 In file included from path-concat.c:30:
>      182 /usr/include/string.h:58: error: parse error before "void"

I got the same error, but haven't had a chance to figure it out.  If the
a2ps maintainer doesn't appear soon then I'll try to take another look
at it.


Yaakov



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: a2ps on Cygwin quietly exits with code 127 on Windows 7
  2010-07-27  5:38   ` Rasputin Paskudniak
@ 2010-08-02 11:40     ` Rasputin Paskudniak
  2010-08-02 16:28       ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 9+ messages in thread
From: Rasputin Paskudniak @ 2010-08-02 11:40 UTC (permalink / raw)
  To: cygwin

On 7/27/2010 1:33 AM, Rasputin Paskudniak wrote:
> On 7/26/2010 11:53 PM, Dave Korn wrote:
>> On 23/07/2010 21:23, Beau Nanaz wrote:
>>> Greetings.
>>>
>>> I have a new Windows-7 machine and one of the first things I downloaded
>>> was Cygwin, making sure to include a2ps and ps2pdf.
>>>
>>> Unlike the flawless running (after diddling $HOME/.a2ps/a2psrc) I had
>>> under my previous XP box, This one is misbehaving: It does nothing
>>> visible, even for a2ps --version.
>>
>> Try installing libintl2. a2ps.exe depends on that very old version but
>> doesn't mention it explicitly in its setup.hint dependencies.
>> (Probably it
>> used to get pulled in by default anyway by some other package but now
>> the last
>> other thing that used to use v2 of libintl has been updated to a more
>> recent
>> one so there's nothing left to cause it to be installed any more.)
>>
>> cheers,
>> DaveK
>>
>>
>>
> YEOWW! That did it. My problem has been solved - I just ran it ant then
> ran that through ps2pdf. Beautiful!!
>
> Thank you! Now where is there an FAQ on a2ps so we can add that to the
> list. I can't be the only one banging my head against the wall on this
> issue. (And whatever nomm de guerre I am using, my first name is *not*
> Harvey. ;-)

A day after I posted the above, I had an awful insight into David's 
helpful suggestion:
 >> Try installing libintl2. a2ps.exe depends on that very old version
 >> but doesn't mention it explicitly in its setup.hint dependencies.

Are there other such undocumented dependencies lurking around the Cygwin 
build?  Obviously, this one got away.  Is there any way we could edit 
that setup.hint file to fix this for the nest poor slob who encounters 
this problem?

On the Cygwin side of the blame:  In every Unix/Linux I used, if a 
shared library cannot be found, we get a very clear message, something like:
... Missing library ....
In this case, all I got was the quiet death of the program.  The only 
way to get any kind of message was to try to run it under strace, which 
yielded an unhelpful message, described in the thread with the subject line:
 > strace on a2ps complains about \Device\Harddisk4\DR4

I'd like to again thank DaveK and Rene for the help on this problem.
-- 
+- Rasputin Paskudniak -----------------------------------+
|- In perpetual pursuit of undomesticated aquatic avians -|
+---------------------------------------------------------+


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: a2ps on Cygwin quietly exits with code 127 on Windows 7
  2010-08-02 11:40     ` Rasputin Paskudniak
@ 2010-08-02 16:28       ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 9+ messages in thread
From: Larry Hall (Cygwin) @ 2010-08-02 16:28 UTC (permalink / raw)
  To: cygwin

On 8/2/2010 7:37 AM, Rasputin Paskudniak wrote:


<snip>

> On the Cygwin side of the blame: In every Unix/Linux I used, if a shared
> library cannot be found, we get a very clear message, something like:
> ... Missing library ....
> In this case, all I got was the quiet death of the program.

echo $? typically returns error code 53.  'net helpmsg 53' gives a decent
hint - "The network path was not found."

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: a2ps on Cygwin quietly exits with code 127 on Windows 7
  2010-07-31  5:00       ` Yaakov (Cygwin/X)
@ 2010-09-29 15:30         ` Yaakov (Cygwin/X)
  0 siblings, 0 replies; 9+ messages in thread
From: Yaakov (Cygwin/X) @ 2010-09-29 15:30 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]

On Fri, 2010-07-30 at 17:24 -0500, Yaakov (Cygwin/X) wrote:
> On Tue, 2010-07-27 at 01:51 -0400, Rasputin Paskudniak wrote:
> > Yaakov,
> > I have tried compiling 4.14.  Here is the last few lines of the make 
> > output, with line numbers to compensate for line-breaks:
> > 
> >      179     /bin/sh ../libtool --tag=CC --mode=compile gcc 
> > -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" 
> > -DSYSCONFFILE=\"/usr/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl 
> > -I.    -g -O2  -c -o path-concat.lo path-concat.c
> >      180  gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" 
> > -DSYSCONFFILE=\"/usr/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl 
> > -I. -g -O2 -c path-concat.c -o path-concat.o
> >      181 In file included from path-concat.c:30:
> >      182 /usr/include/string.h:58: error: parse error before "void"
> 
> I got the same error, but haven't had a chance to figure it out.  If the
> a2ps maintainer doesn't appear soon then I'll try to take another look
> at it.

Sorry for the delay, I haven't looked at this in a while.  The
attached .cygport contains the workaround (namely the HAVE_MEMPCPY
define).

HTH,


Yaakov


[-- Attachment #2: 4.14-font-paths.patch --]
[-- Type: text/x-patch, Size: 828 bytes --]

--- origsrc/a2ps-4.14/configure.in	2007-05-01 23:35:49.000000000 -0500
+++ src/a2ps-4.14/configure.in	2010-09-29 05:27:02.670787200 -0500
@@ -208,6 +208,7 @@ AC_MSG_CHECKING(for PostScript fonts pat
 # Find out if ghostscript is installed
 ac_psfont_path=
 for ac_dir in /usr/local/ghostscript/fonts \
+  /usr/share/ghostscript/fonts \
   /usr/local/share/ghostscript/fonts;
 do
   if test "cd $ac_dir 2>/dev/null && echo *.afm"; then
--- origsrc/a2ps-4.14/ogonkify/configure.in	2007-12-28 20:05:05.000000000 -0600
+++ src/a2ps-4.14/ogonkify/configure.in	2010-09-29 05:26:32.049084300 -0500
@@ -22,6 +22,7 @@ AC_DEFUN([ad_IBMFONTS],
  [AC_PATH_X
   AC_MSG_CHECKING(for IBM font files)
   for i in $x_libraries/X11/fonts/Type1 \
+     /usr/share/fonts/Type1 \
      /usr/local/share/TeX/gs/fonts
   do
     if test -r "$i"; then

[-- Attachment #3: a2ps-4.14-1.cygport --]
[-- Type: text/plain, Size: 232 bytes --]

DESCRIPTION="Anything to PostScript converter"
HOMEPAGE="http://www.gnu.org/software/a2ps/"
SRC_URI="mirror://gnu/a2ps/${P}.tar.gz"
PATCH_URI="4.14-font-paths.patch"

DIFF_EXCLUDES="doc"

CPPFLAGS+=" -DHAVE_MEMPCPY"
NO_AUTOPOINT=1


[-- Attachment #4: Type: text/plain, Size: 218 bytes --]

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-09-29 10:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-27  3:20 a2ps on Cygwin quietly exits with code 127 on Windows 7 Beau Nanaz
2010-07-27  3:34 ` Dave Korn
2010-07-27  5:34   ` Yaakov (Cygwin/X)
2010-07-27  6:00     ` Rasputin Paskudniak
2010-07-31  5:00       ` Yaakov (Cygwin/X)
2010-09-29 15:30         ` Yaakov (Cygwin/X)
2010-07-27  5:38   ` Rasputin Paskudniak
2010-08-02 11:40     ` Rasputin Paskudniak
2010-08-02 16:28       ` Larry Hall (Cygwin)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).