public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* AFPL Ghostscript 6.50 cc errors
@ 2001-01-21 14:53 Soren Andersen
  2001-01-21 20:12 ` Yukihiko Sohda
  2001-01-22  8:01 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 2 replies; 5+ messages in thread
From: Soren Andersen @ 2001-01-21 14:53 UTC (permalink / raw)
  To: cygwin

Hello Cygwin List,

I am needing to build Ghostscript from source and am using Cygwin (latest) 
on WinNT to do it. I have gotten pretty far (I think) but the whole thing is 
now stopped at a part that uses the pthreads (POSIX thread API). I am 
getting a parse error from gcc and I wonder if anyone can help with a clue.

The section of code affected in the AFPL gs source is this:

----- code, watch for wrapping and low-flying owls -----
[filename:  gp_psync.c,v 1.2 2000/09/19]

  21  #include "std.h"
  22  #include "malloc_.h"
  23  #include <pthread.h>
  24  #include "gserror.h"
  25  #include "gserrors.h"
  26  #include "gpsync.h"
// /--/
  45  
  46  typedef struct pt_semaphore_t {
  47      int count;
  48      pthread_mutex_t mutex;
  49      pthread_cond_t cond;
  50  } pt_semaphore_t;
  51  
------ end code ------
----- the error --- watch for wrapping ------
./src/gp_psync.c:49: parse error before `pthread_cond_t'
./src/gp_psync.c:49: warning: no semicolon at end of struct or union
./src/gp_psync.c:50: warning: type defaults to `int' in declaration of `pt_semaphore_t'
./src/gp_psync.c:50: warning: data definition has no type or storage class
./src/gp_psync.c: In function `gp_semaphore_open':
./src/gp_psync.c:68: parse error before `const'
./src/gp_psync.c:73: `sem' undeclared (first use in this function)
./src/gp_psync.c:73: (Each undeclared identifier is reported only once
./src/gp_psync.c:73: for each function it appears in.)
./src/gp_psync.c:76: warning: implicit declaration of function `pthread_cond_init'
./src/gp_psync.c: In function `gp_semaphore_close':
./src/gp_psync.c:83: parse error before `const'
./src/gp_psync.c:86: warning: implicit declaration of function `pthread_cond_destroy'
./src/gp_psync.c:86: `sem' undeclared (first use in this function)
./src/gp_psync.c: In function `gp_semaphore_wait':
./src/gp_psync.c:96: parse error before `const'
./src/gp_psync.c:99: `sem' undeclared (first use in this function)
./src/gp_psync.c:103: warning: implicit declaration of function `pthread_cond_wait'
./src/gp_psync.c: In function `gp_semaphore_signal':
./src/gp_psync.c:118: parse error before `const'
./src/gp_psync.c:121: `sem' undeclared (first use in this function)
./src/gp_psync.c:125: warning: implicit declaration of function `pthread_cond_signal'
./src/gp_psync.c: In function `gp_create_thread':
./src/gp_psync.c:223: warning: implicit declaration of function `pthread_attr_setdetachstate'
make: *** [obj/gp_psync.o] Error 1

----- end console text -- end low-flying owls -----

I really need (as opposed to am doing as an academic exercise of 
some sort) to build this Ghostscript from source for my WinNT 
system because I need to compile-in a custom device driver 
("hpdj") for HP Officejet hardware.

If anyone has successfully built this newest release of gs on 
Cygwin, perhaps you'd be kind enough to offer some clues about 
your procedure. Or if anyone has some clue about pthreads and 
how it figures, is it really necessary, etc.

  Many Thanks,
     soren andersen


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* Re: AFPL Ghostscript 6.50 cc errors
  2001-01-21 14:53 AFPL Ghostscript 6.50 cc errors Soren Andersen
@ 2001-01-21 20:12 ` Yukihiko Sohda
  2001-01-22  8:01 ` Larry Hall (RFK Partners, Inc)
  1 sibling, 0 replies; 5+ messages in thread
From: Yukihiko Sohda @ 2001-01-21 20:12 UTC (permalink / raw)
  To: cygwin

Hi, Soren.

Cygwin doesn't have pthread functionality completely, yet.
So edit makefile as following.

290c296
< SYNC=posync
---
> SYNC=nosync

This means the gs doesn't use the pthreads.
But it works fine.

