util-linux build failure: needs link with -lm? #5421
-
Additional Info
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 25 replies
-
|
Seems like a problem with ? |
Beta Was this translation helpful? Give feedback.
-
|
I was finally able to get util-linux to build with |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I encountered this issue on an Ubuntu 16.04 machine, and I could reproduce in plain Ubuntu 16.04 image in docker. Note that I could build util-linux without error from source on Ubuntu 20.04 image, which also has old glibc and therefore brew's glibc should be used. I think this will reproduce build error: docker run --rm -ti ubuntu:16.04 bash
apt update
apt install -y build-essential curl git
useradd -m linuxbrew
su linuxbrew
cd ~
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(.linuxbrew/bin/brew shellenv)"
brew install glibc gcc
brew install gettext pkg-config # (dependencies of util-linux)
brew install -s --debug util-linuxfrom Logs/util-linux/02.makefrom Logs/util-linux/02.make.ccI couldn't find any problem on libsqlite3.so. sqlite3 works:
|
Beta Was this translation helpful? Give feedback.
Even easier: I've found that changing
system "make", "install"in the formula tosystem "make", "install", "LDFLAGS=\"-lm\""worked.