Re: Need NetBSD thread tester - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Need NetBSD thread tester
Date
Msg-id 200309121703.h8CH3Xd18974@candle.pha.pa.us
Whole thread Raw
In response to Re: Need NetBSD thread tester  (Larry Rosenman <ler@lerctr.org>)
Responses Re: Need NetBSD thread tester  (Larry Rosenman <ler@lerctr.org>)
Re: Need NetBSD thread tester  ("Thomas T. Thai" <tom@minnesota.com>)
List pgsql-hackers
Larry Rosenman wrote:
-- Start of PGP signed section.
> 
> 
> --On Friday, September 12, 2003 12:18:52 -0400 Bruce Momjian 
> <pgman@candle.pha.pa.us> wrote:
> 
> >
> > I need someone running NetBSD to read the top of
> > src/tools/test_thread_funcs.c and compile and run that function and
> > report the results.
> >
> I have access to one NetBSD system on an Alpha:
> 
> $ uname -a
> NetBSD milo.cirr.com 1.6.1_STABLE NetBSD 1.6.1_STABLE (MILO) #1: Sun Jun  1 
> 20:44:15 CDT 2003 
> eric@milo.cirr.com:/rmt/.amd/egsner/root/work/eric/NetBSD-1.6/src/sys/arch/
> alpha/compile/MILO alpha
> $ cc -O -o test_thread_funcs test_thread_funcs.c
> test_thread_funcs.c:27: pthread.h: No such file or directory
> $ cc -O -pthread -o test_thread_funcs test_thread_funcs.c
> cc: unrecognized option `-pthread'
> test_thread_funcs.c:27: pthread.h: No such file or directory
> $ cc -O -pthreads -o test_thread_funcs test_thread_funcs.c
> cc: unrecognized option `-pthreads'
> test_thread_funcs.c:27: pthread.h: No such file or directory
> $ locate pthread.h

Wow, that is strange.  Someone else told me NetBSD supports threads, and
doesn't need any special compile flags, but of course, it has to have
pthread.h to support threads.  NetBSD 1.6.1 is very current, so it isn't
an old OS.

Can you compile if you remove the pthread.h include?  No special compile
flags should be required.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Sean Chittenden
Date:
Subject: Re: massive quotes?
Next
From: Tom Lane
Date:
Subject: Re: Another small bug (pg_autovacuum)