[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
__attribute__ errors building back-perl (ITS#3302)
Full_Name: Gary Mills
Version: 2.2.13
OS: Solaris 8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (24.76.19.153)
When configuring thusly:
#!/bin/sh
env CC=cc \
CPPFLAGS="-I/usr/local/include -I/usr/local/src/db/db-2.4.14/Unix" \
LDFLAGS=" -L/usr/local/lib -R/usr/local/lib
-L/usr/local/src/db/db-2.4.14/Unix" \
./configure \
--disable-proctitle \
--enable-crypt \
--disable-bdb \
--enable-ldbm \
--enable-perl
#!/end
The compile of back-perl fails with errors like this:
cd back-perl; make all
rm -f version.c
../../../build/mkversion -v "2.2.13" back_perl > version.c
/bin/sh /local/src/solaris/ldap/openldap-2.2.13/libtool --mode=compile cc -g
-
I../../../include -I../../../include -I.. -I./..
-I/usr/local/lib/perl5/5.6.0/su
n4-solaris/CORE -I/usr/local/include -I/usr/local/src/db/db-2.4.14/Unix -c
in
it.c
mkdir .libs
cc -g -I../../../include -I../../../include -I.. -I./..
-I/usr/local/lib/perl5/5
.6.0/sun4-solaris/CORE -I/usr/local/include -I/usr/local/src/db/db-2.4.14/Unix
-
c init.c -KPIC -DPIC -o init.o
"/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE/iperlsys.h", line 412: syntax
erro
r before or at: __attribute__
This is because our perl installation was compiled with gcc. Some of the
header
files contain __attribute__, which is a gcc extension.
For an older version of openldap, my fix was to add these lines to to
portable.h:
#if !defined(__attribute__) || !defined(__GNUC__)
#define __attribute__(A)
#endif
For this version, I also had to modify perl_back.h to place portable.h before
perl.h.
I suppose that the definition above could just be added to perl_back.h now.