Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Software][Solved] krb5 build fails under Debian 10 x86_64

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
eugrus
Posts: 34
Joined: 2022-12-01 11:13
Has thanked: 7 times

[Software][Solved] krb5 build fails under Debian 10 x86_64

#1 Post by eugrus »

I am trying to build krb5 from sources from its Github repo with intention to then install it into my home dir as a non-priveleged user, but the build fails at

Code: Select all

bison -y  getdate.y
make[2]: *** [<builtin>: getdate.c] Segmentation fault
make[2]: Leaving directory '/home/eugrus/krb5/src/kadmin/cli'
make[1]: *** [Makefile:834: all-recurse] Error 1
make[1]: Leaving directory '/home/eugrus/krb5/src/kadmin'
make: *** [Makefile:1521: all-recurse] Error 1
Here is the full listing: https://gist.github.com/eugrus/23343a5a ... faac7033f7
Last edited by eugrus on 2023-05-27 21:46, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: [Software] krb5 build fails under Debian 10 x86_64

#2 Post by Aki »

Moved to "Programming" sub-forum.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: [Software] krb5 build fails under Debian 10 x86_64

#3 Post by Aki »

Hello,

You didn't report what kerberos version you are trying to build.

I successfully compiled the "Kerberos V5 Release 1.20.1 - current release (2022-11-15)" [1] using Debian Buster 10.13 running an amd64 architecture (X86_64):

Code: Select all

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
$ cat /etc/debian_version 
10.13
$ dpkg-architecture 
DEB_BUILD_ARCH=amd64
DEB_BUILD_ARCH_ABI=base
DEB_BUILD_ARCH_BITS=64
DEB_BUILD_ARCH_CPU=amd64
DEB_BUILD_ARCH_ENDIAN=little
DEB_BUILD_ARCH_LIBC=gnu
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_GNU_CPU=x86_64
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=x86_64-linux-gnu
DEB_BUILD_MULTIARCH=x86_64-linux-gnu
DEB_HOST_ARCH=amd64
DEB_HOST_ARCH_ABI=base
DEB_HOST_ARCH_BITS=64
DEB_HOST_ARCH_CPU=amd64
DEB_HOST_ARCH_ENDIAN=little
DEB_HOST_ARCH_LIBC=gnu
DEB_HOST_ARCH_OS=linux
DEB_HOST_GNU_CPU=x86_64
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=x86_64-linux-gnu
DEB_HOST_MULTIARCH=x86_64-linux-gnu
DEB_TARGET_ARCH=amd64
DEB_TARGET_ARCH_ABI=base
DEB_TARGET_ARCH_BITS=64
DEB_TARGET_ARCH_CPU=amd64
DEB_TARGET_ARCH_ENDIAN=little
DEB_TARGET_ARCH_LIBC=gnu
DEB_TARGET_ARCH_OS=linux
DEB_TARGET_GNU_CPU=x86_64
DEB_TARGET_GNU_SYSTEM=linux-gnu
DEB_TARGET_GNU_TYPE=x86_64-linux-gnu
DEB_TARGET_MULTIARCH=x86_64-linux-gnu
I followed the instructions here [2] and here [3].

These are the commands I run to download and compile the program (bison was the only missing dependency in my installation):

Code: Select all

$ su -l -c "apt update && apt upgrade"
$ su -l -c "apt install bison"
$ wget https://kerberos.org/dist/krb5/1.20/krb5-1.20.1.tar.gz
$ wget https://kerberos.org/dist/krb5/1.20/krb5-1.20.1.tar.gz.asc
$ gpg --verify  krb5-1.20.1.tar.gz.asc
$ tar xf krb5-1.20.1.tar.gz
$ cd krb5-1.20.1
$ cd src/
$ ./configure
$ make
The error you reported in your logs is:

Code: Select all

