rlm_perl compile error with cvs snapshot

Boyan Jordanov bjordanov at orbitel.bg
Wed Dec 7 13:11:46 CET 2005


Hello 

try adding output of perl -V:cppflags to RLM_CFLAGS in Makefile in 
src/modules/rlm_perl/

or replace RLM_FLAGS with this line 
RLM_CFLAGS  = `perl -MConfig -e "print \\$$Config{cppflags} "; perl 
-MExtUtils::Embed -e ccopts`

On Wednesday 07 December 2005 00:37, Bernell Williams wrote:
> Making all in rlm_perl...
> gmake[6]: Entering directory
> `/home/bernell/rpm/CVS/radiusd.build/src/modules/rlm_perl'
> /home/bernell/rpm/CVS/radiusd.build/libtool --mode=compile gcc  -g -O2
> -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall
> -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef
> -I/home/bernell/rpm/CVS/radiusd.build/src `perl -MExtUtils::Embed -e
> ccopts` -c rlm_perl.c
> mkdir .libs
>  gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5
> -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef
> -I/home/bernell/rpm/CVS/radiusd.build/src -DPERL_DISABLE_PMC
> -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
> -I/usr/lib/perl5/5.8.6/i386-linux/CORE -c rlm_perl.c  -fPIC -DPIC -o
> .libs/rlm_perl.o
> In file included from rlm_perl.c:43:
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:750: warning: redundant
> redeclaration of 'sockatmark'
> /usr/include/sys/socket.h:223: warning: previous declaration of
> 'sockatmark' was here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:819: warning: redundant
> redeclaration of 'strerror'
> /usr/include/string.h:256: warning: previous declaration of 'strerror'
> was here
> In file included from rlm_perl.c:43:
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2522: warning: redundant
> redeclaration of 'getuid'
> /usr/include/unistd.h:618: warning: previous declaration of 'getuid' was
> here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2523: warning: redundant
> redeclaration of 'geteuid'
> /usr/include/unistd.h:621: warning: previous declaration of 'geteuid'
> was here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2524: warning: redundant
> redeclaration of 'getgid'
> /usr/include/unistd.h:624: warning: previous declaration of 'getgid' was
> here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2525: warning: redundant
> redeclaration of 'getegid'
> /usr/include/unistd.h:627: warning: previous declaration of 'getegid'
> was here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2817: warning: redundant
> redeclaration of 'mktemp'
> /usr/include/stdlib.h:691: warning: previous declaration of 'mktemp' was
> here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2819: warning: redundant
> redeclaration of 'atof'
> /usr/include/stdlib.h:393: warning: previous definition of 'atof' was here
> In file included from rlm_perl.c:43:
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2910: warning: redundant
> redeclaration of 'crypt'
> /usr/include/unistd.h:1020: warning: previous declaration of 'crypt' was
> here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2916: warning: redundant
> redeclaration of 'getenv'
> /usr/include/stdlib.h:654: warning: previous declaration of 'getenv' was
> here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2927: warning: redundant
> redeclaration of 'getlogin'
> /usr/include/unistd.h:761: warning: previous declaration of 'getlogin'
> was here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2940: warning: redundant
> redeclaration of 'setresuid'
> /usr/include/unistd.h:684: warning: previous declaration of 'setresuid'
> was here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2944: warning: redundant
> redeclaration of 'setresgid'
> /usr/include/unistd.h:688: warning: previous declaration of 'setresgid'
> was here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:3032: warning: redundant
> redeclaration of 'environ'
> /usr/include/unistd.h:474: warning: previous declaration of 'environ'
> was here
> In file included from rlm_perl.c:43:
> /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:3421: warning: declaration
> of 'exp' shadows a global declaration
> /usr/include/bits/mathcalls.h:101: warning: shadowed declaration is here
> In file included from /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:3557,
>                  from rlm_perl.c:43:
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:84: warning: declaration of
> 'floor' shadows a global declaration
> /usr/include/bits/mathinline.h:530: warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:366: warning: declaration
> of 'send' shadows a global declaration
> /usr/include/sys/socket.h:136: warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:480: warning: declaration
> of 'floor' shadows a global declaration
> /usr/include/bits/mathinline.h:530: warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:484: warning: declaration
> of 'floor' shadows a global declaration
> /usr/include/bits/mathinline.h:530: warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:495: warning: declaration
> of 'floor' shadows a global declaration
> /usr/include/bits/mathinline.h:530: warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:597: warning: declaration
> of 'exp' shadows a global declaration
> /usr/include/bits/mathcalls.h:101: warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:794: warning: declaration
> of 'floor' shadows a global declaration
> /usr/include/bits/mathinline.h:530: warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:794: warning: declaration
> of 'version' shadows a global declaration
> /home/bernell/rpm/CVS/radiusd.build/src/freeradius-devel/radiusd.h:385:
> warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:806: warning: redundant
> redeclaration of 'Perl_utf8n_to_uvuni'
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:805: warning: previous
> declaration of 'Perl_utf8n_to_uvuni' was here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:808: warning: redundant
> redeclaration of 'Perl_uvuni_to_utf8'
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:807: warning: previous
> declaration of 'Perl_uvuni_to_utf8' was here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:903: warning: declaration
> of 'floor' shadows a global declaration
> /usr/include/bits/mathinline.h:530: warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:904: warning: declaration
> of 'floor' shadows a global declaration
> /usr/include/bits/mathinline.h:530: warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:905: warning: declaration
> of 'floor' shadows a global declaration
> /usr/include/bits/mathinline.h:530: warning: shadowed declaration is here
> /usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:1328: warning: declaration
> of 'clone' shadows a global declaration
> /usr/include/bits/sched.h:72: warning: shadowed declaration is here
> rlm_perl.c: In function 'xs_init':
> rlm_perl.c:597: warning: initialization discards qualifiers from pointer
> target type
> rlm_perl.c:600: warning: passing argument 1 of 'Perl_newXS' discards
> qualifiers from pointer target type
> rlm_perl.c: In function 'XS_radiusd_radlog':
> rlm_perl.c:610: warning: unused parameter 'cv'
> rlm_perl.c: In function 'perl_instantiate':
> rlm_perl.c:759: warning: assignment discards qualifiers from pointer
> target type
> rlm_perl.c:763: warning: assignment discards qualifiers from pointer
> target type
> rlm_perl.c:767: error: 'interp' undeclared (first use in this function)
> rlm_perl.c:767: error: (Each undeclared identifier is reported only once
> rlm_perl.c:767: error: for each function it appears in.)
> rlm_perl.c:812: warning: passing argument 1 of 'Perl_newXS' discards
> qualifiers from pointer target type
> rlm_perl.c:812: warning: passing argument 3 of 'Perl_newXS' discards
> qualifiers from pointer target type
> rlm_perl.c:826: warning: assignment discards qualifiers from pointer
> target type
> rlm_perl.c:828: warning: assignment discards qualifiers from pointer
> target type
> rlm_perl.c:831: warning: passing argument 2 of 'xlat_register' from
> incompatible pointer type
> rlm_perl.c: In function 'perl_detach':
> rlm_perl.c:1268: warning: passing argument 2 of 'xlat_unregister' from
> incompatible pointer type
> gmake[6]: *** [rlm_perl.lo] Error 1
> gmake[6]: Leaving directory
> `/home/bernell/rpm/CVS/radiusd.build/src/modules/rlm_perl'
> gmake[5]: *** [common] Error 2
> gmake[5]: Leaving directory
> `/home/bernell/rpm/CVS/radiusd.build/src/modules'
> gmake[4]: *** [all] Error 2
> gmake[4]: Leaving directory
> `/home/bernell/rpm/CVS/radiusd.build/src/modules'
> gmake[3]: *** [common] Error 2
> gmake[3]: Leaving directory `/home/bernell/rpm/CVS/radiusd.build/src'
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory `/home/bernell/rpm/CVS/radiusd.build/src'
> gmake[1]: *** [common] Error 2
> gmake[1]: Leaving directory `/home/bernell/rpm/CVS/radiusd.build'
> make: *** [all] Error 2
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/devel.html

-- 
Best Regards,
Boian Jordanov
SNE
Orbitel - Next Generation Telecom
tel. +359 2 4004 723 
tel. +359 2 4004 002



More information about the Freeradius-Devel mailing list