Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@ldhost ~/src/pw-radius]
- test# git clone https://github.com/speakinghedge/libradius-linux.git
- Cloning into 'libradius-linux'...
- remote: Counting objects: 59, done.
- remote: Total 59 (delta 0), reused 0 (delta 0), pack-reused 59
- Unpacking objects: 100% (59/59), done.
- test# cd libradius-linux/
- test# mkdir build
- test# cd build/
- test# cmake ..
- -- The C compiler identification is GNU
- -- Check for working C compiler: /usr/bin/gcc
- -- Check for working C compiler: /usr/bin/gcc -- works
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1..1")
- hash function source: OpenSSL (https://www.openssl.org/)
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /root/src/pw-radius/libradius-linux/build
- test# make
- Scanning dependencies of target libradius-linux
- [ 33%] Building C object src/CMakeFiles/libradius-linux.dir/radlib.c.o
- Linking C static library liblibradius-linux.a
- [ 33%] Built target libradius-linux
- Scanning dependencies of target accounting-client
- [ 66%] Building C object example/CMakeFiles/accounting-client.dir/accounting-client.c.o
- Linking C executable accounting-client
- [ 66%] Built target accounting-client
- Scanning dependencies of target accounting-server
- [100%] Building C object example/CMakeFiles/accounting-server.dir/accounting-server.c.o
- Linking C executable accounting-server
- [100%] Built target accounting-server
- test# apt-get source slapd
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- Picking 'openldap' as source package instead of 'slapd'
- NOTICE: 'openldap' packaging is maintained in the 'Svn' version control system at:
- svn://svn.debian.org/pkg-openldap/openldap/trunk
- ...
- openldap-2.4.28/contrib/ldapc++/LICENSE
- openldap-2.4.28/doc/guide/COPYRIGHT
- openldap-2.4.28/doc/guide/LICENSE
- test# zcat openldap_2.4.28-1.1ubuntu4.6.diff.gz | patch -p1
- patching file doc/guide/COPYRIGHT
- patching file doc/guide/LICENSE
- patching file contrib/ldapc++/LICENSE
- patching file debian/ldap-utils.dirs
- ...
- test# cd openldap-2.4.28
- 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
- Configuring OpenLDAP 2.4.28-Release ...
- checking build system type... x86_64-unknown-linux-gnu
- checking host system type... x86_64-unknown-linux-gnu
- checking target system type... x86_64-unknown-linux-gnu
- ...
- Making servers/slapd/backends.c
- Add config ...
- Add ldif ...
- Making servers/slapd/overlays/statover.c
- Please run "make depend" to build dependencies
- test# make depend
- Making depend in /root/src/pw-radius/libradius-linux/build/openldap-2.4.28
- Entering subdirectory include
- ...
- make[1]: Leaving directory `/root/src/pw-radius/libradius-linux/build/openldap-2.4.28/doc'
- test# make
- Making all in /root/src/pw-radius/libradius-linux/build/openldap-2.4.28
- Entering subdirectory include
- make[1]: Entering directory `/root/src/pw-radius/libradius-linux/build/openldap-2.4.28/include'
- ...
- make[2]: Leaving directory `/root/src/pw-radius/libradius-linux/build/openldap-2.4.28/doc/man'
- make[1]: Leaving directory `/root/src/pw-radius/libradius-linux/build/openldap-2.4.28/doc'
- test# cd contrib/slapd-modules/passwd
- test# gcc -shared -I../../../include -I../../../../../include -Wall -fPIC -g -o pw-radius.so radius.c -L../../../../../build/src/liblibradius-linux.a
- test# dir
- ...
- -rwxr-xr-x 1 root root 17029 Sep 30 13:02 pw-radius.so
- ##### radius.la
- test# gcc -shared -I../../../include -I../../../../../include -I../../../servers/slapd -Wall -fPIC -c radius.c -o radius.lo
- 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
- #### libtool (guess it works... sort of)
- test# libtool --mode=compile gcc -shared -I../../../include -I../../../../../include -I../../../servers/slapd -Wall -fPIC -c radius.c -o radius.lo
- 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