public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Soren Andersen" <soren@wonderstorm.com>
To: cygwin@cygwin.com
Subject: AFPL Ghostscript 6.50 cc errors
Date: Sun, 21 Jan 2001 14:53:00 -0000	[thread overview]
Message-ID: <3A6B2211.29685.12658CFE@localhost> (raw)

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

             reply	other threads:[~2001-01-21 14:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-21 14:53 Soren Andersen [this message]
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)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A6B2211.29685.12658CFE@localhost \
    --to=soren@wonderstorm.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).