Subject: Re: pkgsrc/(postgresql74 + p5-postgresql) -> pthread problems!?
To: Marc Recht <recht@NetBSD.org>
From: Markus W Kilbinger <kilbi@rad.rwth-aachen.de>
List: current-users
Date: 05/31/2004 07:32:36
>>>>> "Marc" == Marc Recht <recht@NetBSD.org> writes:
>> Is anybody running postgresql74 in combination with p5-postgresql
>> successfully on -current or netbsd-2-0?
>>
>> Though everything compiles fine simple perl scripts with 'use Pg;'
>> dump core.
>>
>> I can workaround the problem if compiling postgresql74-lib w/o:
>>
>> CONFIGURE_ARGS+= --enable-thread-safety
Marc> Does it work with lang/perl58-thread ?
I tried to compile lang/perl58-thread some times and always ran into
some missing *_r functions and struct members problem:
`sh cflags "optimize='-march=athlon-mp -O2'" reentr.o` -DPIC -fPIC reentr.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing -I/usr/pkg/include -march=athlon-mp -O2 -Wall
reentr.c: In function `Perl_reentrant_retry':
reentr.c:471: warning: implicit declaration of function `getprotobyname_r'
reentr.c:474: warning: implicit declaration of function `getprotobynumber_r'
reentr.c:476: warning: implicit declaration of function `getprotoent_r'
reentr.c:502: warning: implicit declaration of function `getservbyname_r'
reentr.c:506: warning: implicit declaration of function `getservbyport_r'
reentr.c:508: warning: implicit declaration of function `getservent_r'
and
`sh cflags "optimize='-march=athlon-mp -O2'" pp_sys.o` -DPIC -fPIC pp_sys.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing -I/usr/pkg/include -march=athlon-mp -O2 -Wall
pp_sys.c: In function `Perl_pp_gprotoent':
pp_sys.c:4888: warning: implicit declaration of function `getprotobyname_r'
pp_sys.c:4896: warning: implicit declaration of function `getprotobynumber_r'
pp_sys.c:4903: warning: implicit declaration of function `getprotoent_r'
pp_sys.c: In function `Perl_pp_gservent':
pp_sys.c:4980: warning: implicit declaration of function `getservbyname_r'
pp_sys.c:4996: warning: implicit declaration of function `getservbyport_r'
pp_sys.c:5003: warning: implicit declaration of function `getservent_r'
pp_sys.c: In function `Perl_pp_sprotoent':
pp_sys.c:5076: warning: implicit declaration of function `setprotoent_r'
pp_sys.c:5076: error: structure has no member named `_protoent_data'
pp_sys.c: In function `Perl_pp_sservent':
pp_sys.c:5087: warning: implicit declaration of function `setservent_r'
pp_sys.c:5087: error: structure has no member named `_servent_data'
[...]
Markus.