Building the 3.0.18 version
hello, I'm trying to build version 3.0.18 in a debian 9.8 by following the link https://wiki.freeradius.org/building/Debian%20and%20Ubuntu#building-packages, but when I run the "make deb" command the error "make: *** No rule to make target 'deb'" occurs. Getting the source ok Installing build dependencies ok Building Packages *error* Any idea? -- Elias Pereira
On Feb 26, 2019, at 12:28 PM, Elias Pereira <empbilly@gmail.com> wrote:
hello,
I'm trying to build version 3.0.18 in a debian 9.8 by following the link https://wiki.freeradius.org/building/Debian%20and%20Ubuntu#building-packages, but when I run the "make deb" command the error "make: *** No rule to make target 'deb'" occurs.
Are you running that command inside of the source tree? wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.18.tar.gz tar -zxf freeradius-server* cd freeradius-server-3.0.18 make deb Alan DeKok.
On Tue, 2019-02-26 at 14:28 -0300, Elias Pereira wrote:
but when I run the "make deb" command the error "make: *** No rule to make target 'deb'" occurs. ... Any idea?
The instructions work. I updated them yesterday: $ mkdir /tmp/l $ cd /tmp/l $ git clone https://github.com/FreeRADIUS/freeradius-server.git Cloning into 'freeradius-server'... remote: Enumerating objects: 38, done. remote: Counting objects: 100% (38/38), done. remote: Compressing objects: 100% (31/31), done. remote: Total 274336 (delta 10), reused 18 (delta 7), pack-reused 274298 Receiving objects: 100% (274336/274336), 85.56 MiB | 1.98 MiB/s, done. Resolving deltas: 100% (216316/216316), done. $ cd freeradius-server $ git checkout release_3_0_18 Note: checking out 'release_3_0_18'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b <new-branch-name> HEAD is now at bf70868a20 bump for 3.0.18 $ make deb fakeroot debian/rules debian/control #clean make[1]: Entering directory '/tmp/l/freeradius-server' sed -e 's/@BUILDDEPS@/libsystemd-dev,/g' \ debian/control.in > debian/control.tmp mv debian/control.tmp debian/control make[1]: Leaving directory '/tmp/l/freeradius-server' fakeroot dpkg-buildpackage -b -uc dpkg-buildpackage: info: source package freeradius dpkg-buildpackage: info: source version 3.0.18+git dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Alan DeKok < aland@freeradius.org> dpkg-buildpackage: info: host architecture amd64 dpkg-source --before-build freeradius-server debian/rules clean make[1]: Entering directory '/tmp/l/freeradius-server' QUILT_PATCHES=debian/patches \ quilt --quiltrc /dev/null pop -a -R || test $? = 2 No patch removed rm -rf .pc debian/stamp-patched dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp rm -f config.cache config.log rm -f src/freeradius-devel [ ! -d src/modules/lib ] || rm -fr src/modules/lib || true [ ! -d src/binary ] || rm -fr src/binary || true # Add here commands to clean up after the build process. dh_clean rm -f debian/debhelper-build-stamp ... -- Matthew
Are you running that command inside of the source tree?
wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.18.tar.gz
tar -zxf freeradius-server* cd freeradius-server-3.0.18 make deb The instructions work. I updated them yesterday: Yes, but before the make deb I ran "Installing build dependencies" commands for verify and install dependencies. After the git clone I run make deb? On Tue, Feb 26, 2019 at 2:34 PM Matthew Newton <mcn@freeradius.org> wrote:
On Tue, 2019-02-26 at 14:28 -0300, Elias Pereira wrote:
but when I run the "make deb" command the error "make: *** No rule to make target 'deb'" occurs. ... Any idea?
The instructions work. I updated them yesterday:
$ mkdir /tmp/l $ cd /tmp/l $ git clone https://github.com/FreeRADIUS/freeradius-server.git Cloning into 'freeradius-server'... remote: Enumerating objects: 38, done. remote: Counting objects: 100% (38/38), done. remote: Compressing objects: 100% (31/31), done. remote: Total 274336 (delta 10), reused 18 (delta 7), pack-reused 274298 Receiving objects: 100% (274336/274336), 85.56 MiB | 1.98 MiB/s, done. Resolving deltas: 100% (216316/216316), done. $ cd freeradius-server $ git checkout release_3_0_18 Note: checking out 'release_3_0_18'.
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at bf70868a20 bump for 3.0.18 $ make deb fakeroot debian/rules debian/control #clean make[1]: Entering directory '/tmp/l/freeradius-server' sed -e 's/@BUILDDEPS@/libsystemd-dev,/g' \ debian/control.in > debian/control.tmp mv debian/control.tmp debian/control make[1]: Leaving directory '/tmp/l/freeradius-server' fakeroot dpkg-buildpackage -b -uc dpkg-buildpackage: info: source package freeradius dpkg-buildpackage: info: source version 3.0.18+git dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Alan DeKok < aland@freeradius.org> dpkg-buildpackage: info: host architecture amd64 dpkg-source --before-build freeradius-server debian/rules clean make[1]: Entering directory '/tmp/l/freeradius-server' QUILT_PATCHES=debian/patches \ quilt --quiltrc /dev/null pop -a -R || test $? = 2 No patch removed rm -rf .pc debian/stamp-patched dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp rm -f config.cache config.log rm -f src/freeradius-devel [ ! -d src/modules/lib ] || rm -fr src/modules/lib || true [ ! -d src/binary ] || rm -fr src/binary || true # Add here commands to clean up after the build process. dh_clean rm -f debian/debhelper-build-stamp ...
-- Matthew
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Elias Pereira
On Tue, 2019-02-26 at 17:40 -0300, Elias Pereira wrote:
Yes, but before the make deb I ran "Installing build dependencies" commands for verify and install dependencies.
I've already got the build dependencies installed on my system. If you haven't then you'll need to do that, too.
After the git clone I run make deb?
Yes, if the dependencies are already installed. Otherwise do it in the order on the wiki page. -- Matthew
Debian 9.8 does not have some dependencies. Look: root@samba49rc4:/usr/src/freeradius-server# mk-build-deps -ir debian/control dh_testdir dh_testroot dh_prep dh_testdir dh_testroot dh_install dh_install: Compatibility levels before 9 are deprecated (level 7 in use) dh_installdocs dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use) dh_installchangelogs dh_compress dh_fixperms dh_installdeb dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use) dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: a compilar o pacote `freeradius-build-deps' em `../freeradius-build-deps_4.0.0+git_all.deb'. The package has been created. Attention, the package has been created in the current directory, not in ".." as indicated by the message above! A seleccionar pacote anteriormente não seleccionado freeradius-build-deps. (Lendo banco de dados ... 39032 ficheiros e directórios actualmente instalados.) A preparar para desempacotar freeradius-build-deps_4.0.0+git_all.deb ... A descompactar freeradius-build-deps (4.0.0+git) ... Lendo listas de pacotes... Pronto Construindo árvore de dependências Lendo informação de estado... Pronto Corrigindo dependências...Starting pkgProblemResolver with broken count: 2 Starting 2 pkgProblemResolver with broken count: 2 Investigating (0) krb5-multidev:amd64 < none -> 1.15-1+deb9u1 @un uN Ib > Broken krb5-multidev:amd64 Depende on comerr-dev:amd64 < none | 2.1-1.43.4-2 @un uH > Considering comerr-dev:amd64 1 as a solution to krb5-multidev:amd64 0 Holding Back krb5-multidev:amd64 rather than change comerr-dev:amd64 Investigating (0) libkrb5-dev:amd64 < none -> 1.15-1+deb9u1 @un uN Ib > Broken libkrb5-dev:amd64 Depende on krb5-multidev:amd64 < none | 1.15-1+deb9u1 @un uH > (= 1.15-1+deb9u1) Considering krb5-multidev:amd64 0 as a solution to libkrb5-dev:amd64 -1 Holding Back libkrb5-dev:amd64 rather than change krb5-multidev:amd64 Investigating (0) freeradius-build-deps:amd64 < 4.0.0+git @iU mK Nb Ib > Broken freeradius-build-deps:amd64 Depende on libsystemd-dev:amd64 < none | 232-25+deb9u9 @un uH > Considering libsystemd-dev:amd64 1 as a solution to freeradius-build-deps:amd64 -2 Removing freeradius-build-deps:amd64 rather than change libsystemd-dev:amd64 Done Pronto Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done Os pacotes a seguir serão REMOVIDOS: freeradius-build-deps 0 pacotes atualizados, 0 pacotes novos instalados, 1 a serem removidos e 0 não atualizados. 1 pacotes não totalmente instalados ou removidos. Depois desta operação, 10,2 kB de espaço em disco serão liberados. Você quer continuar? [S/n] s (Lendo banco de dados ... 39036 ficheiros e directórios actualmente instalados.) A remover freeradius-build-deps (4.0.0+git) ... mk-build-deps: Unable to install freeradius-build-deps at /usr/bin/mk-build-deps line 402. mk-build-deps: Unable to install all build-dep packages On Tue, Feb 26, 2019 at 6:05 PM Matthew Newton <mcn@freeradius.org> wrote:
On Tue, 2019-02-26 at 17:40 -0300, Elias Pereira wrote:
Yes, but before the make deb I ran "Installing build dependencies" commands for verify and install dependencies.
I've already got the build dependencies installed on my system. If you haven't then you'll need to do that, too.
After the git clone I run make deb?
Yes, if the dependencies are already installed. Otherwise do it in the order on the wiki page.
-- Matthew
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Elias Pereira
Some dependencies that debian stretch 9.8 don't have candidate to install. - libkqueue-dev (maybe compile from https://github.com/mheily/libkqueue ?) - libjson0 - libjson-c2libjson-c3 - libjson0-dev On Tue, Feb 26, 2019 at 6:22 PM Elias Pereira <empbilly@gmail.com> wrote:
Debian 9.8 does not have some dependencies. Look:
root@samba49rc4:/usr/src/freeradius-server# mk-build-deps -ir debian/control dh_testdir dh_testroot dh_prep dh_testdir dh_testroot dh_install dh_install: Compatibility levels before 9 are deprecated (level 7 in use) dh_installdocs dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use) dh_installchangelogs dh_compress dh_fixperms dh_installdeb dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use) dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: a compilar o pacote `freeradius-build-deps' em `../freeradius-build-deps_4.0.0+git_all.deb'.
The package has been created. Attention, the package has been created in the current directory, not in ".." as indicated by the message above! A seleccionar pacote anteriormente não seleccionado freeradius-build-deps. (Lendo banco de dados ... 39032 ficheiros e directórios actualmente instalados.) A preparar para desempacotar freeradius-build-deps_4.0.0+git_all.deb ... A descompactar freeradius-build-deps (4.0.0+git) ... Lendo listas de pacotes... Pronto Construindo árvore de dependências Lendo informação de estado... Pronto Corrigindo dependências...Starting pkgProblemResolver with broken count: 2 Starting 2 pkgProblemResolver with broken count: 2 Investigating (0) krb5-multidev:amd64 < none -> 1.15-1+deb9u1 @un uN Ib > Broken krb5-multidev:amd64 Depende on comerr-dev:amd64 < none | 2.1-1.43.4-2 @un uH > Considering comerr-dev:amd64 1 as a solution to krb5-multidev:amd64 0 Holding Back krb5-multidev:amd64 rather than change comerr-dev:amd64 Investigating (0) libkrb5-dev:amd64 < none -> 1.15-1+deb9u1 @un uN Ib > Broken libkrb5-dev:amd64 Depende on krb5-multidev:amd64 < none | 1.15-1+deb9u1 @un uH > (= 1.15-1+deb9u1) Considering krb5-multidev:amd64 0 as a solution to libkrb5-dev:amd64 -1 Holding Back libkrb5-dev:amd64 rather than change krb5-multidev:amd64 Investigating (0) freeradius-build-deps:amd64 < 4.0.0+git @iU mK Nb Ib > Broken freeradius-build-deps:amd64 Depende on libsystemd-dev:amd64 < none | 232-25+deb9u9 @un uH > Considering libsystemd-dev:amd64 1 as a solution to freeradius-build-deps:amd64 -2 Removing freeradius-build-deps:amd64 rather than change libsystemd-dev:amd64 Done Pronto Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done Os pacotes a seguir serão REMOVIDOS: freeradius-build-deps 0 pacotes atualizados, 0 pacotes novos instalados, 1 a serem removidos e 0 não atualizados. 1 pacotes não totalmente instalados ou removidos. Depois desta operação, 10,2 kB de espaço em disco serão liberados. Você quer continuar? [S/n] s (Lendo banco de dados ... 39036 ficheiros e directórios actualmente instalados.) A remover freeradius-build-deps (4.0.0+git) ... mk-build-deps: Unable to install freeradius-build-deps at /usr/bin/mk-build-deps line 402. mk-build-deps: Unable to install all build-dep packages
On Tue, Feb 26, 2019 at 6:05 PM Matthew Newton <mcn@freeradius.org> wrote:
On Tue, 2019-02-26 at 17:40 -0300, Elias Pereira wrote:
Yes, but before the make deb I ran "Installing build dependencies" commands for verify and install dependencies.
I've already got the build dependencies installed on my system. If you haven't then you'll need to do that, too.
After the git clone I run make deb?
Yes, if the dependencies are already installed. Otherwise do it in the order on the wiki page.
-- Matthew
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Elias Pereira
-- Elias Pereira
On Feb 26, 2019, at 6:29 PM, Elias Pereira <empbilly@gmail.com> wrote:
Some dependencies that debian stretch 9.8 don't have candidate to install.
None of those are *required*. The server will build and run without them.
- libkqueue-dev (maybe compile from https://github.com/mheily/libkqueue ?)
Arran has put a bunch of fixes into the upstream repository. It's now easier to build it and create debian packages from it.
- libjson0 - libjson-c2libjson-c3 - libjson0-dev
Alan DeKok.
root@samba49rc4:/usr/src/freeradius-server# make deb /usr/bin/fakeroot fakeroot debian/rules debian/control #clean make[1]: Entering directory '/usr/src/freeradius-server' make[1]: 'debian/control' is up to date. make[1]: Leaving directory '/usr/src/freeradius-server' fakeroot dpkg-buildpackage -b -uc dpkg-buildpackage: info: source package freeradius dpkg-buildpackage: info: source version 4.0.0+git dpkg-buildpackage: info: source distribution UNRELEASED dpkg-buildpackage: info: source changed by Arran Cudbard-Bell < a.cudbardb@freeradius.org> dpkg-buildpackage: info: host architecture amd64 dpkg-source --before-build freeradius-server dpkg-checkbuilddeps: error: Unmet build dependencies: libsystemd-dev dh-systemd (>= 1.5) libcurl4-openssl-dev | libcurl4-gnutls-dev libcap-dev libgdbm-dev libjson0 | libjson-c2 | libjson-c3 libjson0-dev | libjson-c-dev libkrb5-dev | heimdal-dev libkqueue-dev libldap2-dev libpam0g-dev libpcap-dev libpcre3-dev libperl-dev libmysqlclient-dev | default-libmysqlclient-dev libpq-dev libreadline-dev libsasl2-dev libsqlite3-dev libssl-dev libtalloc-dev libwbclient-dev libyubikey-dev libykclient-dev libmemcached-dev libhiredis-dev python-dev samba-dev unixodbc-dev dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting dpkg-buildpackage: warning: (Use -d flag to override.) Makefile:324: recipe for target 'deb' failed make: *** [deb] Error 3 What packages are needed then? On Tue, Feb 26, 2019 at 8:34 PM Alan DeKok <aland@deployingradius.com> wrote:
On Feb 26, 2019, at 6:29 PM, Elias Pereira <empbilly@gmail.com> wrote:
Some dependencies that debian stretch 9.8 don't have candidate to install.
None of those are *required*. The server will build and run without them.
- libkqueue-dev (maybe compile from https://github.com/mheily/libkqueue ?)
Arran has put a bunch of fixes into the upstream repository. It's now easier to build it and create debian packages from it.
- libjson0 - libjson-c2libjson-c3 - libjson0-dev
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Elias Pereira
On Feb 26, 2019, at 6:49 PM, Elias Pereira <empbilly@gmail.com> wrote:
What packages are needed then?
The packages *you* use. The default debian rules build *all* FreeRADIUS packages for Debian. This includes rlm_ldap, rlm_sql, even if *you* don't want to use LDAP or SQL. The solution is to edit debian/control so that it only builds the packages you need. Or, just install all of the packages it's complaining about, and then all of the FreeRADIUS packages will be built. Alan DeKok.
On 26 February 2019 23:49:11 GMT, Elias Pereira <empbilly@gmail.com> wrote:
dpkg-buildpackage: info: source version 4.0.0+git
If you want to build 3.0.18 like the subject says, then you're not following the instructions on the wiki. You're building development version. Which is why it's asking for kqueue and all sorts of things you don't need. -- Matthew
If you want to build 3.0.18 like the subject says, then you're not following the instructions on the wiki.
You're building development version. Which is why it's asking for kqueue
and all sorts of things you don't need.
I used these commands
From the git repository (*version 3.0.18* - latest released version) git clone https://github.com/FreeRADIUS/freeradius-server.git cd freeradius-server git checkout release_3_0_18
So, the wiki steps is wrong? On Tue, Feb 26, 2019 at 9:35 PM Matthew Newton <mcn@freeradius.org> wrote:
On 26 February 2019 23:49:11 GMT, Elias Pereira <empbilly@gmail.com> wrote:
dpkg-buildpackage: info: source version 4.0.0+git
If you want to build 3.0.18 like the subject says, then you're not following the instructions on the wiki.
You're building development version. Which is why it's asking for kqueue and all sorts of things you don't need.
-- Matthew
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Elias Pereira
On Tue, 2019-02-26 at 22:13 -0300, Elias Pereira wrote:
I used these commands
From the git repository (*version 3.0.18* - latest released version) git clone https://github.com/FreeRADIUS/freeradius-server.git cd freeradius-server git checkout release_3_0_18
So, the wiki steps is wrong?
No, the wiki is right. You haven't done git checkout release_3_0_18 -- Matthew
You haven't done
git checkout release_3_0_18
Can be. :D With the packages below I was able to satisfy the dependecies and create the debs in debian stretch 9.8 aptitude install libsystemd0 libsystemd-dev dh-systemd libcurl4-openssl-dev libcap-dev libgdbm-dev libjson-c-dev libjson-c3 libjson-c-dev libldap-2.4-2 libldap2-dev libpam0g-dev libpcap-dev libpcre3-dev libperl-dev libmariadbclient-dev default-libmysqlclient-dev libpq-dev libreadline-dev libsasl2-dev libsqlite3-dev libssl-dev libtalloc-dev libwbclient-dev libyubikey-dev libykclient-dev libmemcached-dev libhiredis-dev python-dev samba-dev unixodbc-dev libiodbc2-dev libkrb5-dev ssl-cert On Tue, Feb 26, 2019 at 10:13 PM Elias Pereira <empbilly@gmail.com> wrote:
If you want to build 3.0.18 like the subject says, then you're not
following the instructions on the wiki.
You're building development version. Which is why it's asking for kqueue
and all sorts of things you don't need.
I used these commands
From the git repository (*version 3.0.18* - latest released version) git clone https://github.com/FreeRADIUS/freeradius-server.git cd freeradius-server git checkout release_3_0_18
So, the wiki steps is wrong?
On Tue, Feb 26, 2019 at 9:35 PM Matthew Newton <mcn@freeradius.org> wrote:
On 26 February 2019 23:49:11 GMT, Elias Pereira <empbilly@gmail.com> wrote:
dpkg-buildpackage: info: source version 4.0.0+git
If you want to build 3.0.18 like the subject says, then you're not following the instructions on the wiki.
You're building development version. Which is why it's asking for kqueue and all sorts of things you don't need.
-- Matthew
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Elias Pereira
-- Elias Pereira
participants (3)
-
Alan DeKok -
Elias Pereira -
Matthew Newton