Compiling git-2.1.1 on debian

rgreiner mrgreiner at gmail.com
Thu Nov 6 12:32:19 CET 2008


Thanks for the tip, but in the mean time I found out why the default
2.1.1 package did not compile.

In the debian/patches/01-radiusd-to-freeradius.dpatch file, on line 38,
the following line:

-pidfile = ${run_dir}/radiusd.pid

Must be changed to

-pidfile = ${run_dir}/${name}.pid

Doing that, the standard 2.1.1 package compiles fine.

Thank you for your help,

Roberto

Alexandre Chapellon wrote:
> try compiling using bundled libtools
> remove "--with-system-libtool" from debian/rules
> then relaunch dpkg-builpackages
>
> Le 05.11.2008 09:53, rgreiner a écrit :
>   
>> Hi,
>>
>> I'm trying to compile 2.1.1 on debian using the git version (the
>> standard package stops at the beginning due to the problem with the
>> patches for debian), and in the middle of the checking part it stopped
>> with a message about "INSTALL_LTDL"not being definded (full output
>> below). Could someone please give me a help? A quick googling didn't
>> come up with anyting useable....
>>
>> Thanks,
>>
>> Roberto
>>
>> dpkg-buildpackage: source package is freeradius
>> dpkg-buildpackage: source version is 2.1.1-0
>> dpkg-buildpackage: source changed by Alan DeKok <aland at freeradius.org>
>> dpkg-buildpackage: host architecture i386
>> dpkg-buildpackage: source version without epoch 2.1.1-0
>>  debian/rules clean
>> dpatch  deapply-all 
>> 02-dialupadmin-help not applied to ./ .
>> 01-radiusd-to-freeradius not applied to ./ .
>> rm -rf patch-stamp patch-stampT debian/patched
>> dh_testdir
>> dh_clean
>> rm -f build-arch-stamp build-indep-stamp libltdl/stamp-h1
>> rm -f install-arch-stamp install-indep-stamp configure-stamp
>> [ -f Make.inc ] && make distclean || true
>> # The make clean forgets to remove this build directory
>> [ -d src/modules/lib ] && rm -fr src/modules/lib || true
>> # Put the original autotools files back in place
>> [ -f config.sub.dist ] && rm config.sub && mv config.sub.dist config.sub
>> || true
>> [ -f config.guess.dist ] && rm config.guess && mv config.guess.dist
>> config.guess || true
>>  debian/rules build
>> test -d debian/patched || install -d debian/patched
>> dpatch  apply-all 
>> applying patch 01-radiusd-to-freeradius to ./ ... ok.
>> applying patch 02-dialupadmin-help to ./ ... ok.
>> dpatch  cat-all  >>patch-stampT
>> mv -f patch-stampT patch-stamp
>> dh_testdir
>> # Update the autotools files if necessary
>> # Force Build-Depends on autotools-dev for /usr/share/misc/config.*
>> if [ -e config.sub.dist ]; then rm config.sub; else mv config.sub
>> config.sub.dist; fi
>> if [ -e config.guess.dist ]; then rm config.guess; else mv config.guess
>> config.guess.dist; fi
>> ln -s /usr/share/misc/config.sub config.sub
>> ln -s /usr/share/misc/config.guess config.guess
>> ./configure \
>>                 --build i486-linux-gnu \
>>                 --config-cache \
>>                 --prefix=/usr \
>>                 --exec-prefix=/usr \
>>                 --mandir=/usr/share/man \
>>                 --sysconfdir=/etc \
>>                 --libdir=/usr/lib/freeradius \
>>                 --datadir=/usr/share \
>>                 --localstatedir=/var \
>>                 --with-raddbdir=/etc/freeradius \
>>                 --with-logdir=/var/log/freeradius \
>>                 --with-system-libtool --disable-ltdl-install \
>>                 --with-large-files --with-udpfromto --with-edir \
>>                 --enable-developer \
>>                 --with-rlm-sql-postgresql-lib-dir=`pg_config --libdir` \
>>                 --with-rlm-sql-postgresql-include-dir=`pg_config
>> --includedir`
>> configure: creating cache config.cache
>> checking for gcc... gcc
>> checking for C compiler default output file name... a.out
>> checking whether the C compiler works... yes
>> checking whether we are cross compiling... no
>> checking for suffix of executables...
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking for gcc option to accept ISO C89... none needed
>> checking for g++... no
>> checking for c++... no
>> checking for gpp... no
>> checking for aCC... no
>> checking for CC... no
>> checking for cxx... no
>> checking for cc++... no
>> checking for cl.exe... no
>> checking for FCC... no
>> checking for KCC... no
>> checking for RCC... no
>> checking for xlC_r... no
>> checking for xlC... no
>> checking whether we are using the GNU C++ compiler... no
>> checking whether g++ accepts -g... no
>> checking how to run the C preprocessor... gcc -E
>> checking for grep that handles long lines and -e... /bin/grep
>> checking for egrep... /bin/grep -E
>> checking for AIX... no
>> checking whether gcc needs -traditional... no
>> checking whether we are using SUNPro C... no
>> checking for special C compiler options needed for large files... no
>> checking for _FILE_OFFSET_BITS value needed for large files... 64
>> checking for ANSI C header files... yes
>> checking for sys/types.h... yes
>> checking for sys/stat.h... yes
>> checking for stdlib.h... yes
>> checking for string.h... yes
>> checking for memory.h... yes
>> checking for strings.h... yes
>> checking for inttypes.h... yes
>> checking for stdint.h... yes
>> checking for unistd.h... yes
>> checking whether byte ordering is bigendian... no
>> checking for gmake... no
>> checking for make... /usr/bin/make
>> checking for lt_dlinit in -lltdl... yes
>> configure: WARNING: not overwriting libltdl at /usr, force with
>> `--enable-ltdl-install'
>> checking build system type... i486-pc-linux-gnu
>> checking host system type... i486-pc-linux-gnu
>> checking for a sed that does not truncate output... /bin/sed
>> checking for fgrep... /bin/grep -F
>> checking for ld used by gcc... /usr/bin/ld
>> checking if the linker (/usr/bin/ld) is GNU ld... yes
>> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
>> checking the name lister (/usr/bin/nm -B) interface... BSD nm
>> checking whether ln -s works... yes
>> checking the maximum length of command line arguments... 98304
>> checking whether the shell understands some XSI constructs... yes
>> checking whether the shell understands "+="... yes
>> checking for /usr/bin/ld option to reload object files... -r
>> checking how to recognize dependent libraries... pass_all
>> checking for ar... ar
>> checking for strip... strip
>> checking for ranlib... ranlib
>> checking command to parse /usr/bin/nm -B output from gcc object... ok
>> checking for dlfcn.h... yes
>> checking whether we are using the GNU C++ compiler... (cached) no
>> checking whether g++ accepts -g... (cached) no
>> checking which extension is used for runtime loadable modules...
>> checking which variable specifies run-time module search path...
>> checking for the default library search path...
>> checking for library containing dlopen... -ldl
>> checking for dlerror... yes
>> checking for shl_load... no
>> checking for shl_load in -ldld... no
>> checking for dld_link in -ldld... no
>> checking for _ prefix in compiled symbols... no
>> checking whether deplibs are loaded by dlopen... yes
>> checking for argz.h... yes
>> checking for error_t... yes
>> checking for argz_add... yes
>> checking for argz_append... yes
>> checking for argz_count... yes
>> checking for argz_create_sep... yes
>> checking for argz_insert... yes
>> checking for argz_next... yes
>> checking for argz_stringify... yes
>> checking if argz actually works... yes
>> checking whether libtool supports -dlopen/-dlpreopen... yes
>> checking for libtool... /usr/bin/libtool
>> checking docdir... ${datadir}/doc/freeradius
>> checking logdir... /var/log/freeradius
>> checking radacctdir... ${logdir}/radacct
>> checking raddbdir... /etc/freeradius
>> checking for perl... /usr/bin/perl
>> checking for snmpget... /usr/bin/snmpget
>> checking for snmpwalk... /usr/bin/snmpwalk
>> checking for rusers... /usr/bin/rusers
>> checking for locate... /usr/bin/locate
>> checking for dirname... /usr/bin/dirname
>> checking for grep... (cached) /bin/grep
>> checking pthread.h usability... yes
>> checking pthread.h presence... yes
>> checking for pthread.h... yes
>> checking for pthread_create in -lpthread... yes
>> checking for library containing sem_init... none required
>> checking for getsockname in -lsocket... no
>> checking for inet_aton in -lresolv... yes
>> checking for inet_ntoa in -lnsl... yes
>> checking for DH_new in -lcrypto... yes
>> checking for SSL_new in -lssl... yes
>> checking for htonl in -lws2_32... no
>> checking for pcap_open_live in -lpcap... yes
>> checking for a readline compatible library... no
>> checking for dirent.h that defines DIR... yes
>> checking for library containing opendir... none required
>> checking for ANSI C header files... (cached) yes
>> checking whether time.h and sys/time.h may both be included... yes
>> checking for sys/wait.h that is POSIX.1 compatible... yes
>> checking for unistd.h... (cached) yes
>> checking crypt.h usability... yes
>> checking crypt.h presence... yes
>> checking for crypt.h... yes
>> checking errno.h usability... yes
>> checking errno.h presence... yes
>> checking for errno.h... yes
>> checking resource.h usability... no
>> checking resource.h presence... no
>> checking for resource.h... no
>> checking sys/resource.h usability... yes
>> checking sys/resource.h presence... yes
>> checking for sys/resource.h... yes
>> checking getopt.h usability... yes
>> checking getopt.h presence... yes
>> checking for getopt.h... yes
>> checking malloc.h usability... yes
>> checking malloc.h presence... yes
>> checking for malloc.h... yes
>> checking utmp.h usability... yes
>> checking utmp.h presence... yes
>> checking for utmp.h... yes
>> checking utmpx.h usability... yes
>> checking utmpx.h presence... yes
>> checking for utmpx.h... yes
>> checking signal.h usability... yes
>> checking signal.h presence... yes
>> checking for signal.h... yes
>> checking sys/select.h usability... yes
>> checking sys/select.h presence... yes
>> checking for sys/select.h... yes
>> checking syslog.h usability... yes
>> checking syslog.h presence... yes
>> checking for syslog.h... yes
>> checking for inttypes.h... (cached) yes
>> checking for stdint.h... (cached) yes
>> checking stdio.h usability... yes
>> checking stdio.h presence... yes
>> checking for stdio.h... yes
>> checking netdb.h usability... yes
>> checking netdb.h presence... yes
>> checking for netdb.h... yes
>> checking semaphore.h usability... yes
>> checking semaphore.h presence... yes
>> checking for semaphore.h... yes
>> checking arpa/inet.h usability... yes
>> checking arpa/inet.h presence... yes
>> checking for arpa/inet.h... yes
>> checking netinet/in.h usability... yes
>> checking netinet/in.h presence... yes
>> checking for netinet/in.h... yes
>> checking for sys/types.h... (cached) yes
>> checking sys/socket.h usability... yes
>> checking sys/socket.h presence... yes
>> checking for sys/socket.h... yes
>> checking winsock.h usability... no
>> checking winsock.h presence... no
>> checking for winsock.h... no
>> checking sys/time.h usability... yes
>> checking sys/time.h presence... yes
>> checking for sys/time.h... yes
>> checking for sys/wait.h... (cached) yes
>> checking sys/security.h usability... no
>> checking sys/security.h presence... no
>> checking for sys/security.h... no
>> checking fcntl.h usability... yes
>> checking fcntl.h presence... yes
>> checking for fcntl.h... yes
>> checking sys/fcntl.h usability... yes
>> checking sys/fcntl.h presence... yes
>> checking for sys/fcntl.h... yes
>> checking sys/prctl.h usability... yes
>> checking sys/prctl.h presence... yes
>> checking for sys/prctl.h... yes
>> checking sys/un.h usability... yes
>> checking sys/un.h presence... yes
>> checking for sys/un.h... yes
>> checking glob.h usability... yes
>> checking glob.h presence... yes
>> checking for glob.h... yes
>> checking prot.h usability... no
>> checking prot.h presence... no
>> checking for prot.h... no
>> checking pwd.h usability... yes
>> checking pwd.h presence... yes
>> checking for pwd.h... yes
>> checking grp.h usability... yes
>> checking grp.h presence... yes
>> checking for grp.h... yes
>> checking sia.h usability... no
>> checking sia.h presence... no
>> checking for sia.h... no
>> checking siad.h usability... no
>> checking siad.h presence... no
>> checking for siad.h... no
>> checking for net/if.h... yes
>> checking regex.h usability... yes
>> checking regex.h presence... yes
>> checking for regex.h... yes
>> checking openssl/ssl.h usability... yes
>> checking openssl/ssl.h presence... yes
>> checking for openssl/ssl.h... yes
>> checking openssl/crypto.h usability... yes
>> checking openssl/crypto.h presence... yes
>> checking for openssl/crypto.h... yes
>> checking openssl/err.h usability... yes
>> checking openssl/err.h presence... yes
>> checking for openssl/err.h... yes
>> checking openssl/evp.h usability... yes
>> checking openssl/evp.h presence... yes
>> checking for openssl/evp.h... yes
>> checking openssl/engine.h usability... yes
>> checking openssl/engine.h presence... yes
>> checking for openssl/engine.h... yes
>> checking for OpenSSL version >= 0.9.7... yes
>> checking pcap.h usability... yes
>> checking pcap.h presence... yes
>> checking for pcap.h... yes
>> checking for off_t... yes
>> checking for pid_t... yes
>> checking for size_t... yes
>> checking for uid_t in sys/types.h... yes
>> checking for socklen_t... yes
>> checking for uint8_t... yes
>> checking for uint16_t... yes
>> checking for uint32_t... yes
>> checking for struct in6_addr... yes
>> checking for struct sockaddr_storage... yes
>> checking for struct sockaddr_in6... yes
>> checking for struct addrinfo... yes
>> checking for getopt_long... yes
>> checking for lockf... yes
>> checking for strsignal... yes
>> checking for sigaction... yes
>> checking for sigprocmask... yes
>> checking for pthread_sigmask... yes
>> checking for snprintf... yes
>> checking for vsnprintf... yes
>> checking for setsid... yes
>> checking for strncasecmp... yes
>> checking for strcasecmp... yes
>> checking for localtime_r... yes
>> checking for ctime_r... yes
>> checking for gmtime_r... yes
>> checking for strsep... yes
>> checking for inet_aton... yes
>> checking for inet_pton... yes
>> checking for inet_ntop... yes
>> checking for setlinebuf... yes
>> checking for setvbuf... yes
>> checking for getusershell... yes
>> checking for initgroups... yes
>> checking for getaddrinfo... yes
>> checking for getnameinfo... yes
>> checking for closefrom... no
>> checking for gettimeofday... yes
>> checking for getpeereid... no
>> checking for strlcat... no
>> checking for strlcpy... no
>> checking whether crypt must be declared... no
>> checking whether strncasecmp must be declared... no
>> checking whether strcasecmp must be declared... no
>> checking whether inet_aton must be declared... no
>> checking whether setlinebuf must be declared... no
>> checking whether getusershell must be declared... no
>> checking whether endusershell must be declared... no
>> checking return type of signal handlers... void
>> checking for ut_xtime in struct utmpx... no
>> checking for ipi_addr in struct in_pktinfo... yes
>> checking for ipi6_addr in struct in6_pktinfo... yes
>> checking for an ANSI C-conforming const... yes
>> checking type of OS... Linux
>> checking for developer gcc flags... yes.  Using -g -Wshadow
>> -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings
>> -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
>> -Wnested-externs -W -Wredundant-decls -Wundef
>> checking for TLS... yes
>> checking for crypt in -lcrypt... yes
>> checking for setkey in -lcipher... no
>> checking gethostbyaddr_r() syntax... GNU-style
>> checking gethostbyname_r() syntax... GNU-style
>> checking ctime_r() syntax... POSIX-style
>> top_builddir=/root/radiusd
>> configure: updating cache config.cache
>> configure: error: conditional "INSTALL_LTDL" was never defined.
>> Usually this means the macro was only invoked conditionally.
>> make: *** [configure-stamp] Error 1
>>
>>
>>   
>>     
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>   


-- 
  -----------------------------------------------------
                Marcos Roberto Greiner

   Os otimistas acham que estamos no melhor dos mundos
    Os pessimistas tem medo de que isto seja verdade
                                       Murphy
  -----------------------------------------------------




More information about the Freeradius-Users mailing list