Closed Bug 34506 Opened 25 years ago Closed 24 years ago

Can't compile under Perl 5.6

Categories

(Directory :: PerLDAP, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kevin, Assigned: kevin)

Details

Regis McEwen wrote: > Hi, > > Can you tell me what needs to be done in order to compile PerlLDAP > 1.4 > with GCC 2.95.2 ? > > Here are the errors that I get when trying to make: Hmmm, looks to me like an incompatibility in Perl v5.6... Maybe Kevin can take a look at this? I'm not sure we can (or should) get this fixed for v1.4.1, but definitely for v1.9. I plan to finish v1.4.1 any time now (really...), and then pick up v1.9 again. First thing on the agenda for v1.9 is to do a developers release, like v1.9.2 or something. We'll post to the mozilla.directory News group/mailing list about progress. Thanks a lot for the bug report, much appreciated. (Kevin, if this is a bug, can you file a bug in Mozilla and assign it to yourself, or me). Thanks! -- leif > > > gcc -c -I/test2/ldap/include -fno-strict-aliasing -I/usr/local/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.4\" > -DXS_VERSION=\"1.4\" -fPIC > -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -DLDAPV3 -DUSE_SSL API.c > API.c: In function `avref2charptrptr': > API.c:205: `na' undeclared (first use in this function) > API.c:205: (Each undeclared identifier is reported only once > API.c:205: for each function it appears in.) > API.c: In function `avref2berptrptr': > API.c:235: `na' undeclared (first use in this function) > API.c: In function `parse1mod': > API.c:377: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_compare_ext': > API.c:827: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_compare_ext_s': > API.c:853: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_extended_operation': > API.c:1270: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_extended_operation_s': > API.c:1297: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_result': > API.c:2459: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_sasl_bind': > API.c:2507: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_sasl_bind_s': > API.c:2534: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_search_ext': > API.c:2596: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_search_ext_s': > API.c:2631: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_search_st': > API.c:2692: `na' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_url_parse': > API.c:2961: `sv_undef' undeclared (first use in this function) > API.c: In function `XS_Mozilla__LDAP__API_ldap_url_search_st': > API.c:3023: `na' undeclared (first use in this function) > make: *** [API.o] Error 1 > bash-2.01# > > There may be additional errors, but this is as far as I get. > > Please let me know if there is any additional information that > you need. > > I am running on Sun Solaris 2.6 and have invoked: > > perl Makefile.PL > > Also, I don't have access to CVS, so I cannot obtain 1.9, if this > helps to fix my problem. > > Please let me know if my version of Perl doesn't work with > PerlLDAP 1.4. > > Thanks.
Doh! Yup, looks like an incompatibility. The na variable is a "don't care" variable, usually used to stuff the length of a string in an SvPV operation. They probably just changed the name of this. (hopefully). Easy fix is to just find the new variable name. Hard fix is to find the variable that works in 5.6 and 5.004/5! I'll file a bug. -Kevin
Status: NEW → ASSIGNED
Workaround is: perl Makefile.PL POLLUTE=1 The internal variables changed: sv_undef => PL_sv_undef na => PL_na The new variables are only available in Perl 5.004_05 and later. Need to decide whether it's okay to leave the older versions in the dust or not.
*** Bug 40148 has been marked as a duplicate of this bug. ***
Whoops - forgot to close the bug. I patched 1.4.1 Makefile.PL to add the POLLUTE=1 option automatically. 1.9 has been changed to use the new internal variables.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.