Advertisement
Guest User

libradius-linux/openldap pw-radius build

a guest
Oct 1st, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.33 KB | None | 0 0
  1. [root@ldhost ~/src/pw-radius]
  2. test# git clone https://github.com/speakinghedge/libradius-linux.git
  3. Cloning into 'libradius-linux'...
  4. remote: Counting objects: 59, done.
  5. remote: Total 59 (delta 0), reused 0 (delta 0), pack-reused 59
  6. Unpacking objects: 100% (59/59), done.
  7.  
  8.  
  9. test# cd libradius-linux/
  10.  
  11.  
  12. test# mkdir build
  13.  
  14.  
  15. test# cd build/
  16.  
  17.  
  18. test# cmake  ..
  19. -- The C compiler identification is GNU
  20. -- Check for working C compiler: /usr/bin/gcc
  21. -- Check for working C compiler: /usr/bin/gcc -- works
  22. -- Detecting C compiler ABI info
  23. -- Detecting C compiler ABI info - done
  24. -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1..1")
  25. hash function source: OpenSSL (https://www.openssl.org/)
  26. -- Configuring done
  27. -- Generating done
  28. -- Build files have been written to: /root/src/pw-radius/libradius-linux/build
  29.  
  30.  
  31.  
  32. test# make
  33. Scanning dependencies of target libradius-linux
  34. [ 33%] Building C object src/CMakeFiles/libradius-linux.dir/radlib.c.o
  35. Linking C static library liblibradius-linux.a
  36. [ 33%] Built target libradius-linux
  37. Scanning dependencies of target accounting-client
  38. [ 66%] Building C object example/CMakeFiles/accounting-client.dir/accounting-client.c.o
  39. Linking C executable accounting-client
  40. [ 66%] Built target accounting-client
  41. Scanning dependencies of target accounting-server
  42. [100%] Building C object example/CMakeFiles/accounting-server.dir/accounting-server.c.o
  43. Linking C executable accounting-server
  44. [100%] Built target accounting-server
  45.  
  46.  
  47.  
  48. test# apt-get source slapd
  49. Reading package lists... Done
  50. Building dependency tree      
  51. Reading state information... Done
  52. Picking 'openldap' as source package instead of 'slapd'
  53. NOTICE: 'openldap' packaging is maintained in the 'Svn' version control system at:
  54. svn://svn.debian.org/pkg-openldap/openldap/trunk
  55. ...
  56.  openldap-2.4.28/contrib/ldapc++/LICENSE
  57.  openldap-2.4.28/doc/guide/COPYRIGHT
  58.  openldap-2.4.28/doc/guide/LICENSE
  59.  
  60.  
  61.  
  62. test# zcat openldap_2.4.28-1.1ubuntu4.6.diff.gz | patch -p1
  63. patching file doc/guide/COPYRIGHT
  64. patching file doc/guide/LICENSE
  65. patching file contrib/ldapc++/LICENSE
  66. patching file debian/ldap-utils.dirs
  67. ...
  68.  
  69.  
  70.  
  71. test# cd openldap-2.4.28
  72.  
  73.  
  74. test# ./configure  --enable-memberof  --enable-ppolicy  --enable-rwm --enable-modules --enable-passwd --enable-perl --enable-overlays --with-tls --enable-accesslog --enable-dynamic --disable-slapd  --enable-passwd
  75. Configuring OpenLDAP 2.4.28-Release ...
  76. checking build system type... x86_64-unknown-linux-gnu
  77. checking host system type... x86_64-unknown-linux-gnu
  78. checking target system type... x86_64-unknown-linux-gnu
  79. ...
  80. Making servers/slapd/backends.c
  81.     Add config ...
  82.     Add ldif ...
  83. Making servers/slapd/overlays/statover.c
  84. Please run "make depend" to build dependencies
  85.  
  86.  
  87.  
  88. test# make depend
  89. Making depend in /root/src/pw-radius/libradius-linux/build/openldap-2.4.28
  90.   Entering subdirectory include
  91. ...
  92. make[1]: Leaving directory `/root/src/pw-radius/libradius-linux/build/openldap-2.4.28/doc'
  93.  
  94.  
  95.  
  96. test# make
  97. Making all in /root/src/pw-radius/libradius-linux/build/openldap-2.4.28
  98.  Entering subdirectory include
  99. make[1]: Entering directory `/root/src/pw-radius/libradius-linux/build/openldap-2.4.28/include'
  100. ...
  101. make[2]: Leaving directory `/root/src/pw-radius/libradius-linux/build/openldap-2.4.28/doc/man'
  102. make[1]: Leaving directory `/root/src/pw-radius/libradius-linux/build/openldap-2.4.28/doc'
  103.  
  104.  
  105. test# cd contrib/slapd-modules/passwd
  106.  
  107.  
  108. test# gcc -shared -I../../../include -I../../../../../include -Wall -fPIC -g -o pw-radius.so radius.c -L../../../../../build/src/liblibradius-linux.a
  109.  
  110.  
  111. test# dir
  112. ...
  113. -rwxr-xr-x  1 root root 17029 Sep 30 13:02 pw-radius.so
  114.  
  115.  
  116.  
  117. ##### radius.la
  118. test# gcc -shared -I../../../include -I../../../../../include -I../../../servers/slapd -Wall -fPIC -c radius.c -o radius.lo
  119. test# gcc -shared -I../../../include -I../../../../../include -I../../../servers/slapd -Wall -fPIC -g -module -o radius.la  radius.lo -L../../../../../build/src/liblibradius-linux.a
  120.  
  121.  
  122. #### libtool (guess it works... sort of)
  123. test# libtool --mode=compile gcc -shared -I../../../include -I../../../../../include -I../../../servers/slapd -Wall -fPIC -c radius.c -o radius.lo
  124. test# libtool --mode=link gcc -version-info 0:0:0 -rpath /usr/local/lib -L/root/src/pw-radius/libradius-linux/build/src/  -module -o radius.la
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement