[ARGUS] Failed to build on cygwin

Pei Hsuan Hung afcidk at gmail.com
Mon Jan 25 23:29:16 EST 2021


Hello, I'm recently trying to run argus on Windows10. After running
`./configure` successfully, I've encountered some problem that does not
show in my other build on mac OS.

The error message is as below.
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld:
ArgusUdt.o:ArgusUdt.c:(.bss+0x4): multiple definition of `bp';
ArgusUdp.o:ArgusUdp.c:(.bss+0x0): first defined here

After inspecting the ArgusUdp.c and ArgusUdt.c, I found that the reason
lies in the global variable `struct bootp *bp` which is however not used in
either ArgusUdp.c and ArgudUdt.c.

I'm wondering if these two variables could be removed safely? I've removed
this and built successfully in my environment though.

System:  CYGWIN_NT-10.0-WOW DESKTOP-M2GVHV1 3.1.7(0.340/5/3) 2020-08-22
19:03 i686 Cygwin
Arch:    i686

Paths:    /usr/bin/make /usr/bin/gcc /usr/bin/cc



GCC:     Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/10/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: /mnt/share/cygpkgs/gcc/gcc.x86/src/gcc-10.2.0/configure
--srcdir=/mnt/share/cygpkgs/gcc/gcc.x86/src/gcc-10.2.0 --prefix=/usr
--exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C
--build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin
--without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib
--with-gcc-major-version-only --enable-shared --enable-shared-libgcc
--enable-static --enable-version-specific-runtime-libs --enable-bootstrap
--enable-__cxa_atexit --with-dwarf2 --with-arch=i686 --with-tune=generic
--disable-sjlj-exceptions --enable-languages=c,c++,fortran,lto,objc,obj-c++
--enable-graphite --enable-threads=posix --enable-libatomic
--enable-libgomp --enable-libquadmath --enable-libquadmath-support
--disable-libssp --enable-libada --disable-symvers --with-gnu-ld
--with-gnu-as --with-cloog-include=/usr/include/cloog-isl
--without-libiconv-prefix --without-libintl-prefix --with-system-zlib
--enable-linker-build-id --with-default-libstdcxx-abi=gcc4-compatible
--enable-libstdcxx-filesystem-ts
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (GCC)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20210126/5def3c1b/attachment.html>


More information about the argus mailing list