http://www.cs.wisc.edu/~ghost/doc/AFPL/6.50/Make.htm#No_multi_thread


On Sun, 21 Jan 2001 17:53:21 -0500 "Soren Andersen" <soren@wonderstorm.com> wrote:
> I am needing to build Ghostscript from source and am using Cygwin (latest) 
> on WinNT to do it. I have gotten pretty far (I think) but the whole thing is 
> now stopped at a part that uses the pthreads (POSIX thread API). I am 
> getting a parse error from gcc and I wonder if anyone can help with a clue.
> 
> I really need (as opposed to am doing as an academic exercise of 
> some sort) to build this Ghostscript from source for my WinNT 
> system because I need to compile-in a custom device driver 
> ("hpdj") for HP Officejet hardware.
> 
> If anyone has successfully built this newest release of gs on 
> Cygwin, perhaps you'd be kind enough to offer some clues about 
> your procedure. Or if anyone has some clue about pthreads and 
> how it figures, is it really necessary, etc.

----
Yukihiko Sohda <sohda@is.titech.ac.jp>


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* Re: AFPL Ghostscript 6.50 cc errors
  2001-01-21 14:53 AFPL Ghostscript 6.50 cc errors Soren Andersen
  2001-01-21 20:12 ` Yukihiko Sohda
@ 2001-01-22  8:01 ` Larry Hall (RFK Partners, Inc)
  2001-01-22 12:24   ` Earnie Boyd
  1 sibling, 1 reply; 5+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-01-22  8:01 UTC (permalink / raw)
  To: soren, cygwin

At 05:53 PM 1/21/2001, Soren Andersen wrote:
>I am needing to build Ghostscript from source and am using Cygwin (latest) 
>on WinNT to do it. I have gotten pretty far (I think) but the whole thing is 
>now stopped at a part that uses the pthreads (POSIX thread API). I am 
>getting a parse error from gcc and I wonder if anyone can help with a clue.


I don't know if others have compiled Ghostscript with Cygwin but you can
find that pthreads use is not supported by Cygwin by checking the email
archives.

Good luck,


Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* Re: AFPL Ghostscript 6.50 cc errors
  2001-01-22  8:01 ` Larry Hall (RFK Partners, Inc)
@ 2001-01-22 12:24   ` Earnie Boyd
  2001-01-22 12:37     ` Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 5+ messages in thread
From: Earnie Boyd @ 2001-01-22 12:24 UTC (permalink / raw)
  To: Larry Hall (RFK Partners, Inc); +Cc: soren, cygwin

"Larry Hall (RFK Partners, Inc)" wrote:
> 
> I don't know if others have compiled Ghostscript with Cygwin but you can
> find that pthreads use is not supported by Cygwin by checking the email
                            ^^^ s/not/only partially/
> archives.
> 

Cheers,
Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* Re: AFPL Ghostscript 6.50 cc errors
  2001-01-22 12:24   ` Earnie Boyd
@ 2001-01-22 12:37     ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 5+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-01-22 12:37 UTC (permalink / raw)
  To: Earnie Boyd; +Cc: soren

At 03:24 PM 1/22/2001, Earnie Boyd wrote:
>"Larry Hall (RFK Partners, Inc)" wrote:
> > 
> > I don't know if others have compiled Ghostscript with Cygwin but you can
> > find that pthreads use is not supported by Cygwin by checking the email
>                             ^^^ s/not/only partially/
> > archives.
> > 
>
>Cheers,
>Earnie.



Excuse me.  I should have been more clear.  I meant that the pthread 
package, external to Cygwin, is not supported by Cygwin.  Although people 
have tried it, and some have reported some success, the Cygwin DLL doesn't
attempt to support this package.  The Cygwin DLL does have its own internal
implementation of pthreads though.  This capability is part of the Cygwin 
DLL itself and the external package for pthreads, to which Soren was 
referring, is not required or recommended.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2001-01-22 12:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-21 14:53 AFPL Ghostscript 6.50 cc errors Soren Andersen
2001-01-21 20:12 ` Yukihiko Sohda
2001-01-22  8:01 ` Larry Hall (RFK Partners, Inc)
2001-01-22 12:24   ` Earnie Boyd
2001-01-22 12:37     ` Larry Hall (RFK Partners, Inc)

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).