-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile on Fedora 32 #42
Comments
Ok, I got it to work. Fedora 32 uses GCC 10 which by default compiles with
I found this workaround here: https://gcc.gnu.org/gcc-10/porting_to.html |
Thanks, |
@itayave Fixing the source code? I don't plan on doing that since I have no experience with C. |
Regarding a code fix, see openwrt/packages#13058 as an example. |
Would #46 "nettest_omni: Remove duplicate variable definitions" fix this issue as well? |
Note that I'm # 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 |
Fix following issue: ``` /usr/bin/ld: nettest_omni.o:(.bss+0x208): multiple definition of `loc_nodelay'; nettest_bsd.o:(.bss+0x20): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x20c): multiple definition of `rem_nodelay'; nettest_bsd.o:(.bss+0x24): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x210): multiple definition of `loc_sndavoid'; nettest_bsd.o:(.bss+0x30): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x214): multiple definition of `loc_rcvavoid'; nettest_bsd.o:(.bss+0x34): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x218): multiple definition of `rem_sndavoid'; nettest_bsd.o:(.bss+0x38): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x21c): multiple definition of `rem_rcvavoid'; nettest_bsd.o:(.bss+0x3c): first defined here /usr/bin/ld: nettest_unix.o: in function `recv_stream_stream': nettest_unix.c:(.text+0xd7e): warning: the use of `tempnam' is dangerous, better use `mkstemp' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:305: netperf] Error 1 ``` makepkg RT: ``` { "makepkg.pass": [ 1 ] } ``` Link: HewlettPackard/netperf#42 Signed-off-by: Zou Yu <[email protected]> Signed-off-by: Philip Li <[email protected]>
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:
The text was updated successfully, but these errors were encountered: