Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Dec 1999 17:34:34 -0500 (EST)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Soren Schmidt <sos@freebsd.dk>
Cc:        Kenneth Wayne Culver <culverk@wam.umd.edu>, freebsd-current@FreeBSD.ORG, jasone@canonware.com
Subject:   Re: the nist port
Message-ID:  <Pine.SUN.3.91.991228173009.9933A-100000@pcnet1.pcnet.com>
In-Reply-To: <199912282040.VAA45252@freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 28 Dec 1999, Soren Schmidt wrote:
> It seems Kenneth Wayne Culver wrote:
> > I can't get the nist port to compile:
> > c++ -g -O2 -Wall -DDO_NIST -DPACKAGE=\"ac3dec\" -DVERSION=\"0.5.5\"
> > -I../../inc   -c bitstream.c -o bitstream.o
> > In file included from decode.h:24,
> >                  from bitstream.c:27:
> > ../../inc/athread.hh: In function `int athr_setschedparam(pthread *, int,
> > sched_param *)':
> > ../../inc/athread.hh:150: implicit declaration of function `int
> > pthread_setschedparam(...)'
> > ../../inc/athread.hh: In function `int athr_getschedparam(pthread *, int
> > *, sched_param *)':
> > ../../inc/athread.hh:151: implicit declaration of function `int
> > pthread_getschedparam(...)'
> > bitstream.c: In function `uint_32 bitstream_get(bitstream_t *, long
> > unsigned int)':
> 
> Uhm, seems like we need to define _POSIX_THREAD_PRIORITY_SCHEDULING now
> to get the prototypes for these, add:
> 
> #ifdef __FreeBSD__
> #define _POSIX_THREAD_PRIORITY_SCHEDULING
> #endif
> 

Hey, these _POSIX_THREAD_XXXX definitions used to be in pthread.h.
It looks like they were removed from version 1.16 of pthread.h:

  revision 1.16
  date: 1999/12/16 21:53:38;  author: jasone;  state: Exp;  lines: +1 -18
  Move POSIX feature constants from pthread.h to unistd.h, as required by
  1003.1c-1995.

  Undefine _POSIX_THREAD_SAFE_FUNCTIONS, since we do not implement all of the
  necessary interfaces.  At least getgrgid_r(), getrnam_r(), getpwuid_r(),
  getpwnam_r(), getc_unlocked(), getchar_unlocked(), putc_unlocked(),
  and putchar_unlocked() are missing.  Due to a likely typo in 1003.1c-1995,
  we are not technically allowed to define _POSIX_THREADS without defining
  _POSIX_THREAD_SAFE_FUNCTIONS, but either way we're non-compliant, so I'm
  leaving _POSIX_THREADS defined.

They're not in unistd.h either.  This is a FreeBSD bug.

Dan Eischen
eischen@vigrid.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.991228173009.9933A-100000>