From: Christopher Curtis <ccurtis@ee.fit.edu>
Subject: Help with threads, and an RPM suggestion
Date: Sat, 20 Dec 1997 00:19:07 -0500 (EST) [thread overview]
Message-ID: <2b776122fb0244ab46dabe8dd1d111f1.axp-list@archive.invalid> (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
next reply other threads:[~1997-12-20 5:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-20 5:19 Christopher Curtis [this message]
[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
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox