public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* pthread in Cygwin? (attempt to build ghostscript 6.5)
@ 2001-03-29 18:00 Wei Ku
  2001-03-29 19:32 ` Robert Collins
  2001-03-29 19:34 ` Norman Vine
  0 siblings, 2 replies; 5+ messages in thread
From: Wei Ku @ 2001-03-29 18:00 UTC (permalink / raw)
  To: cygwin

Hello,

In the last step of building ghostscript 6.5 (after some minor modifications
in a few places) I encountered the following error message:

(while gcc -fno-common -o ./bin/gs ./obj/gs.o ./obj/gp_getnv.o ...)

./obj/gp_psync.o(.text+0x49):gp_psync.c: undefined reference to
`pthread_cond_init'
./obj/gp_psync.o(.text+0x7a):gp_psync.c: undefined reference to
`pthread_cond_destroy'
./obj/gp_psync.o(.text+0xda):gp_psync.c: undefined reference to
`pthread_cond_wait'
./obj/gp_psync.o(.text+0x148):gp_psync.c: undefined reference to
`pthread_cond_signal'
./obj/gp_psync.o(.text+0x28e):gp_psync.c: undefined reference to
`pthread_attr_setdetachstate'

I have /usr/include/pthread.h but can not find libpthread.a anywhere.  Any
help is appreciated.

Wei Ku


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

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

* Re: pthread in Cygwin? (attempt to build ghostscript 6.5)
  2001-03-29 18:00 pthread in Cygwin? (attempt to build ghostscript 6.5) Wei Ku
@ 2001-03-29 19:32 ` Robert Collins
  2001-03-29 19:34   ` Wei Ku
  2001-03-29 19:34 ` Norman Vine
  1 sibling, 1 reply; 5+ messages in thread
From: Robert Collins @ 2001-03-29 19:32 UTC (permalink / raw)
  To: Wei Ku, cygwin

----- Original Message -----
From: "Wei Ku" <weiku@physics.ucdavis.edu>
To: <cygwin@cygwin.com>
Sent: Friday, March 30, 2001 11:37 AM
Subject: pthread in Cygwin? (attempt to build ghostscript 6.5)


> Hello,
>
> In the last step of building ghostscript 6.5 (after some minor
modifications
> in a few places) I encountered the following error message:
>
> (while gcc -fno-common -o ./bin/gs ./obj/gs.o ./obj/gp_getnv.o ...)
>
> ./obj/gp_psync.o(.text+0x49):gp_psync.c: undefined reference to
> `pthread_cond_init'
> ./obj/gp_psync.o(.text+0x7a):gp_psync.c: undefined reference to
> `pthread_cond_destroy'
> ./obj/gp_psync.o(.text+0xda):gp_psync.c: undefined reference to
> `pthread_cond_wait'
> ./obj/gp_psync.o(.text+0x148):gp_psync.c: undefined reference to
> `pthread_cond_signal'
> ./obj/gp_psync.o(.text+0x28e):gp_psync.c: undefined reference to
> `pthread_attr_setdetachstate'
>
> I have /usr/include/pthread.h but can not find libpthread.a anywhere.
Any
> help is appreciated.
>
> Wei Ku
>

Condition variations aren't implemented in the current 1.1.8-2 release
of cygwin. Try the latest snapshot.

I've implemented pthread_attr_setdetachstate, but I think it's bundled
in with a patch that affects newlib so it's not available yet. See
http://sources.redhat.com/ml/cygwin/2001-03/msg01202.html for a clean
workaround.

Note: if your "minor" modificationsincluded defining macros or
prototypes to replace system functions that aren't present, I'm not
surprised you got these link errors.

Rob


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

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

* Re: pthread in Cygwin? (attempt to build ghostscript 6.5)
  2001-03-29 19:34   ` Wei Ku
@ 2001-03-29 19:33     ` Robert Collins
  0 siblings, 0 replies; 5+ messages in thread
From: Robert Collins @ 2001-03-29 19:33 UTC (permalink / raw)
  To: Wei Ku, cygwin

----- Original Message -----
From: "Wei Ku" <weiku@physics.ucdavis.edu>
To: "Robert Collins" <robert.collins@itdomain.com.au>;
<cygwin@cygwin.com>
Sent: Friday, March 30, 2001 12:53 PM
Subject: Re: pthread in Cygwin? (attempt to build ghostscript 6.5)


>
> Thanks for the useful information.

No probs. I'm the pthreads maintainer (woohoo a Title!) for cygwin as of
last week :]

> > Note: if your "minor" modificationsincluded defining macros or
> > prototypes to replace system functions that aren't present, I'm not
> > surprised you got these link errors.
>
> No, I carefully try to avoid that sort of modification.  The puzzle is
that
> these functions are in the header files but the corresponding library
file
> is missing.
>
> Wei
>
>
There is no libpthread.a The functions are exported from libcygwin.a and
implemented in cygwin1.dll

Rob


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

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

* Re: pthread in Cygwin? (attempt to build ghostscript 6.5)
  2001-03-29 19:32 ` Robert Collins
@ 2001-03-29 19:34   ` Wei Ku
  2001-03-29 19:33     ` Robert Collins
  0 siblings, 1 reply; 5+ messages in thread
From: Wei Ku @ 2001-03-29 19:34 UTC (permalink / raw)
  To: Robert Collins, cygwin

> > In the last step of building ghostscript 6.5 (after some minor
> modifications
> > in a few places) I encountered the following error message:
> >
> > (while gcc -fno-common -o ./bin/gs ./obj/gs.o ./obj/gp_getnv.o ...)
> >
> > ./obj/gp_psync.o(.text+0x49):gp_psync.c: undefined reference to
> > `pthread_cond_init'
> > ./obj/gp_psync.o(.text+0x7a):gp_psync.c: undefined reference to
> > `pthread_cond_destroy'
> > ./obj/gp_psync.o(.text+0xda):gp_psync.c: undefined reference to
> > `pthread_cond_wait'
> > ./obj/gp_psync.o(.text+0x148):gp_psync.c: undefined reference to
> > `pthread_cond_signal'
> > ./obj/gp_psync.o(.text+0x28e):gp_psync.c: undefined reference to
> > `pthread_attr_setdetachstate'
> >
> > I have /usr/include/pthread.h but can not find libpthread.a anywhere.

> Condition variations aren't implemented in the current 1.1.8-2 release
> of cygwin. Try the latest snapshot.
>
> I've implemented pthread_attr_setdetachstate, but I think it's bundled
> in with a patch that affects newlib so it's not available yet. See
> http://sources.redhat.com/ml/cygwin/2001-03/msg01202.html for a clean
> workaround.

Thanks for the useful information.

> Note: if your "minor" modificationsincluded defining macros or
> prototypes to replace system functions that aren't present, I'm not
> surprised you got these link errors.

No, I carefully try to avoid that sort of modification.  The puzzle is that
these functions are in the header files but the corresponding library file
is missing.

Wei


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

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

* RE: pthread in Cygwin? (attempt to build ghostscript 6.5)
  2001-03-29 18:00 pthread in Cygwin? (attempt to build ghostscript 6.5) Wei Ku
  2001-03-29 19:32 ` Robert Collins
@ 2001-03-29 19:34 ` Norman Vine
  1 sibling, 0 replies; 5+ messages in thread
From: Norman Vine @ 2001-03-29 19:34 UTC (permalink / raw)
  To: 'Wei Ku', cygwin

Wei Ku writes:
>
>In the last step of building ghostscript 6.5 (after some minor 
>modifications in a few places) I encountered the following error message:

Here is a howto for building 6.62
http://www.vso.cape.com/~nhv/files/cygwin/gs6.62/

This uses the Cygwin Image Dll's

Cheers

Norman Vine



--
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-03-29 19:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-29 18:00 pthread in Cygwin? (attempt to build ghostscript 6.5) Wei Ku
2001-03-29 19:32 ` Robert Collins
2001-03-29 19:34   ` Wei Ku
2001-03-29 19:33     ` Robert Collins
2001-03-29 19:34 ` Norman Vine

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