Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 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

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