Just finished adding all.mk files to most of the modules, to finish the work Alan started a while back. This involved rebuilding all the autoconf files, which meant a huge version jump from the last time some of them were built. Can you all try and build the latest HEAD in master and report any issues. If you want to try out the new boilermake system (which is considerably faster on re-make as its not based around recursive make): ./configure --enable-boilermake and make/make install as normal The old build system will be going away soon, at which point everything will just default to the new system and hopefully carry on working, we just need to make sure everything builds and gets linked correctly with the new build system first. -Arran
hi, still cant build (Alan aware - I'm trying to get him access to duplicate of this system - CentOS6.3 ) # make Making all in src... Making all in src/include... Making all in src/lib... CC dict.c CC filters.c CC hash.c CC hmac.c CC hmacsha1.c CC isaac.c CC log.c CC misc.c CC missing.c CC md4.c CC md5.c CC print.c print.c: In function ‘vp_prints_value’: print.c:270: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ print.c:270: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ CC radius.c CC rbtree.c CC sha1.c CC snprintf.c CC strlcat.c CC strlcpy.c CC token.c CC udpfromto.c CC valuepair.c CC fifo.c CC packet.c CC event.c CC getaddrinfo.c CC vqp.c CC heap.c CC dhcp.c dhcp.c: In function ‘fr_dhcp_encode’: dhcp.c:1462: warning: comparison between signed and unsigned integer expressions dhcp.c: In function ‘fr_dhcp_add_arp_entry’: dhcp.c:1581: warning: format ‘%u’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ CC tcp.c CC base64.c LINK libfreeradius-radius.la dict.lo filters.lo hash.lo hmac.lo hmacsha1.lo isaac.lo log.lo misc.lo missing.lo md4.lo md5.lo print.lo radius.lo rbtree.lo sha1.lo snprintf.lo strlcat.lo strlcpy.lo token.lo udpfromto.lo valuepair.lo fifo.lo packet.lo event.lo getaddrinfo.lo vqp.lo heap.lo dhcp.lo tcp.lo base64.lo *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000e671e0 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000e68030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000e89030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000eaa030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000ecb030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000eec030 *** gcc: unrecognized option '-release=3.0.0' Making all in src/modules... Making all in src/modules/rlm_acctlog... CC rlm_acctlog.c LINK rlm_acctlog.la rlm_acctlog.lo *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x00000000015941e0 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001595030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x00000000015b6030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x00000000015d7030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x00000000015f8030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001619030 *** Can not find suitable library for /usr/local/src/freeradius-server/src/lib/libfreeradius-radius.la gmake[6]: *** [rlm_acctlog.la] Error 1 gmake[5]: *** [rlm_acctlog] Error 2 gmake[4]: *** [all] Error 2 gmake[3]: *** [modules] Error 2 gmake[2]: *** [all] Error 2 gmake[1]: *** [src] Error 2 make: *** [all] Error 2 however, that "gcc: unrecognized option '-release=3.0.0'" looks wrong here too. configure option was: ./configure --prefix=/usr --with-large-files --with-raddbdir=/etc/raddb --with-snmp --with-experimental-modules --enable-developer (--enable-developer is no longer needed when from HEAD as its implicit but hey..) alan
alan buxey wrote:
still cant build (Alan aware - I'm trying to get him access to duplicate of this system - CentOS6.3 )
Well, the solution is pretty clear. Go through the scripts/*mk, and remove the @ from the build rules. Run them again. Then find the one where jlibtool complains, and run that under valgrind. Until then, I don't see the problem. Alan DeKok.
Hi,
Go through the scripts/*mk, and remove the @ from the build rules. Run them again. Then find the one where jlibtool complains, and run that under valgrind.
i've removed the leading @'s from the .mk files...but the output looks exactly the same # make Making all in src... Making all in src/include... Making all in src/lib... CC dict.c CC filters.c CC hash.c CC hmac.c CC hmacsha1.c CC isaac.c CC log.c CC misc.c CC missing.c CC md4.c CC md5.c CC print.c print.c: In function ‘vp_prints_value’: print.c:270: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ print.c:270: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’ CC radius.c CC rbtree.c CC sha1.c CC snprintf.c CC strlcat.c CC strlcpy.c CC token.c CC udpfromto.c CC valuepair.c CC fifo.c CC packet.c CC event.c CC getaddrinfo.c CC vqp.c CC heap.c CC dhcp.c dhcp.c: In function ‘fr_dhcp_encode’: dhcp.c:1462: warning: comparison between signed and unsigned integer expressions dhcp.c: In function ‘fr_dhcp_add_arp_entry’: dhcp.c:1581: warning: format ‘%u’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ CC tcp.c CC base64.c LINK libfreeradius-radius.la dict.lo filters.lo hash.lo hmac.lo hmacsha1.lo isaac.lo log.lo misc.lo missing.lo md4.lo md5.lo print.lo radius.lo rbtree.lo sha1.lo snprintf.lo strlcat.lo strlcpy.lo token.lo udpfromto.lo valuepair.lo fifo.lo packet.lo event.lo getaddrinfo.lo vqp.lo heap.lo dhcp.lo tcp.lo base64.lo *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000ba21e0 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000ba3030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000bc4030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000be5030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000c06030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000000c27030 *** gcc: unrecognized option '-release=3.0.0' Making all in src/modules... Making all in src/modules/rlm_acctlog... CC rlm_acctlog.c LINK rlm_acctlog.la rlm_acctlog.lo *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x00000000020fc1e0 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x00000000020fd030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x000000000211e030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x000000000213f030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000002160030 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000002181030 *** Can not find suitable library for /usr/local/src/freeradius-server/src/lib/libfreeradius-radius.la gmake[6]: *** [rlm_acctlog.la] Error 1 gmake[5]: *** [rlm_acctlog] Error 2 gmake[4]: *** [all] Error 2 gmake[3]: *** [modules] Error 2 gmake[2]: *** [all] Error 2 gmake[1]: *** [src] Error 2 make: *** [all] Error 2 awaiting further instructions (and this is with a totally fresh git clone git://git.freeradius.org/freeradius-server.git) alan
On Wed, Nov 21, 2012 at 10:35:24PM +0000, alan buxey wrote:
Go through the scripts/*mk, and remove the @ from the build rules. Run them again. Then find the one where jlibtool complains, and run that under valgrind.
i've removed the leading @'s from the .mk files...but the output looks exactly the same
You need to remove the leading @s from primarily scripts/boiler.mk, but also the other .mk files in there - that definitely gets all the make output here. I assume you built with --enable-boilermake? Matthew (Finding it hard to resist the temptation to recommend that you should instead just upgrade to Debian ;-) ) -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Architect (UNIX and Networks), Network Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
alan buxey wrote:
Hi,
Go through the scripts/*mk, and remove the @ from the build rules. Run them again. Then find the one where jlibtool complains, and run that under valgrind.
i've removed the leading @'s from the .mk files...but the output looks exactly the same
Then you're not using the new boilermake framework. Do "git pull", edit Make.inc, set BOILER=yes, and LIBTOOL=JLIBTOOL Alan DeKok.
Hi,
Go through the scripts/*mk, and remove the @ from the build rules. Run them again. Then find the one where jlibtool complains, and run that under valgrind.
ignore previous post. missed a .mk file. heres the current issue: mkdir -p build/lib/ echo LINK build/lib/libfreeradius-radius.la LINK build/lib/libfreeradius-radius.la /usr/local/src/freeradius-server/scripts/jlibtool --silent --mode=link gcc -o build/lib/libfreeradius-radius.la -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic build/objs/src/lib/dict.lo build/objs/src/lib/filters.lo build/objs/src/lib/hash.lo build/objs/src/lib/hmac.lo build/objs/src/lib/hmacsha1.lo build/objs/src/lib/isaac.lo build/objs/src/lib/log.lo build/objs/src/lib/misc.lo build/objs/src/lib/missing.lo build/objs/src/lib/md4.lo build/objs/src/lib/md5.lo build/objs/src/lib/print.lo build/objs/src/lib/radius.lo build/objs/src/lib/rbtree.lo build/objs/src/lib/sha1.lo build/objs/src/lib/snprintf.lo build/objs/src/lib/strlcat.lo build/objs/src/lib/strlcpy.lo build/objs/src/lib/token.lo build/objs/src/lib/udpfromto.lo build/objs/src/lib/valuepair.lo build/objs/src/lib/fifo.lo build/objs/src/lib/packet.lo build/objs/src/lib/event.lo build/objs/src/lib/getaddrinfo.lo build/objs/src/lib/vqp.lo build/objs/src/lib/heap.lo build/objs/src/lib/dhcp.lo build/objs/src/lib/tcp.lo build/objs/src/lib/base64.lo -lnsl -lresolv -ldl -lpthread *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001e611f0 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001e62040 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001e83040 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001ea4040 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001ec5040 *** *** glibc detected *** /usr/local/src/freeradius-server/scripts/jlibtool: malloc: top chunk is corrupt: 0x0000000001ee6040 *** ar: WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW?build/lib/.libs/libfreeradius-radius.a: No such file or directory make: *** [build/lib/libfreeradius-radius.la] Error 1 ...though I had to BOILER = yes in the Make.inc to reveal this. valgrind /usr/local/src/freeradius-server/scripts/jlibtool --silent --mode=link gcc -o build/lib/libfreeradius-radius.la -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic build/objs/src/lib/dict.lo build/objs/src/lib/filters.lo build/objs/src/lib/hash.lo build/objs/src/lib/hmac.lo build/objs/src/lib/hmacsha1.lo build/objs/src/lib/isaac.lo build/objs/src/lib/log.lo build/objs/src/lib/misc.lo build/objs/src/lib/missing.lo build/objs/src/lib/md4.lo build/objs/src/lib/md5.lo build/objs/src/lib/print.lo build/objs/src/lib/radius.lo build/objs/src/lib/rbtree.lo build/objs/src/lib/sha1.lo build/objs/src/lib/snprintf.lo build/objs/src/lib/strlcat.lo build/objs/src/lib/strlcpy.lo build/objs/src/lib/token.lo build/objs/src/lib/udpfromto.lo build/objs/src/lib/valuepair.lo build/objs/src/lib/fifo.lo build/objs/src/lib/packet.lo build/objs/src/lib/event.lo build/objs/src/lib/getaddrinfo.lo build/objs/src/lib/vqp.lo build/objs/src/lib/heap.lo build/objs/src/lib/dhcp.lo build/objs/src/lib/tcp.lo build/objs/src/lib/base64.lo -lnsl -lresolv -ldl -lpthread ==6689== Memcheck, a memory error detector ==6689== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==6689== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==6689== Command: /usr/local/src/freeradius-server/scripts/jlibtool --silent --mode=link gcc -o build/lib/libfreeradius-radius.la -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic build/objs/src/lib/dict.lo build/objs/src/lib/filters.lo build/objs/src/lib/hash.lo build/objs/src/lib/hmac.lo build/objs/src/lib/hmacsha1.lo build/objs/src/lib/isaac.lo build/objs/src/lib/log.lo build/objs/src/lib/misc.lo build/objs/src/lib/missing.lo build/objs/src/lib/md4.lo build/objs/src/lib/md5.lo build/objs/src/lib/print.lo build/objs/src/lib/radius.lo build/objs/src/lib/rbtree.lo build/objs/src/lib/sha1.lo build/objs/src/lib/snprintf.lo build/objs/src/lib/strlcat.lo build/objs/src/lib/strlcpy.lo build/objs/src/lib/token.lo build/objs/src/lib/udpfromto.lo build/objs/src/lib/valuepair.lo build/objs/src/lib/fifo.lo build/objs/src/lib/packet.lo build/objs/src/lib/event.lo build/objs/src/lib/getaddrinfo.lo build/objs/src/lib/vqp.lo build/objs/src/lib/heap.lo build/objs/src/lib/dhcp.lo build/objs/src/lib/tcp.lo build/objs/src/lib/base64.lo -lnsl -lresolv -ldl -lpthread ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==6689== by 0x4022B6: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x40337B: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==6689== by 0x4022B6: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403397: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==6689== by 0x4022A1: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x4033B3: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==6689== by 0x4022B6: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x4033CF: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Syscall param stat(file_name) points to uninitialised byte(s) ==6689== at 0x4F07735: _xstat (in /lib64/libc-2.12.so) ==6689== by 0x40238B: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x4033CF: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== Address 0x52086c6 is 38 bytes inside a block of size 44 alloc'd ==6689== at 0x4C26FDE: malloc (vg_replace_malloc.c:236) ==6689== by 0x402254: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x4033CF: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==6689== by 0x4022B6: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x4033EB: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Syscall param stat(file_name) points to uninitialised byte(s) ==6689== at 0x4F07735: _xstat (in /lib64/libc-2.12.so) ==6689== by 0x40238B: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x4033EB: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== Address 0x5208737 is 39 bytes inside a block of size 44 alloc'd ==6689== at 0x4C26FDE: malloc (vg_replace_malloc.c:236) ==6689== by 0x402254: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x4033EB: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==6689== by 0x4022A1: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403407: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Syscall param stat(file_name) points to uninitialised byte(s) ==6689== at 0x4F07735: _xstat (in /lib64/libc-2.12.so) ==6689== by 0x40238B: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403407: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== Address 0x520879d is 29 bytes inside a block of size 44 alloc'd ==6689== at 0x4C26FDE: malloc (vg_replace_malloc.c:236) ==6689== by 0x402254: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x402371: gen_install_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403407: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C287E8: strlen (mc_replace_strmem.c:282) ==6689== by 0x403434: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C28877: strcpy (mc_replace_strmem.c:311) ==6689== by 0x40345E: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C287E8: strlen (mc_replace_strmem.c:282) ==6689== by 0x401387: flatten_count_chars (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x401674: run_command (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x4046CD: run_mode (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404D0D: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C284D7: strcat (mc_replace_strmem.c:176) ==6689== by 0x401415: flatten_count_chars (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x401674: run_command (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x4046CD: run_mode (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404D0D: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6691== Syscall param execve(argv[i]) points to uninitialised byte(s) ==6691== at 0x4ED9727: execve (in /lib64/libc-2.12.so) ==6691== by 0x4ED9FB0: execvpe (in /lib64/libc-2.12.so) ==6691== by 0x4015A9: external_spawn (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6691== by 0x404718: run_mode (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6691== by 0x404D0D: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6691== Address 0x5208576 is 38 bytes inside a block of size 44 alloc'd ==6691== at 0x4C26FDE: malloc (vg_replace_malloc.c:236) ==6691== by 0x402254: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6691== by 0x40337B: parse_output_file_name (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6691== by 0x403D63: parse_args (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6691== by 0x404CDB: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6691== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C287E8: strlen (mc_replace_strmem.c:282) ==6689== by 0x401387: flatten_count_chars (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x401674: run_command (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x40480A: run_mode (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404D0D: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C284D7: strcat (mc_replace_strmem.c:176) ==6689== by 0x401415: flatten_count_chars (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x401674: run_command (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x40480A: run_mode (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== by 0x404D0D: main (in /usr/local/src/freeradius-server/scripts/jlibtool) ==6689== ==6689== ==6689== HEAP SUMMARY: ==6689== in use at exit: 400,197 bytes in 62 blocks ==6689== total heap usage: 64 allocs, 2 frees, 400,804 bytes allocated ==6689== ==6689== LEAK SUMMARY: ==6689== definitely lost: 71,365 bytes in 20 blocks ==6689== indirectly lost: 328,832 bytes in 42 blocks ==6689== possibly lost: 0 bytes in 0 blocks ==6689== still reachable: 0 bytes in 0 blocks ==6689== suppressed: 0 bytes in 0 blocks ==6689== Rerun with --leak-check=full to see details of leaked memory ==6689== ==6689== For counts of detected and suppressed errors, rerun with: -v ==6689== Use --track-origins=yes to see where uninitialised values come from ==6689== ERROR SUMMARY: 15 errors from 15 contexts (suppressed: 6 from 6) alan
alan buxey wrote:
ignore previous post. missed a .mk file.
heres the current issue:
That's a bit better.
valgrind /usr/local/src/freeradius-server/scripts/jlibtool --silent --mode=link gcc -o build/lib/libfreeradius-radius.la -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic build/objs/src/lib/dict.lo build/objs/src/lib/filters.lo build/objs/src/lib/hash.lo build/objs/src/lib/hmac.lo build/objs/src/lib/hmacsha1.lo build/objs/src/lib/isaac.lo build/objs/src/lib/log.lo build/objs/src/lib/misc.lo build/objs/src/lib/missing.lo build/objs/src/lib/md4.lo build/objs/src/lib/md5.lo build/objs/src/lib/print.lo build/objs/src/lib/radius.lo build/objs/src/lib/rbtree.lo build/objs/src/lib/sha1.lo build/objs/src/lib/snprintf.lo build/objs/src/lib/strlcat.lo build/objs/src/lib/strlcpy.lo build/objs/src/lib/token.lo build/objs/src/lib/udpfromto.lo build/objs/src/lib/valuepair.lo build/objs/src/lib/fifo.lo build/objs/src/lib/packet.lo build/objs/src/lib/event.lo build/objs/src/lib/getaddrinfo.lo build/objs/src/lib/vqp.lo build/objs/src/lib/heap.lo build/objs/src/lib/dhcp.l o! build/objs/src/lib/tcp.lo build/objs/src/lib/base64.lo -lnsl -lresolv -ldl -lpthread ==6689== Memcheck, a memory error detector ==6689== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==6689== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==6689== Command: /usr/local/src/freeradius-server/scripts/jlibtool --silent --mode=link gcc -o build/lib/libfreeradius-radius.la -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic build/objs/src/lib/dict.lo build/objs/src/lib/filters.lo build/objs/src/lib/hash.lo build/objs/src/lib/hmac.lo build/objs/src/lib/hmacsha1.lo build/objs/src/lib/isaac.lo build/objs/src/lib/log.lo build/objs/src/lib/misc.lo build/objs/src/lib/missing.lo build/objs/src/lib/md4.lo build/objs/src/lib/md5.lo build/objs/src/lib/print.lo build/objs/src/lib/radius.lo build/objs/src/lib/rbtree.lo build/objs/src/lib/sha1.lo build/objs/src/lib/snprintf.lo build/objs/src/lib/strlcat.lo build/objs/src/lib/strlcpy.lo build/objs/src/lib/token.lo build/objs/src/lib/udpfromto.lo build/objs/src/lib/valuepair.lo build/objs/src/lib/fifo.lo build/objs/src/lib/packet.lo build/objs/src/lib/event.lo build/objs/src/lib/getaddrinfo.lo build/objs/src/lib/vqp.lo build/objs/src/lib/heap.lo build/objs/src/lib/d h! cp.lo build/objs/src/lib/tcp.lo build/objs/src/lib/base64.lo -lnsl -lresolv -ldl -lpthread ==6689== ==6689== Conditional jump or move depends on uninitialised value(s) ==6689== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==6689== by 0x4022B6: gen_library_name (in /usr/local/src/freeradius-server/scripts/jlibtool)
And jlibtool is built without debugging symbols. <sigh> Ensure that scripts/libtool.mk has "-g" for the jlibtool build. And also in Make.inc, just for laughs. Then, make clean && rebuild. And ensure you've set LIBTOOL=JLIBTOOL in Make.inc. Alan DeKok.
Hi,
And jlibtool is built without debugging symbols. <sigh>
Ensure that scripts/libtool.mk has "-g" for the jlibtool build. And also in Make.inc, just for laughs. Then, make clean && rebuild.
And ensure you've set LIBTOOL=JLIBTOOL in Make.inc.
hows this? # valgrind build/make/jlibtool --silent --mode=link gcc -o build/lib/libfreeradius-radius.la -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic build/objs/src/lib/dict.lo build/objs/src/lib/filters.lo build/objs/src/lib/hash.lo build/objs/src/lib/hmac.lo build/objs/src/lib/hmacsha1.lo build/objs/src/lib/isaac.lo build/objs/src/lib/log.lo build/objs/src/lib/misc.lo build/objs/src/lib/missing.lo build/objs/src/lib/md4.lo build/objs/src/lib/md5.lo build/objs/src/lib/print.lo build/objs/src/lib/radius.lo build/objs/src/lib/rbtree.lo build/objs/src/lib/sha1.lo build/objs/src/lib/snprintf.lo build/objs/src/lib/strlcat.lo build/objs/src/lib/strlcpy.lo build/objs/src/lib/token.lo build/objs/src/lib/udpfromto.lo build/objs/src/lib/valuepair.lo build/objs/src/lib/fifo.lo build/objs/src/lib/packet.lo build/objs/src/lib/event.lo build/objs/src/lib/getaddrinfo.lo build/objs/src/lib/vqp.lo build/objs/src/lib/heap.lo build/objs/src/lib/dhcp.lo build/objs/src/lib/tcp.lo build/objs/src/lib/base64.lo -lnsl -lresolv -ldl -lpthread ==12088== Memcheck, a memory error detector ==12088== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==12088== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==12088== Command: build/make/jlibtool --silent --mode=link gcc -o build/lib/libfreeradius-radius.la -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic build/objs/src/lib/dict.lo build/objs/src/lib/filters.lo build/objs/src/lib/hash.lo build/objs/src/lib/hmac.lo build/objs/src/lib/hmacsha1.lo build/objs/src/lib/isaac.lo build/objs/src/lib/log.lo build/objs/src/lib/misc.lo build/objs/src/lib/missing.lo build/objs/src/lib/md4.lo build/objs/src/lib/md5.lo build/objs/src/lib/print.lo build/objs/src/lib/radius.lo build/objs/src/lib/rbtree.lo build/objs/src/lib/sha1.lo build/objs/src/lib/snprintf.lo build/objs/src/lib/strlcat.lo build/objs/src/lib/strlcpy.lo build/objs/src/lib/token.lo build/objs/src/lib/udpfromto.lo build/objs/src/lib/valuepair.lo build/objs/src/lib/fifo.lo build/objs/src/lib/packet.lo build/objs/src/lib/event.lo build/objs/src/lib/getaddrinfo.lo build/objs/src/lib/vqp.lo build/objs/src/lib/heap.lo build/objs/src/lib/dhcp.lo build/objs/src/lib/tcp.lo build/objs/src/lib/base64.lo -lnsl -lresolv -ldl -lpthread ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==12088== by 0x4022B6: gen_library_name (jlibtool.c:952) ==12088== by 0x40337B: parse_output_file_name (jlibtool.c:1607) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==12088== by 0x4022B6: gen_library_name (jlibtool.c:952) ==12088== by 0x403397: parse_output_file_name (jlibtool.c:1608) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==12088== by 0x4022A1: gen_library_name (jlibtool.c:949) ==12088== by 0x4033B3: parse_output_file_name (jlibtool.c:1609) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==12088== by 0x4022B6: gen_library_name (jlibtool.c:952) ==12088== by 0x402371: gen_install_name (jlibtool.c:983) ==12088== by 0x4033CF: parse_output_file_name (jlibtool.c:1610) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Syscall param stat(file_name) points to uninitialised byte(s) ==12088== at 0x4F07735: _xstat (in /lib64/libc-2.12.so) ==12088== by 0x40238B: gen_install_name (jlibtool.c:986) ==12088== by 0x4033CF: parse_output_file_name (jlibtool.c:1610) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== Address 0x52086c6 is 38 bytes inside a block of size 44 alloc'd ==12088== at 0x4C26FDE: malloc (vg_replace_malloc.c:236) ==12088== by 0x402254: gen_library_name (jlibtool.c:942) ==12088== by 0x402371: gen_install_name (jlibtool.c:983) ==12088== by 0x4033CF: parse_output_file_name (jlibtool.c:1610) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==12088== by 0x4022B6: gen_library_name (jlibtool.c:952) ==12088== by 0x402371: gen_install_name (jlibtool.c:983) ==12088== by 0x4033EB: parse_output_file_name (jlibtool.c:1611) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Syscall param stat(file_name) points to uninitialised byte(s) ==12088== at 0x4F07735: _xstat (in /lib64/libc-2.12.so) ==12088== by 0x40238B: gen_install_name (jlibtool.c:986) ==12088== by 0x4033EB: parse_output_file_name (jlibtool.c:1611) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== Address 0x5208737 is 39 bytes inside a block of size 44 alloc'd ==12088== at 0x4C26FDE: malloc (vg_replace_malloc.c:236) ==12088== by 0x402254: gen_library_name (jlibtool.c:942) ==12088== by 0x402371: gen_install_name (jlibtool.c:983) ==12088== by 0x4033EB: parse_output_file_name (jlibtool.c:1611) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C284AA: strcat (mc_replace_strmem.c:176) ==12088== by 0x4022A1: gen_library_name (jlibtool.c:949) ==12088== by 0x402371: gen_install_name (jlibtool.c:983) ==12088== by 0x403407: parse_output_file_name (jlibtool.c:1612) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Syscall param stat(file_name) points to uninitialised byte(s) ==12088== at 0x4F07735: _xstat (in /lib64/libc-2.12.so) ==12088== by 0x40238B: gen_install_name (jlibtool.c:986) ==12088== by 0x403407: parse_output_file_name (jlibtool.c:1612) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== Address 0x520879d is 29 bytes inside a block of size 44 alloc'd ==12088== at 0x4C26FDE: malloc (vg_replace_malloc.c:236) ==12088== by 0x402254: gen_library_name (jlibtool.c:942) ==12088== by 0x402371: gen_install_name (jlibtool.c:983) ==12088== by 0x403407: parse_output_file_name (jlibtool.c:1612) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C287E8: strlen (mc_replace_strmem.c:282) ==12088== by 0x403434: parse_output_file_name (jlibtool.c:1617) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C28877: strcpy (mc_replace_strmem.c:311) ==12088== by 0x40345E: parse_output_file_name (jlibtool.c:1619) ==12088== by 0x403D63: parse_args (jlibtool.c:1861) ==12088== by 0x404CDB: main (jlibtool.c:2424) ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C287E8: strlen (mc_replace_strmem.c:282) ==12088== by 0x401387: flatten_count_chars (jlibtool.c:450) ==12088== by 0x401674: run_command (jlibtool.c:560) ==12088== by 0x4046CD: run_mode (jlibtool.c:2245) ==12088== by 0x404D0D: main (jlibtool.c:2431) ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C284D7: strcat (mc_replace_strmem.c:176) ==12088== by 0x401415: flatten_count_chars (jlibtool.c:462) ==12088== by 0x401674: run_command (jlibtool.c:560) ==12088== by 0x4046CD: run_mode (jlibtool.c:2245) ==12088== by 0x404D0D: main (jlibtool.c:2431) ==12088== ==12090== Syscall param execve(argv[i]) points to uninitialised byte(s) ==12090== at 0x4ED9727: execve (in /lib64/libc-2.12.so) ==12090== by 0x4ED9FB0: execvpe (in /lib64/libc-2.12.so) ==12090== by 0x4015A9: external_spawn (jlibtool.c:530) ==12090== by 0x404718: run_mode (jlibtool.c:2254) ==12090== by 0x404D0D: main (jlibtool.c:2431) ==12090== Address 0x5208576 is 38 bytes inside a block of size 44 alloc'd ==12090== at 0x4C26FDE: malloc (vg_replace_malloc.c:236) ==12090== by 0x402254: gen_library_name (jlibtool.c:942) ==12090== by 0x40337B: parse_output_file_name (jlibtool.c:1607) ==12090== by 0x403D63: parse_args (jlibtool.c:1861) ==12090== by 0x404CDB: main (jlibtool.c:2424) ==12090== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C287E8: strlen (mc_replace_strmem.c:282) ==12088== by 0x401387: flatten_count_chars (jlibtool.c:450) ==12088== by 0x401674: run_command (jlibtool.c:560) ==12088== by 0x40480A: run_mode (jlibtool.c:2280) ==12088== by 0x404D0D: main (jlibtool.c:2431) ==12088== ==12088== Conditional jump or move depends on uninitialised value(s) ==12088== at 0x4C284D7: strcat (mc_replace_strmem.c:176) ==12088== by 0x401415: flatten_count_chars (jlibtool.c:462) ==12088== by 0x401674: run_command (jlibtool.c:560) ==12088== by 0x40480A: run_mode (jlibtool.c:2280) ==12088== by 0x404D0D: main (jlibtool.c:2431) ==12088== ==12088== ==12088== HEAP SUMMARY: ==12088== in use at exit: 400,197 bytes in 62 blocks ==12088== total heap usage: 64 allocs, 2 frees, 400,804 bytes allocated ==12088== ==12088== LEAK SUMMARY: ==12088== definitely lost: 71,365 bytes in 20 blocks ==12088== indirectly lost: 328,832 bytes in 42 blocks ==12088== possibly lost: 0 bytes in 0 blocks ==12088== still reachable: 0 bytes in 0 blocks ==12088== suppressed: 0 bytes in 0 blocks ==12088== Rerun with --leak-check=full to see details of leaked memory ==12088== ==12088== For counts of detected and suppressed errors, rerun with: -v ==12088== Use --track-origins=yes to see where uninitialised values come from ==12088== ERROR SUMMARY: 15 errors from 15 contexts (suppressed: 6 from 6) alan
Hi,
alan buxey wrote:
hows this?
further..... now problems with install before I can run: Making install in src/modules/rlm_perl... install: src/modules/rlm_perl/example.pl does not exist gmake[7]: *** [install-scripts] Error 1 gmake[6]: *** [install] Error 2 gmake[5]: *** [rlm_perl] Error 2 gmake[4]: *** [install] Error 2 gmake[3]: *** [modules] Error 2 gmake[2]: *** [install] Error 2 gmake[1]: *** [src] Error 2 make: *** [install] Error 2 ('fixed' by just removing the example.pl call from the Makefile/all.mk in rlm_perl but needs looking at) then... /usr/local/src/freeradius-server/install-sh -c -m 755 checkrad.pl /usr/sbin/checkrad install: checkrad.pl does not exist gmake[4]: *** [install] Error 1 gmake[3]: *** [main] Error 2 gmake[2]: *** [install] Error 2 gmake[1]: *** [src] Error 2 make: *** [install] Error 2 (once again, 'fixed' by removing the calls from Makefile/all.mk in src/main server runs - but is a low slower than before..and takes much more CPU - I guess these are the developer changes made to HEAD...so i'll need to turn some of thos e things off....let GCC optimize etc (just using --with-developer=no doesnt appear to work....) alan
Nice.
$ git pull
:)
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
alan buxey wrote:
further..... now problems with install before I can run:
Making install in src/modules/rlm_perl... install: src/modules/rlm_perl/example.pl does not exist .. /usr/local/src/freeradius-server/install-sh -c -m 755 checkrad.pl /usr/sbin/checkrad install: checkrad.pl does not exist
I've pushed fixes. I think that the old build system will go away in a few days.
server runs - but is a low slower than before..and takes much more CPU - I guess these are the developer changes made to HEAD...so i'll need to turn some of thos e things off....let GCC optimize etc (just using --with-developer=no doesnt appear to work....)
That's... very weird. How the heck does a build system change a running program like that? Alan DeKok.
Hi,
That's... very weird. How the heck does a build system change a running program like that?
got to the bottom of this - well, sort of. thanks to some out-of-band discussion with Arran. pull request 49 broke our server https://github.com/FreeRADIUS/freeradius-server/pull/49/files causing a massive loopy/CPU burn each time the PERL module was called...... I have 'reverted' this patch (by taking out the changes and changing paircopy2 and pairdelete to use the new API ) and the server now ticks along as it used to. alan
On 22 Nov 2012, at 13:37, alan buxey <A.L.M.Buxey@LBORO.AC.UK> wrote:
Hi,
That's... very weird. How the heck does a build system change a running program like that?
got to the bottom of this - well, sort of. thanks to some out-of-band discussion with Arran.
pull request 49 broke our server
https://github.com/FreeRADIUS/freeradius-server/pull/49/files
causing a massive loopy/CPU burn each time the PERL module was called......
I have 'reverted' this patch (by taking out the changes and changing paircopy2 and pairdelete to use the new API ) and the server now ticks along as it used to.
https://github.com/FreeRADIUS/freeradius-server/commit/1899dbb4a137249e1430f... Fixed. -Arran
On 22 Nov 2012, at 09:02, alan buxey <A.L.M.Buxey@LBORO.AC.UK> wrote:
Hi,
alan buxey wrote:
hows this?
further..... now problems with install before I can run:
Making install in src/modules/rlm_perl... install: src/modules/rlm_perl/example.pl does not exist
lies.
gmake[7]: *** [install-scripts] Error 1 gmake[6]: *** [install] Error 2 gmake[5]: *** [rlm_perl] Error 2 gmake[4]: *** [install] Error 2 gmake[3]: *** [modules] Error 2 gmake[2]: *** [install] Error 2 gmake[1]: *** [src] Error 2 make: *** [install] Error 2
('fixed' by just removing the example.pl call from the Makefile/all.mk in rlm_perl but needs looking at)
installs fine on my system, have you checked it's actually there? :)
then...
/usr/local/src/freeradius-server/install-sh -c -m 755 checkrad.pl /usr/sbin/checkrad install: checkrad.pl does not exist gmake[4]: *** [install] Error 1 gmake[3]: *** [main] Error 2 gmake[2]: *** [install] Error 2 gmake[1]: *** [src] Error 2 make: *** [install] Error 2
(once again, 'fixed' by removing the calls from Makefile/all.mk in src/main
It's now checkrad. I believe Alan has now corrected that.
server runs - but is a low slower than before..and takes much more CPU - I guess these are the developer changes made to HEAD...so i'll need to turn some of thos e things off....let GCC optimize etc (just using --with-developer=no doesnt appear to work....)
* --enable-developer=no And didn't this turn out to be the broken perl module? Sorry I just a bunch of emails from yesterday. -Arran
Hi,
lies.
installs fine on my system, have you checked it's actually there? :)
dont shoot the messenger - all I did was 'git clone' and then ./configure --blahbah then make
And didn't this turn out to be the broken perl module? Sorry I just a bunch of emails from yesterday.
yes..that bit is old news :-) alan
On 23 Nov 2012, at 09:59, alan buxey <A.L.M.Buxey@LBORO.AC.UK> wrote:
Hi,
lies.
installs fine on my system, have you checked it's actually there? :)
dont shoot the messenger - all I did was 'git clone' and then ./configure --blahbah then make
Can you do it with: ./configure --enable-boilermake From the output it looked as if it were installing with the old build system? I made some minor fixes... could you try with the new build system, as the old one will be going away v soon. -Arran
Hi,
alan buxey wrote:
hows this?
Nice.
$ git pull
'old style' build the server works (but is slow due to non optimised gcc etc etc....) 'new style' build - BOILER = yes builds a binary with issues # service radiusd start Starting radiusd: /usr/sbin/radiusd: error while loading shared libraries: build/lib/relink/.libs/rlm_acctlog.so: cannot open shared object file: No such file or directory [FAILED] - as already reported yesterday alan
alan buxey wrote:
# service radiusd start Starting radiusd: /usr/sbin/radiusd: error while loading shared libraries: build/lib/relink/.libs/rlm_acctlog.so: cannot open shared object file: No such file or directory
OK. I've just pushed a fix for that. It should now work. Alan DeKok.
Hi,
Starting radiusd: /usr/sbin/radiusd: error while loading shared libraries: build/lib/relink/.libs/rlm_acctlog.so: cannot open shared object file: No such file or directory
OK. I've just pushed a fix for that.
did a git clone and still got /usr/sbin/radiusd: error while loading shared libraries: build/lib/.libs/rlm_acctlog.so: cannot open shared object file: No such file or directory but then, when I did a 'old method' build, I got this at bottom of radiusd -X Module: Linked to module rlm_perl Module: Instantiating module "netsec-perl" from file /etc/raddb/mods-enabled/perl perl { module = "/etc/raddb/perl-scripts/perl.pm" func_authorize = "authorize" func_authenticate = "authenticate" func_accounting = "accounting" func_preacct = "preacct" func_checksimul = "checksimul" func_detach = "detach" func_xlat = "xlat" func_pre_proxy = "pre_proxy" func_post_proxy = "post_proxy" func_post_auth = "post_auth" func_recv_coa = "recv_coa" func_send_coa = "send_coa" } Segmentation fault ..so looks like the latest arran code has broken something else alan
alan buxey wrote:
did a git clone and still got
/usr/sbin/radiusd: error while loading shared libraries: build/lib/.libs/rlm_acctlog.so: cannot open shared object file: No such file or directory
Well... when I look at the installed objects, all of the paths are correct for me.
..so looks like the latest arran code has broken something else
Oops. Alan DeKok.
On 22 Nov 2012, at 14:54, Alan DeKok <aland@deployingradius.com> wrote:
alan buxey wrote:
did a git clone and still got
/usr/sbin/radiusd: error while loading shared libraries: build/lib/.libs/rlm_acctlog.so: cannot open shared object file: No such file or directory
Well... when I look at the installed objects, all of the paths are correct for me.
..so looks like the latest arran code has broken something else
Oops.
Not necessarily, the infinite loop would have prevented a bunch of other code being executed. Could you provide a backtrace? Doesn't crash for me with single attributes, or multiple alike attributes. Could you provide a backtrace? -Arran
On 22 Nov 2012, at 15:04, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 22 Nov 2012, at 14:54, Alan DeKok <aland@deployingradius.com> wrote:
alan buxey wrote:
did a git clone and still got
/usr/sbin/radiusd: error while loading shared libraries: build/lib/.libs/rlm_acctlog.so: cannot open shared object file: No such file or directory
Well... when I look at the installed objects, all of the paths are correct for me.
..so looks like the latest arran code has broken something else
Oops.
Not necessarily, the infinite loop would have prevented a bunch of other code being executed. Could you provide a backtrace? Doesn't crash for me with single attributes, or multiple alike attributes. Could you provide a backtrace?
I said it twice to higlight the fact you should have done it in your first email, and not because i'm going crazy :)
Hi,
I said it twice to higlight the fact you should have done it in your first email, and not because i'm going crazy :)
;-) from another thread going on, it looks like another change was made to the rlm_perl.c which is causing a segmentation fault at startup. once thats sorted I can hopefully then run the RADIUS server with proper code present. alan
On 22 Nov 2012, at 14:35, alan buxey <A.L.M.Buxey@LBORO.AC.UK> wrote:
Hi,
Starting radiusd: /usr/sbin/radiusd: error while loading shared libraries: build/lib/relink/.libs/rlm_acctlog.so: cannot open shared object file: No such file or directory
OK. I've just pushed a fix for that.
did a git clone and still got
/usr/sbin/radiusd: error while loading shared libraries: build/lib/.libs/rlm_acctlog.so: cannot open shared object file: No such file or directory
but then, when I did a 'old method' build, I got this at bottom of radiusd -X
Module: Linked to module rlm_perl Module: Instantiating module "netsec-perl" from file /etc/raddb/mods-enabled/perl perl { module = "/etc/raddb/perl-scripts/perl.pm" func_authorize = "authorize" func_authenticate = "authenticate" func_accounting = "accounting" func_preacct = "preacct" func_checksimul = "checksimul" func_detach = "detach" func_xlat = "xlat" func_pre_proxy = "pre_proxy" func_post_proxy = "post_proxy" func_post_auth = "post_auth" func_recv_coa = "recv_coa" func_send_coa = "send_coa" } Segmentation fault
..so looks like the latest arran code has broken something else
Because changing code in a function that only gets executed at request time would break instantiation of the module ;)? -Arran
hi, okay..even with --enable-developer=no , performance of the daemon has dropped through the floor. over 99% CPU usage for radiusd with following output errors: Thu Nov 22 09:57:30 2012 : Error: Discarding duplicate request from client montu port 53392 - ID: 10 due to unfinished request 824 Thu Nov 22 09:57:31 2012 : Error: Discarding duplicate request from client wism-lds-2 port 32769 - ID: 201 due to unfinished request 734 Thu Nov 22 09:57:31 2012 : Error: Discarding duplicate request from client wism-lds-2 port 32769 - ID: 170 due to unfinished request 646 Thu Nov 22 09:57:32 2012 : Error: Discarding duplicate request from client wism-lds-2 port 32769 - ID: 241 due to unfinished request 823 Thu Nov 22 09:57:32 2012 : Error: Discarding duplicate request from client wism-lds-2 port 32769 - ID: 242 due to unfinished request 827 Thu Nov 22 09:57:33 2012 : Error: Discarding duplicate request from client wism-lds-2 port 32769 - ID: 191 due to unfinished request 710 Thu Nov 22 09:57:33 2012 : Error: Discarding duplicate request from client wism-lds-2 port 32769 - ID: 211 due to unfinished request 779 Thu Nov 22 09:57:33 2012 : Error: Discarding duplicate request from client wism-lds-2 port 32769 - ID: 180 due to unfinished request 676 Thu Nov 22 09:57:42 2012 : Error: WARNING: Unresponsive child for request 561, in component authenticate module peap Thu Nov 22 09:57:42 2012 : Error: WARNING: Unresponsive child for request 579, in component authenticate module peap Thu Nov 22 09:57:48 2012 : Error: WARNING: Unresponsive child for request 615, in component authenticate module peap Thu Nov 22 09:57:49 2012 : Error: WARNING: Unresponsive child for request 646, in component authenticate module peap Thu Nov 22 09:57:51 2012 : Error: WARNING: Unresponsive child for request 676, in component authenticate module peap Thu Nov 22 09:57:51 2012 : Error: WARNING: Unresponsive child for request 684, in component authenticate module ttls Thu Nov 22 09:57:56 2012 : Error: WARNING: Unresponsive child for request 710, in component authenticate module peap Thu Nov 22 09:57:59 2012 : Error: WARNING: Unresponsive child for request 734, in component authenticate module peap Thu Nov 22 09:58:01 2012 : Error: WARNING: Unresponsive child for request 779, in component authenticate module peap Thu Nov 22 09:58:03 2012 : Error: WARNING: Unresponsive child for request 791, in component authenticate module peap Thu Nov 22 09:58:05 2012 : Error: WARNING: Unresponsive child for request 823, in component authenticate module peap Thu Nov 22 09:58:05 2012 : Error: WARNING: Unresponsive child for request 824, in component authenticate module peap Thu Nov 22 09:58:05 2012 : Error: WARNING: Unresponsive child for request 827, in component authenticate module peap Thu Nov 22 09:58:07 2012 : Error: WARNING: Unresponsive child for request 871, in component authenticate module peap Thu Nov 22 09:58:10 2012 : Error: WARNING: Unresponsive child for request 895, in component authenticate module peap Thu Nov 22 09:58:11 2012 : Error: WARNING: Unresponsive child for request 897, in component authenticate module peap Thu Nov 22 09:58:12 2012 : Error: WARNING: Unresponsive child for request 936, in component authenticate module peap alan
On 22 Nov 2012, at 10:01, alan buxey <A.L.M.Buxey@LBORO.AC.UK> wrote:
hi,
okay..even with --enable-developer=no , performance of the daemon has dropped through the floor. over 99% CPU usage for radiusd with following output errors:
Could you confirm CFLAGS contains -O 2 in Make.inc? -Arran
Hi,
okay..even with --enable-developer=no , performance of the daemon has dropped through the floor. over 99% CPU usage for radiusd with following output errors:
Could you confirm CFLAGS contains -O 2 in Make.inc?
yes....i found it did with --enable-developer=no so the docs appear to be correct. however, looks like some inner-server loop thing going on as the server had 99% processor load with only the following: Thu Nov 22 12:05:43 2012 : Info: Ready to process requests. Thu Nov 22 12:06:28 2012 : Error: Discarding duplicate request from client testclient port 40548 - ID: 7 due to unfinished request 35 Thu Nov 22 12:06:33 2012 : Auth: (58) Invalid user: [wism-check] (from client wism-blade-4-2 port 0) ..so one packet already marked as duplicate ...and then first logged packet being packet 58 and okay (that test is meant to fail...its just for WISM to detect server presence...like status-server) killall radiusd is also not working....it just wont die nicely....had to kill -9 pid it alan
On 22 Nov 2012, at 12:12, alan buxey <A.L.M.Buxey@lboro.ac.uk> wrote:
Hi,
okay..even with --enable-developer=no , performance of the daemon has dropped through the floor. over 99% CPU usage for radiusd with following output errors:
Could you confirm CFLAGS contains -O 2 in Make.inc?
yes....i found it did with --enable-developer=no
so the docs appear to be correct.
however, looks like some inner-server loop thing going on as the server had 99% processor load with only the following:
Thu Nov 22 12:05:43 2012 : Info: Ready to process requests. Thu Nov 22 12:06:28 2012 : Error: Discarding duplicate request from client testclient port 40548 - ID: 7 due to unfinished request 35 Thu Nov 22 12:06:33 2012 : Auth: (58) Invalid user: [wism-check] (from client wism-blade-4-2 port 0)
That's what I figured was happening... Could you attach to the process with gdb and send over the backtrace? IIRC it's just: gdb program <PID> -Arran
On Tue, Nov 20, 2012 at 09:32:17PM +0000, Arran Cudbard-Bell wrote:
Just finished adding all.mk files to most of the modules, to finish the work Alan started a while back. This involved
Nice one.
Can you all try and build the latest HEAD in master and report any issues.
As follows - eventually gets stuck linking build/bin/rlm_utf8: $ ./configure --enable-boilermake ... $ $ make -j8 gcc /home/mcn/git/frs/scripts/jlibtool.c -o /home/mcn/git/frs/scripts/jlibtool CC /home/mcn/git/frs/src/lib/dict.c CC /home/mcn/git/frs/src/lib/filters.c make: /home/mcn/git/frs/scripts/jlibtool: Command not found make: /home/mcn/git/frs/scripts/jlibtool: Command not found make: *** [build/objs//home/mcn/git/frs/src/lib/dict.lo] Error 127 make: *** Waiting for unfinished jobs.... make: *** [build/objs//home/mcn/git/frs/src/lib/filters.lo] Error 127 CC /home/mcn/git/frs/src/lib/hash.c make: /home/mcn/git/frs/scripts/jlibtool: Command not found make: *** [build/objs//home/mcn/git/frs/src/lib/hash.lo] Error 127 /home/mcn/git/frs/scripts/jlibtool.c: In function ‘parse_args’: /home/mcn/git/frs/scripts/jlibtool.c:1771: warning: assignment discards qualifiers from pointer target type $ $ make -j8 CC /home/mcn/git/frs/src/lib/dict.c CC /home/mcn/git/frs/src/lib/filters.c CC /home/mcn/git/frs/src/lib/hash.c CC /home/mcn/git/frs/src/lib/hmac.c CC /home/mcn/git/frs/src/lib/hmacsha1.c CC /home/mcn/git/frs/src/lib/isaac.c In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:45, from /home/mcn/git/frs/src/lib/dict.c:26: /home/mcn/git/frs/src/freeradius-devel/hash.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash’In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:45, from /home/mcn/git/frs/src/lib/filters.c:26: /home/mcn/git/frs/src/freeradius-devel/hash.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash’ /home/mcn/git/frs/src/freeradius-devel/hash.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_update’ /home/mcn/git/frs/src/freeradius-devel/hash.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_string’ /home/mcn/git/frs/src/freeradius-devel/hash.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_fold’ /home/mcn/git/frs/src/freeradius-devel/hash.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_update’/home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: expected declaration specifiers or ‘...’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: type defaults to ‘int’ in declaration of ‘uint32_t’/home/mcn/git/frs/src/freeradius-devel/hash.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_string’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: ‘uint32_t’ declared as function returning a function /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: function declaration isn’t a prototype /home/mcn/git/frs/src/freeradius-devel/hash.h:55: error: expected ‘)’ before ‘hashNode’/home/mcn/git/frs/src/freeradius-devel/hash.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_fold’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: expected declaration specifiers or ‘...’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: type defaults to ‘int’ in declaration of ‘uint32_t’ In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:68, from /home/mcn/git/frs/src/lib/filters.c:26: /home/mcn/git/frs/src/freeradius-devel/sha1.h:14: error: declaration of ‘state’ as array of functions /home/mcn/git/frs/src/freeradius-devel/sha1.h:15: error: declaration of ‘count’ as array of functions/home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: ‘uint32_t’ declared as function returning a function /home/mcn/git/frs/src/freeradius-devel/sha1.h:16: error: expected specifier-qualifier-list before ‘uint8_t’ In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:45, from /home/mcn/git/frs/src/lib/hmac.c:31: /home/mcn/git/frs/src/freeradius-devel/hash.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: function declaration isn’t a prototype/home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: declaration of ‘state’ as array of functions /home/mcn/git/frs/src/freeradius-devel/hash.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_update’/home/mcn/git/frs/src/freeradius-devel/sha1.h:19: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/hash.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_string’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: expected ‘;’, ‘,’ or ‘)’ before ‘buffer’ /home/mcn/git/frs/src/freeradius-devel/hash.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_fold’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: expected declaration specifiers or ‘...’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/sha1.h:22: error: expected ‘)’ before ‘digest’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: type defaults to ‘int’ in declaration of ‘uint32_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:30: error: expected ‘)’ before ‘digest’/home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: ‘uint32_t’ declared as function returning a function /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: function declaration isn’t a prototype /home/mcn/git/frs/src/freeradius-devel/sha1.h:47: error: expected ‘)’ before ‘mk’ /home/mcn/git/frs/src/freeradius-devel/hash.h:55: error: expected ‘)’ before ‘hashNode’/home/mcn/git/frs/src/freeradius-devel/hash.h:55: error: expected ‘)’ before ‘hashNode’ In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:68, from /home/mcn/git/frs/src/lib/hmac.c:31: /home/mcn/git/frs/src/freeradius-devel/sha1.h:14: error: declaration of ‘state’ as array of functions /home/mcn/git/frs/src/freeradius-devel/sha1.h:15: error: declaration of ‘count’ as array of functions In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:68, from /home/mcn/git/frs/src/lib/dict.c:26: /home/mcn/git/frs/src/freeradius-devel/sha1.h:14: error: declaration of ‘state’ as array of functions/home/mcn/git/frs/src/freeradius-devel/sha1.h:16: error: expected specifier-qualifier-list before ‘uint8_t’In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:45, from /home/mcn/git/frs/src/lib/hmacsha1.c:14: /home/mcn/git/frs/src/freeradius-devel/hash.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash’In file included from /usr/include/inttypes.h:28, from /home/mcn/git/frs/src/freeradius-devel/md4.h:16, from /home/mcn/git/frs/src/freeradius-devel/libradius.h:69, from /home/mcn/git/frs/src/lib/filters.c:26: /usr/include/stdint.h:52: error: conflicting types for ‘uint32_t’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: note: previous declaration of ‘uint32_t’ was here /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: declaration of ‘state’ as array of functions/home/mcn/git/frs/src/freeradius-devel/hash.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_update’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/hash.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_string’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: expected ‘;’, ‘,’ or ‘)’ before ‘buffer’ /home/mcn/git/frs/src/freeradius-devel/hash.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_fold’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token/home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: expected declaration specifiers or ‘...’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/sha1.h:22: error: expected ‘)’ before ‘digest’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: type defaults to ‘int’ in declaration of ‘uint32_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:30: error: expected ‘)’ before ‘digest’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: ‘uint32_t’ declared as function returning a function /home/mcn/git/frs/src/freeradius-devel/sha1.h:47: error: expected ‘)’ before ‘mk’/home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: function declaration isn’t a prototype /home/mcn/git/frs/src/freeradius-devel/sha1.h:15: error: declaration of ‘count’ as array of functions /home/mcn/git/frs/src/freeradius-devel/hash.h:55: error: expected ‘)’ before ‘hashNode’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:16: error: expected specifier-qualifier-list before ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: declaration of ‘state’ as array of functions /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:68, from /home/mcn/git/frs/src/lib/hmacsha1.c:14: /home/mcn/git/frs/src/freeradius-devel/sha1.h:14: error: declaration of ‘state’ as array of functions /home/mcn/git/frs/src/freeradius-devel/sha1.h:15: error: declaration of ‘count’ as array of functions/home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: expected ‘;’, ‘,’ or ‘)’ before ‘buffer’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:16: error: expected specifier-qualifier-list before ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: declaration of ‘state’ as array of functions In file included from /usr/include/inttypes.h:28, from /home/mcn/git/frs/src/freeradius-devel/md4.h:16, from /home/mcn/git/frs/src/freeradius-devel/libradius.h:69, from /home/mcn/git/frs/src/lib/hmac.c:31: /usr/include/stdint.h:52: error: conflicting types for ‘uint32_t’/home/mcn/git/frs/src/freeradius-devel/sha1.h:19: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: note: previous declaration of ‘uint32_t’ was here /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: expected ‘;’, ‘,’ or ‘)’ before ‘buffer’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: warning: type defaults to ‘int’ in declaration of ‘uint8_t’/home/mcn/git/frs/src/freeradius-devel/sha1.h:22: error: expected ‘)’ before ‘digest’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:30: error: expected ‘)’ before ‘digest’/home/mcn/git/frs/src/freeradius-devel/sha1.h:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/sha1.h:47: error: expected ‘)’ before ‘mk’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:22: error: expected ‘)’ before ‘digest’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:30: error: expected ‘)’ before ‘digest’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:47: error: expected ‘)’ before ‘mk’ In file included from /usr/include/inttypes.h:28, from /home/mcn/git/frs/src/freeradius-devel/md4.h:16, from /home/mcn/git/frs/src/freeradius-devel/libradius.h:69, from /home/mcn/git/frs/src/lib/hmacsha1.c:14: /usr/include/stdint.h:52: error: conflicting types for ‘uint32_t’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: note: previous declaration of ‘uint32_t’ was here In file included from /usr/include/inttypes.h:28, from /home/mcn/git/frs/src/freeradius-devel/md4.h:16, from /home/mcn/git/frs/src/freeradius-devel/libradius.h:69, from /home/mcn/git/frs/src/lib/dict.c:26: /usr/include/stdint.h:52: error: conflicting types for ‘uint32_t’In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:45, from /home/mcn/git/frs/src/lib/hash.c:36: /home/mcn/git/frs/src/freeradius-devel/hash.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash’ /home/mcn/git/frs/src/freeradius-devel/hash.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_update’ /home/mcn/git/frs/src/freeradius-devel/hash.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_string’ /home/mcn/git/frs/src/freeradius-devel/hash.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_fold’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: note: previous declaration of ‘uint32_t’ was here/home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: expected declaration specifiers or ‘...’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: type defaults to ‘int’ in declaration of ‘uint32_t’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: ‘uint32_t’ declared as function returning a function /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: function declaration isn’t a prototype /home/mcn/git/frs/src/freeradius-devel/hash.h:55: error: expected ‘)’ before ‘hashNode’ In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:68, from /home/mcn/git/frs/src/lib/hash.c:36: /home/mcn/git/frs/src/freeradius-devel/sha1.h:14: error: declaration of ‘state’ as array of functions /home/mcn/git/frs/src/freeradius-devel/sha1.h:15: error: declaration of ‘count’ as array of functions /home/mcn/git/frs/src/freeradius-devel/sha1.h:16: error: expected specifier-qualifier-list before ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: declaration of ‘state’ as array of functions /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: expected ‘;’, ‘,’ or ‘)’ before ‘buffer’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/sha1.h:22: error: expected ‘)’ before ‘digest’ In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:45, from /home/mcn/git/frs/src/lib/isaac.c:16: /home/mcn/git/frs/src/freeradius-devel/hash.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash’/home/mcn/git/frs/src/freeradius-devel/sha1.h:30: error: expected ‘)’ before ‘digest’ /home/mcn/git/frs/src/freeradius-devel/hash.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_update’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:47: error: expected ‘)’ before ‘mk’ /home/mcn/git/frs/src/freeradius-devel/hash.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_string’ /home/mcn/git/frs/src/freeradius-devel/hash.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fr_hash_fold’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: expected declaration specifiers or ‘...’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: type defaults to ‘int’ in declaration of ‘uint32_t’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: error: ‘uint32_t’ declared as function returning a function /home/mcn/git/frs/src/freeradius-devel/hash.h:51: warning: function declaration isn’t a prototype /home/mcn/git/frs/src/freeradius-devel/hash.h:55: error: expected ‘)’ before ‘hashNode’ In file included from /usr/include/inttypes.h:28, from /home/mcn/git/frs/src/freeradius-devel/md4.h:16, from /home/mcn/git/frs/src/freeradius-devel/libradius.h:69, from /home/mcn/git/frs/src/lib/hash.c:36: /usr/include/stdint.h:52: error: conflicting types for ‘uint32_t’In file included from /home/mcn/git/frs/src/freeradius-devel/libradius.h:68, from /home/mcn/git/frs/src/lib/isaac.c:16: /home/mcn/git/frs/src/freeradius-devel/sha1.h:14: error: declaration of ‘state’ as array of functions /home/mcn/git/frs/src/freeradius-devel/sha1.h:15: error: declaration of ‘count’ as array of functions/home/mcn/git/frs/src/freeradius-devel/hash.h:51: note: previous declaration of ‘uint32_t’ was here /home/mcn/git/frs/src/freeradius-devel/sha1.h:16: error: expected specifier-qualifier-list before ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: declaration of ‘state’ as array of functions /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:19: error: expected ‘;’, ‘,’ or ‘)’ before ‘buffer’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: warning: type defaults to ‘int’ in declaration of ‘uint8_t’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:21: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/mcn/git/frs/src/freeradius-devel/sha1.h:22: error: expected ‘)’ before ‘digest’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:30: error: expected ‘)’ before ‘digest’ /home/mcn/git/frs/src/freeradius-devel/sha1.h:47: error: expected ‘)’ before ‘mk’ In file included from /usr/include/inttypes.h:28, from /home/mcn/git/frs/src/freeradius-devel/md4.h:16, from /home/mcn/git/frs/src/freeradius-devel/libradius.h:69, from /home/mcn/git/frs/src/lib/isaac.c:16: /usr/include/stdint.h:52: error: conflicting types for ‘uint32_t’ /home/mcn/git/frs/src/freeradius-devel/hash.h:51: note: previous declaration of ‘uint32_t’ was here In file included from /home/mcn/git/frs/src/lib/filters.c:26: /home/mcn/git/frs/src/freeradius-devel/libradius.h:164: error: field ‘ipaddr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:165: error: field ‘ipv6addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:221: error: field ‘ip4addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:222: error: field ‘ip6addr’ has incomplete type In file included from /home/mcn/git/frs/src/lib/hmac.c:31: /home/mcn/git/frs/src/freeradius-devel/libradius.h:164: error: field ‘ipaddr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:165: error: field ‘ipv6addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:221: error: field ‘ip4addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:222: error: field ‘ip6addr’ has incomplete type In file included from /home/mcn/git/frs/src/lib/hmacsha1.c:14: /home/mcn/git/frs/src/freeradius-devel/libradius.h:164: error: field ‘ipaddr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:165: error: field ‘ipv6addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:221: error: field ‘ip4addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:222: error: field ‘ip6addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: ‘struct sockaddr_storage’ declared inside parameter list /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: its scope is only this definition or declaration, which is probably not what you want /home/mcn/git/frs/src/freeradius-devel/libradius.h:477: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:478: warning: ‘struct sockaddr_storage’ declared inside parameter list /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: ‘struct sockaddr_storage’ declared inside parameter list /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: its scope is only this definition or declaration, which is probably not what you want /home/mcn/git/frs/src/freeradius-devel/libradius.h:477: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:478: warning: ‘struct sockaddr_storage’ declared inside parameter list In file included from /home/mcn/git/frs/src/lib/hash.c:36: /home/mcn/git/frs/src/freeradius-devel/libradius.h:164: error: field ‘ipaddr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:165: error: field ‘ipv6addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:221: error: field ‘ip4addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:222: error: field ‘ip6addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: ‘struct sockaddr_storage’ declared inside parameter list /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: its scope is only this definition or declaration, which is probably not what you want /home/mcn/git/frs/src/freeradius-devel/libradius.h:477: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:478: warning: ‘struct sockaddr_storage’ declared inside parameter list In file included from /home/mcn/git/frs/src/lib/dict.c:26: /home/mcn/git/frs/src/freeradius-devel/libradius.h:164: error: field ‘ipaddr’ has incomplete typeIn file included from /home/mcn/git/frs/src/lib/isaac.c:16: /home/mcn/git/frs/src/freeradius-devel/libradius.h:164: error: field ‘ipaddr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:165: error: field ‘ipv6addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:165: error: field ‘ipv6addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:221: error: field ‘ip4addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:222: error: field ‘ip6addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:221: error: field ‘ip4addr’ has incomplete type /home/mcn/git/frs/src/freeradius-devel/libradius.h:222: error: field ‘ip6addr’ has incomplete type /home/mcn/git/frs/src/lib/hmacsha1.c: In function ‘fr_hmac_sha1’: /home/mcn/git/frs/src/lib/hmacsha1.c:50: warning: implicit declaration of function ‘fr_SHA1Update’ /home/mcn/git/frs/src/lib/hmacsha1.c:50: warning: nested extern declaration of ‘fr_SHA1Update’ /home/mcn/git/frs/src/lib/hmacsha1.c:51: warning: implicit declaration of function ‘fr_SHA1Final’ /home/mcn/git/frs/src/lib/hmacsha1.c:51: warning: nested extern declaration of ‘fr_SHA1Final’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: ‘struct sockaddr_storage’ declared inside parameter list /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: its scope is only this definition or declaration, which is probably not what you want /home/mcn/git/frs/src/freeradius-devel/libradius.h:477: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:478: warning: ‘struct sockaddr_storage’ declared inside parameter list /home/mcn/git/frs/src/lib/filters.c: In function ‘ascend_parse_ipx_net’: /home/mcn/git/frs/src/lib/filters.c:369: warning: implicit declaration of function ‘htonl’ /home/mcn/git/frs/src/lib/filters.c:369: warning: nested extern declaration of ‘htonl’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: ‘struct sockaddr_storage’ declared inside parameter list /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: its scope is only this definition or declaration, which is probably not what you want /home/mcn/git/frs/src/freeradius-devel/libradius.h:477: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:478: warning: ‘struct sockaddr_storage’ declared inside parameter list /home/mcn/git/frs/src/lib/hash.c:60: error: expected specifier-qualifier-list before ‘fr_hash_table_hash_t’ /home/mcn/git/frs/src/lib/filters.c:443: warning: implicit declaration of function ‘htons’ /home/mcn/git/frs/src/lib/filters.c:443: warning: nested extern declaration of ‘htons’ make: *** [build/objs//home/mcn/git/frs/src/lib/hmac.lo] Error 1 make: *** Waiting for unfinished jobs.... /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: ‘struct sockaddr_storage’ declared inside parameter list make: /home/mcn/git/frs/src/freeradius-devel/libradius.h:476: warning: its scope is only this definition or declaration, which is probably not what you want*** [build/objs//home/mcn/git/frs/src/lib/hmacsha1.lo] Error 1 /home/mcn/git/frs/src/freeradius-devel/libradius.h:477: error: expected declaration specifiers or ‘...’ before ‘socklen_t’ /home/mcn/git/frs/src/freeradius-devel/libradius.h:478: warning: ‘struct sockaddr_storage’ declared inside parameter list /home/mcn/git/frs/src/lib/hash.c: In function ‘list_find’: /home/mcn/git/frs/src/lib/hash.c:188: error: ‘fr_hash_table_t’ has no member named ‘null’ /home/mcn/git/frs/src/lib/hash.c:190: error: ‘fr_hash_table_t’ has no member named ‘cmp’ /home/mcn/git/frs/src/lib/hash.c:191: error: ‘fr_hash_table_t’ has no member named ‘cmp’ /home/mcn/git/frs/src/lib/hash.c: In function ‘list_insert’: /home/mcn/git/frs/src/lib/hash.c:214: error: ‘fr_hash_table_t’ has no member named ‘null’ /home/mcn/git/frs/src/lib/hash.c:219: error: ‘fr_hash_table_t’ has no member named ‘cmp’ /home/mcn/git/frs/src/lib/hash.c:220: error: ‘fr_hash_table_t’ has no member named ‘cmp’ /home/mcn/git/frs/src/lib/hash.c: In function ‘list_delete’: /home/mcn/git/frs/src/lib/hash.c:245: error: ‘fr_hash_table_t’ has no member named ‘null’ /home/mcn/git/frs/src/lib/hash.c: At top level: /home/mcn/git/frs/src/lib/hash.c:260: error: expected ‘)’ before ‘hashNode’ /home/mcn/git/frs/src/lib/hash.c: In function ‘fr_hash_table_fixup’: /home/mcn/git/frs/src/lib/hash.c:322: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:331: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:334: error: ‘fr_hash_table_t’ has no member named ‘null’ /home/mcn/git/frs/src/lib/hash.c:339: error: ‘fr_hash_table_t’ has no member named ‘null’ /home/mcn/git/frs/src/lib/hash.c:340: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:350: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:350: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:350: error: ‘fr_hash_table_t’ has no member named ‘null’ /home/mcn/git/frs/src/lib/hash.c: In function ‘fr_hash_table_grow’: /home/mcn/git/frs/src/lib/hash.c:369: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:374: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:375: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c: In function ‘fr_hash_table_insert’: /home/mcn/git/frs/src/lib/hash.c:398: error: ‘fr_hash_table_t’ has no member named ‘hash’ /home/mcn/git/frs/src/lib/hash.c:402: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:412: error: ‘fr_hash_table_t’ has no member named ‘null’ /home/mcn/git/frs/src/lib/hash.c:418: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c: In function ‘fr_hash_table_find’: /home/mcn/git/frs/src/lib/hash.c:448: error: ‘fr_hash_table_t’ has no member named ‘hash’ /home/mcn/git/frs/src/lib/hash.c:452: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:454: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c: In function ‘fr_hash_table_yank’: /home/mcn/git/frs/src/lib/hash.c:505: error: ‘fr_hash_table_t’ has no member named ‘hash’ /home/mcn/git/frs/src/lib/hash.c:509: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:511: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:514: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c: In function ‘fr_hash_table_free’: /home/mcn/git/frs/src/lib/hash.c:554: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:554: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:555: error: ‘fr_hash_table_t’ has no member named ‘null’ /home/mcn/git/frs/src/lib/hash.c:566: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c: In function ‘fr_hash_table_walk’: /home/mcn/git/frs/src/lib/hash.c:599: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:601: error: ‘fr_hash_table_t’ has no member named ‘buckets’ /home/mcn/git/frs/src/lib/hash.c:601: error: ‘fr_hash_table_t’ has no member named ‘null’ /home/mcn/git/frs/src/lib/hash.c: At top level: /home/mcn/git/frs/src/lib/hash.c:699: warning: no previous prototype for ‘fr_hash’ /home/mcn/git/frs/src/lib/hash.c:733: warning: no previous prototype for ‘fr_hash_update’ /home/mcn/git/frs/src/lib/hash.c:753: warning: no previous prototype for ‘fr_hash_fold’ /home/mcn/git/frs/src/lib/hash.c:777: warning: no previous prototype for ‘fr_hash_string’ make: *** [build/objs//home/mcn/git/frs/src/lib/isaac.lo] Error 1 make: *** [build/objs//home/mcn/git/frs/src/lib/hash.lo] Error 1 /home/mcn/git/frs/src/lib/filters.c: In function ‘print_abinary’: /home/mcn/git/frs/src/lib/filters.c:1195: warning: implicit declaration of function ‘ntohs’ /home/mcn/git/frs/src/lib/filters.c:1195: warning: nested extern declaration of ‘ntohs’ /home/mcn/git/frs/src/lib/filters.c:1221: warning: implicit declaration of function ‘ntohl’ /home/mcn/git/frs/src/lib/filters.c:1221: warning: nested extern declaration of ‘ntohl’ /home/mcn/git/frs/src/lib/dict.c: In function ‘dict_attr_value_hash’: /home/mcn/git/frs/src/lib/dict.c:183: warning: implicit declaration of function ‘fr_hash’ /home/mcn/git/frs/src/lib/dict.c:183: warning: nested extern declaration of ‘fr_hash’ /home/mcn/git/frs/src/lib/dict.c:184: warning: implicit declaration of function ‘fr_hash_update’ /home/mcn/git/frs/src/lib/dict.c:184: warning: nested extern declaration of ‘fr_hash_update’ make: *** [build/objs//home/mcn/git/frs/src/lib/filters.lo] Error 1 /home/mcn/git/frs/src/lib/dict.c: In function ‘dict_addvalue’: /home/mcn/git/frs/src/lib/dict.c:893: warning: implicit declaration of function ‘strlcpy’ /home/mcn/git/frs/src/lib/dict.c:893: warning: nested extern declaration of ‘strlcpy’ /home/mcn/git/frs/src/lib/dict.c: In function ‘my_dict_init’: /home/mcn/git/frs/src/lib/dict.c:1788: error: ‘FR_DIR_SEP’ undeclared (first use in this function) /home/mcn/git/frs/src/lib/dict.c:1788: error: (Each undeclared identifier is reported only once /home/mcn/git/frs/src/lib/dict.c:1788: error: for each function it appears in.) /home/mcn/git/frs/src/lib/dict.c:1800: error: ‘errno’ undeclared (first use in this function) /home/mcn/git/frs/src/lib/dict.c: In function ‘dict_init’: /home/mcn/git/frs/src/lib/dict.c:2142: warning: implicit declaration of function ‘fr_hash_table_create’ /home/mcn/git/frs/src/lib/dict.c:2142: warning: nested extern declaration of ‘fr_hash_table_create’ /home/mcn/git/frs/src/lib/dict.c:2144: warning: assignment makes pointer from integer without a cast /home/mcn/git/frs/src/lib/dict.c:2156: warning: assignment makes pointer from integer without a cast /home/mcn/git/frs/src/lib/dict.c:2169: warning: assignment makes pointer from integer without a cast /home/mcn/git/frs/src/lib/dict.c:2181: warning: assignment makes pointer from integer without a cast /home/mcn/git/frs/src/lib/dict.c:2188: warning: assignment makes pointer from integer without a cast /home/mcn/git/frs/src/lib/dict.c:2195: warning: assignment makes pointer from integer without a cast make: *** [build/objs//home/mcn/git/frs/src/lib/dict.lo] Error 1 $ make -j8 ... LINK build/bin/rlm_utf8 LINK build/lib/rlm_wimax.la LINK build/bin/radclient LINK build/bin/radsniff LINK build/bin/radmin LINK build/bin/radattr LINK build/bin/radconf2xml LINK build/bin/radwho LINK build/bin/dhclient /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 0 has invalid symbol index 11 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 1 has invalid symbol index 12 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 2 has invalid symbol index 2 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 3 has invalid symbol index 2 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 4 has invalid symbol index 11 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 5 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 6 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 7 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 8 has invalid symbol index 2 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 9 has invalid symbol index 2 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 10 has invalid symbol index 12 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 11 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 12 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 13 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 14 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 15 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 16 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 17 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 18 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 19 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 20 has invalid symbol index 20 /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' build/objs//home/mcn/git/frs/src/modules/rlm_utf8/rlm_utf8.o: In function `utf8_clean': /home/mcn/git/frs/src/modules/rlm_utf8/rlm_utf8.c:47: undefined reference to `fr_utf8_char' collect2: ld returned 1 exit status make: *** [build/bin/rlm_utf8] Error 1 make: *** Waiting for unfinished jobs.... $ $ make -j8 LINK build/lib/rlm_eap.la LINK build/bin/rlm_utf8 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 0 has invalid symbol index 11 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 1 has invalid symbol index 12 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 2 has invalid symbol index 2 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 3 has invalid symbol index 2 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 4 has invalid symbol index 11 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 5 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 6 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 7 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 8 has invalid symbol index 2 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 9 has invalid symbol index 2 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 10 has invalid symbol index 12 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 11 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 12 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 13 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 14 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 15 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 16 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 17 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 18 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 19 has invalid symbol index 13 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 20 has invalid symbol index 20 /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' build/objs//home/mcn/git/frs/src/modules/rlm_utf8/rlm_utf8.o: In function `utf8_clean': /home/mcn/git/frs/src/modules/rlm_utf8/rlm_utf8.c:47: undefined reference to `fr_utf8_char' collect2: ld returned 1 exit status make: *** [build/bin/rlm_utf8] Error 1 make: *** Waiting for unfinished jobs.... $ $ make -j8 LINK build/bin/rlm_utf8 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 0 has invalid symbol index 11 /usr/bin/ld.bfd.real: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 1 has invalid symbol index 12 ... then gets stuck as above. (Until recently, make often had to be run a couple of times, as the jlibtool build failed initially, but then FR would build OK after that.) Cheers, Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Architect (UNIX and Networks), Network Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
Hi,
As follows - eventually gets stuck linking build/bin/rlm_utf8:
funny you should say that... LINK build/bin/rlm_utf8 ==15981== Memcheck, a memory error detector ==15981== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==15981== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==15981== Command: /usr/local/src/freeradius-server/scripts/jlibtool --silent --mode=link gcc -o build/bin/rlm_utf8 -rpath /usr/local/src/freeradius-server/build/lib/.libs -rdynamic build/objs/src/modules/rlm_utf8/rlm_utf8.lo ==15981== /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' build/objs/src/modules/rlm_utf8/rlm_utf8.o: In function `utf8_clean': /usr/local/src/freeradius-server/src/modules/rlm_utf8/rlm_utf8.c:47: undefined reference to `fr_utf8_char' collect2: ld returned 1 exit status ==15981== ==15981== HEAP SUMMARY: ==15981== in use at exit: 360,977 bytes in 25 blocks ==15981== total heap usage: 25 allocs, 0 frees, 360,977 bytes allocated ==15981== ==15981== LEAK SUMMARY: ==15981== definitely lost: 33,223 bytes in 13 blocks ==15981== indirectly lost: 327,754 bytes in 12 blocks ==15981== possibly lost: 0 bytes in 0 blocks ==15981== still reachable: 0 bytes in 0 blocks ==15981== suppressed: 0 bytes in 0 blocks ==15981== Rerun with --leak-check=full to see details of leaked memory ==15981== ==15981== For counts of detected and suppressed errors, rerun with: -v ==15981== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6) make: *** [build/bin/rlm_utf8] Error 1 the line in question: len = fr_utf8_char(&vp->vp_octets[i]); alan
alan buxey wrote:
Hi,
As follows - eventually gets stuck linking build/bin/rlm_utf8:
funny you should say that...
The entire build system has changed. I suggest grabbing a fresh source tree, and using that. I've been having issues with that, too. They're solved by *really* cleaning the source tree. And the re-configuring && building. Alan DeKok.
On 20 Nov 2012, at 23:38, Alan DeKok <aland@DEPLOYINGRADIUS.COM> wrote:
alan buxey wrote:
Hi,
As follows - eventually gets stuck linking build/bin/rlm_utf8:
funny you should say that...
It works fine for me doing a serial build. It's only when you do a parallel build the issues occur. I guess all the dependencies haven't been correctly specified yet. -Arran
On Tue, Nov 20, 2012 at 06:38:40PM -0500, Alan DeKok wrote:
I've been having issues with that, too. They're solved by *really* cleaning the source tree. And the re-configuring && building.
Did that before, although I confess I didn't actually say I had - my usual build process for testing is $ rm -rf * .pc $ git reset --hard HEAD before configure & make. The rlm_utf8 issue turns out to be a typo in src/modules/rlm_utf8/all.mk: TARGET := rlm_utf8 should be: TARGET := rlm_utf8.a After that, it now breaks compiling as follows: $ make LINK build/bin/radiusd build/lib/.libs/rlm_smb.so: undefined reference to `mdfour' collect2: ld returned 1 exit status make: *** [build/bin/radiusd] Error 1 $ Although src/modules/rlm_smb/smbencrypt.c calls mdfour(), I can't find any other references to it in the source... any ideas where that was supposed to be defined (or which library it's supposed to pull in)? Cheers Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Architect (UNIX and Networks), Network Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
Matthew Newton wrote:
After that, it now breaks compiling as follows:
$ make LINK build/bin/radiusd build/lib/.libs/rlm_smb.so: undefined reference to `mdfour'
Wild. That code hasn't been used in a LONG time.
collect2: ld returned 1 exit status make: *** [build/bin/radiusd] Error 1 $
Although src/modules/rlm_smb/smbencrypt.c calls mdfour(), I can't find any other references to it in the source... any ideas where that was supposed to be defined (or which library it's supposed to pull in)?
No idea. It worked at one point. Magically, perhaps. My guess is that we should just remove the module. I don't recall anyone ever using it. Alan DeKok.
On Wed, Nov 21, 2012 at 11:37:33AM -0500, Alan DeKok wrote:
Matthew Newton wrote:
After that, it now breaks compiling as follows:
$ make LINK build/bin/radiusd build/lib/.libs/rlm_smb.so: undefined reference to `mdfour'
Wild. That code hasn't been used in a LONG time.
OK, having done some digging, that makes a lot of sense.
It worked at one point. Magically, perhaps.
Found it - the file 'src/modules/rlm_smb/md4.c' was removed in 5791f8641df010 - Fri Sep 19 14:38:32 2003! It's a direct copy of the md4.c from the source of that code at http://www.csn.ul.ie/~airlied/pam_smb/ Adding it back in again (and to all.mk) makes it all build fine.
My guess is that we should just remove the module. I don't recall anyone ever using it.
Given the fact that it's unlikely to have been built since 2003, and that there are warnings of remote root exploits all over the source web page (above), then removing it is likely best. I'm guessing that as it isn't listed in modules/stable, it's just never been built until now. I've sent a pull request to remove it; feel free to cancel that and put md4.c back if you prefer! Cheers, Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Architect (UNIX and Networks), Network Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
Matthew Newton wrote:
Found it - the file 'src/modules/rlm_smb/md4.c' was removed in 5791f8641df010 - Fri Sep 19 14:38:32 2003!
Wow...
Given the fact that it's unlikely to have been built since 2003, and that there are warnings of remote root exploits all over the source web page (above), then removing it is likely best.
Yes. There are no root exploits in the module, as those were addressed about the same time frame.
I'm guessing that as it isn't listed in modules/stable, it's just never been built until now.
I've sent a pull request to remove it; feel free to cancel that and put md4.c back if you prefer!
It should be deleted. Alan DeKok.
participants (4)
-
alan buxey -
Alan DeKok -
Arran Cudbard-Bell -
Matthew Newton