[..]
bison -y  getdate.y
make[2]: *** [<builtin>: getdate.c] Segmentation fault
make[2]: Leaving directory '/home/eugrus/krb5/src/kadmin/cli'
make[1]: *** [Makefile:834: all-recurse] Error 1
make[1]: Leaving directory '/home/eugrus/krb5/src/kadmin'
make: *** [Makefile:1521: all-recurse] Error 1
Therefore, there was a "Segmentation fault" error probably running the bison program.
Perhaps you have some inconsistencies between installed development programs and their libraries.
You can try to update/upgrade your installed packages before building the project.
Verify available memory and disk space, too.

Hope that helps. Let me know.

---
[1] https://kerberos.org/dist/index.html
[2] https://web.mit.edu/kerberos/krb5-lates ... index.html
[3] https://web.mit.edu/kerberos/krb5-lates ... build.html
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

eugrus
Posts: 34
Joined: 2022-12-01 11:13
Has thanked: 7 times

Re: [Software] krb5 build fails under Debian 10 x86_64

#4 Post by eugrus »

Aki wrote: 2023-05-27 08:18 Hello,

You didn't report what kerberos version you are trying to build.
source codes from
git clone https://github.com/krb5/krb5
on the current repo

I'll try with the release tarball now. Thanks!
Last edited by eugrus on 2023-05-27 13:09, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: [Software] krb5 build fails under Debian 10 x86_64

#5 Post by Aki »

eugrus wrote: 2023-05-27 13:02
Aki wrote: 2023-05-27 08:18 Hello,
You didn't report what kerberos version you are trying to build.
source codes from

Code: Select all

git clone https://github.com/krb5/krb5
on the current repo
I'll try with the release tarball now. Thanks!
Source code from current git repository successfully compiles for me, too. These are the commands I used in the same Debian Buster 10.13 installation:

Code: Select all

$ git clone https://github.com/krb5/krb5
$ cd krb5/src
$ autoconf
$ autoheader
$ ./configure
$ make
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

eugrus
Posts: 34
Joined: 2022-12-01 11:13
Has thanked: 7 times

Re: [Software] krb5 build fails under Debian 10 x86_64

#6 Post by eugrus »

Trying to build the 1.20.1 release gave the same error.
You can try to update/upgrade your installed packages before building the project.
As said, I am a non-priveleged user and was planning an install into ~/.local

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: [Software] krb5 build fails under Debian 10 x86_64

#7 Post by Aki »

Hello,
eugrus wrote: 2023-05-27 14:51 Trying to build the 1.20.1 release gave the same error.
You can try to update/upgrade your installed packages before building the project.
As said, I am a non-priveleged user and was planning an install into ~/.local
I compiled the program as a unprivileged user in a local directory, too.

As reported before, the error you are experiencing is probably caused by an inconsistency in the installation of your development tools. If there's no way to have a clean development environment and if bison is the direct cause, you can try to rebuild bison locally and use the locally rebuilt bison binary instead of the installed one. Its source code is here: https://www.gnu.org/software/bison/

What are the gcc and bison version you are using ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

eugrus
Posts: 34
Joined: 2022-12-01 11:13
Has thanked: 7 times

Re: [Software] krb5 build fails under Debian 10 x86_64

#8 Post by eugrus »

I compiled the program as a unprivileged user in a local directory, too.
What I've meant is that as such I am not able to use apt or do other sudoer activities.

The problem seemed to be with bison installed from brew: it gives Segmentation fault even when started without arguments.

I've now removed the brew bison and temporarily removed $HOME/.local/bin from $PATH and tried a build with only what I've got on the base system.

The build was a success this time.

Thank you!

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: [Software] krb5 build fails under Debian 10 x86_64

#9 Post by Aki »

Hello,
Happy to helped you to sort it out.
Please mark the thread as "Solved" ading the tag "[Solved"] in the subject of the first post of the thread, for example:
[Software][Solved] krb5 build fails under Debian 10 x86_64
Happy Debian & happy hacking.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply