Open huaracheguarache opened 4 years ago
Ok, I got it to work. Fedora 32 uses GCC 10 which by default compiles with -fno-common
. As a workaround you can pass -fcommon
to GCC via make:
make CFLAGS="-fcommon"
I found this workaround here: https://gcc.gnu.org/gcc-10/porting_to.html
Thanks, Are you planning to provide a fix? if so, when?
@itayave Fixing the source code? I don't plan on doing that since I have no experience with C.
Regarding a code fix, see https://github.com/openwrt/packages/pull/13058 as an example.
Would https://github.com/HewlettPackard/netperf/pull/46 "nettest_omni: Remove duplicate variable definitions" fix this issue as well?
Note that I'm ~still unable to compile~ now able to compile on FC34 with ~this Dockerfile:
# RUN dnf install -y [...]
## Install dotfiles
ARG uid=1000
ARG user="appuser"
ARG home="/home/${user}"
ARG __wrk="${home}/-wrk"
ARG workon_home="${__wrk}/-ve39"
ARG venvname="turnernet"
ARG project="${__wrk}/${venvname}"
ARG virtual_env="${workon_home}/${venvname}"
# Install flent (requires netperf)
RUN HOME="${home}" \
PATH="${home}/.local/bin:${PATH}" \
python -m pip install --user flent && \
cd "${__wrk}" && \
(test -d netperf \
|| git clone https://github.com/HewlettPackard/netperf) && \
cd netperf && \
./autogen.sh && \
./configure --enable-demo --prefix=/usr/local
USER root
RUN make -C "${__wrk}/netperf" CFLAGS="-fcommon" && make -C "${__wrk}/netperf" install
USER 1000
# COPY --chown=${user} \
COPY --chown=1000:1000 \
requirements.txt requirements_dev.txt "${__wrk}/"
RUN python3 -m venv "${virtual_env}" \
&& "${virtual_env}/bin/python" -m pip install \
-r "${__wrk}/requirements_dev.txt" \
-r "${__wrk}/requirements.txt" \
notebook jupyterlab jupyter_contrib_nbextensions \
flent matplotlib \
pandas
EXPOSE 18888/tcp
As the title states, I'm unable to compile netperf on Fedora 32. What I've done so far is run (without any apparent issues):
When I run make I get the following error: