* Help with threads, and an RPM suggestion
@ 1997-12-20 5:19 Christopher Curtis
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Curtis @ 1997-12-20 5:19 UTC (permalink / raw)
First, the thread problem:
I have a UDB I want to do some development on to get my feet wet with this
brave new 64 bit world without spending $10k for a machine. I am playing
around trying to get an application that compiles under Solaris to compile
on the UDB. I am currently running Red Hat 4.2, with all the patches in
the 'updates' RPM repository.
The Solaris app uses Solaris threading, mutexes, and semaphores, but as
Solaris supports pthreads, I am trying to use the native pthread library
distributed with RedHat (Xavier's, apparently). For the moment, I'm using
#ifdef's, but I'm not getting very far:
cd control ; make "CFLAGS=-Wall -pedantic -g -ansi -D_REENTRANT -DTEXTFRONTEND -DLinux"
make[1]: Entering directory `/home/ccurtis/stadium/control'
gcc -Wall -pedantic -g -ansi -D_REENTRANT -DTEXTFRONTEND -DLinux -c stadium.c -o stadium.o
In file included from /usr/include/pthread.h:22,
from ../include/../porting/porting.h:37,
from ../include/sdl.h:9,
from ../include/stadium.h:14,
from stadium.c:4:
/usr/include/sched.h:67: warning: `struct timespec' declared inside parameter list
/usr/include/sched.h:67: warning: its scope is only this definition or declaration,
/usr/include/sched.h:67: warning: which is probably not what you want.
/usr/include/sched.h:68: warning: `struct timespec' declared inside parameter list
In file included from ../include/../porting/porting.h:37,
from ../include/sdl.h:9,
from ../include/stadium.h:14,
from stadium.c:4:
/usr/include/pthread.h:313: warning: `struct timespec' declared inside parameter list
/usr/include/pthread.h:431: parse error before `*'
In file included from ../include/sdl.h:9,
from ../include/stadium.h:14,
from stadium.c:4:
[Remainder of errors in my code...]
I was wondering if anyone was using this package on the Alpha, or if there
were patches available. The date on the file is Dec 22, 1996.
Also, I've found pthread_t, and pthread_mutex_t, but what is the Posix
implmentation for a semaphore?
And now, the RPM suggestion: (This may actually be a question as I am not
familiar with RPMs) It would be nice if there were a relatively automatic
way for RPM to log into an FTP server, get a listing of available packges,
and either install or at least download ones that have not been installed.
Thanks in advance,
--
Christopher Curtis - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology - System Administrator, Programmer
Melbourne, Florida USA - http://www.lp.org/
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help with threads, and an RPM suggestion
[not found] <Pine.GSO.3.96.971220000646.28870A-100000@yacht.ee.fit.edu>
@ 1997-12-20 21:56 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 1997-12-20 21:56 UTC (permalink / raw)
On Sat, Dec 20, 1997 at 12:19:07AM -0500, Christopher Curtis wrote:
> /usr/include/sched.h:67: warning: `struct timespec' declared inside parameter list
> /usr/include/sched.h:67: warning: its scope is only this definition or declaration,
> /usr/include/sched.h:67: warning: which is probably not what you want.
> /usr/include/sched.h:68: warning: `struct timespec' declared inside parameter list
Doh. Silly bug, fix attached.
> /usr/include/pthread.h:431: parse error before `*'
Hmm, don't see anything likely; the only thing in that area is sigset_t,
but I don't get any errors either.
> Also, I've found pthread_t, and pthread_mutex_t, but what is the Posix
> implmentation for a semaphore?
sem_t is in <semaphore.h>, since it is not originally part of the
threads api (.1c) but part of real time api (.1b).
r~
Sat Dec 20 13:50:28 1997 Richard Henderson <rth@cygnus.com>
* posix/sched.h: timespec is in <time.h>.
--- glibc-2.0.6/posix/sched.h Fri Dec 20 20:13:18 1996
+++ glibc-2.0.6-good/posix/sched.h Sat Dec 20 13:49:06 1997
@@ -24,7 +24,9 @@
/* Get type definitions. */
#include <gnu/types.h>
-#include <sys/time.h> /* for struct timespec */
+
+#define __need_timespec
+#include <time.h>
/* Get system specific constant and data structure definitions. */
#include <schedbits.h>
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-12-20 21:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.GSO.3.96.971220000646.28870A-100000@yacht.ee.fit.edu>
1997-12-20 21:56 ` Help with threads, and an RPM suggestion Richard Henderson
1997-12-20 5:19 Christopher Curtis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox