[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: OpenLDAP Perl Module (XS)
On Mon, 2005-01-31 at 11:37 -0800, Quanah Gibson-Mount wrote:
>
> --On Monday, January 31, 2005 11:56 AM +1100 David J Radunz
> <david.radunz@staff.netspace.net.au> wrote:
>
>
> > [dj@ice Net-LDAPapi-1.43-patched-build]$ make
> > gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -
> > fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -
> > D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386
> > -mtune=pentium4 -DVERSION=\"1.43\" -DXS_VERSION=\"1.43\" -fPIC "-
> > I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE" -DOPENLDAP
> > LDAPapi.c
> > LDAPapi.xs: In function `av2modvals':
> > LDAPapi.xs:108: error: `na' undeclared (first use in this function)
> > LDAPapi.xs:108: error: (Each undeclared identifier is reported only once
> > LDAPapi.xs:108: error: for each function it appears in.)
>
> I think your problem starts with something other than the patch from the
> FAQ page.
>
> What does line 108 show in your LDAPapi.xs file?
> What version of perl are you using to compile with?
>
<--snip-->
for (ldap_value_count = 0; ldap_value_count <=ldap_arraylen;
ldap_value_count++)
{
ldap_current_value_sv = av_fetch
(ldap_value_array_av,ldap_value_count,0);
108: ldap_current_value_char = SvPV(*ldap_current_value_sv,na);
ldap_pvlen = SvCUR(*ldap_current_value_sv);
if (strcmp(ldap_current_value_char,"") != 0)
{
if (ldap_isa_ber == 1)
{
New(1,ldap_current_bval,1,struct berval);
ldap_current_bval->bv_len = ldap_pvlen;
ldap_current_bval->bv_val = ldap_current_value_char;
<!--snip-->
So line 108 is: ldap_current_value_char = SvPV
(*ldap_current_value_sv,na);
The exact same error occurs on both a Sun box and a Linux box
SunOS 5.9 Generic_112234-08 i86pc i386 i86pc
* perl v5.8.5 built for i386-linux-thread-multi
* openldap-2.2.20
Linux 2.6.10-1.741_FC3 #1 Thu Jan 13 16:38:22 EST 2005 i686 athlon i386
GNU/Linux
* perl v5.8.5 built for i386-linux-thread-multi
* openldap-2.2.13-2
> --Quanah
>
> --
> Quanah Gibson-Mount
> Principal Software Developer
> ITSS/Shared Services
> Stanford University
> GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
>
> "These censorship operations against schools and libraries are stronger
> than ever in the present religio-political climate. They often focus on
> fantasy and sf books, which foster that deadly enemy to bigotry and blind
> faith, the imagination." -- Ursula K. Le Guin
>
This email and any files transmitted with it are confidential and intended solely for the
use of the individual or entity to whom they are addressed. Please notify the sender
immediately by email if you have received this email by mistake and delete this email
from your system. Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of the organisation.
Finally, the recipient should check this email and any attachments for the presence of
viruses. The organisation accepts no liability for any damage caused by any virus
transmitted by this email.