Re: Need NetBSD thread tester

Поиск
Список
Период
Сортировка
От Larry Rosenman
Тема Re: Need NetBSD thread tester
Дата
Msg-id 162190000.1063386595@lerlaptop-red.iadfw.net
обсуждение исходный текст
Ответ на Re: Need NetBSD thread tester  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Need NetBSD thread tester  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers

--On Friday, September 12, 2003 13:03:33 -0400 Bruce Momjian
<pgman@candle.pha.pa.us> wrote:

> 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/ar
>> ch/ 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.
Nope......


$ vi test*
$ cc -O -o test_thread_funcs test_thread_funcs.c
test_thread_funcs.c: In function `main':
test_thread_funcs.c:50: `pthread_t' undeclared (first use in this function)
test_thread_funcs.c:50: (Each undeclared identifier is reported only once
test_thread_funcs.c:50: for each function it appears in.)
test_thread_funcs.c:50: parse error before `thread1'
test_thread_funcs.c:59: `thread1' undeclared (first use in this function)
test_thread_funcs.c:60: `thread2' undeclared (first use in this function)
$




--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Another small bug (pg_autovacuum)
Следующее
От: "Matthew T. O'Connor"
Дата:
Сообщение: Re: Another small bug (pg_autovacuum)