Date: Mon, 14 Aug 2017 18:59:02 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 221531] net/wmwifi: Fix runtime on architectures where sizeof(int) != sizeof(size_t) Message-ID: <bug-221531-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221531 Bug ID: 221531 Summary: net/wmwifi: Fix runtime on architectures where sizeof(int) !=3D sizeof(size_t) Product: Ports & Packages Version: Latest Hardware: Any URL: https://forums.freebsd.org/threads/61981/ OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: uqs@FreeBSD.org Reporter: tobik@freebsd.org CC: uqs@FreeBSD.org Attachment #185413 maintainer-approval?(uqs@FreeBSD.org) Flags: Flags: maintainer-feedback?(uqs@FreeBSD.org) Assignee: uqs@FreeBSD.org CC: uqs@FreeBSD.org Created attachment 185413 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D185413&action= =3Dedit wmwifi.diff Currently wmwifi doesn't start on amd64 and simply fails with wmwifi: No wireless interface found! The problem is that the code assumes that sizeof(int) =3D=3D sizeof(size_t) which isn't the case on amd64 and all sysctl() calls will fail because of it. Another problem is that the port fails to build outside of Poudriere when devel/autoconf and devel/automake are installed in the environment since patching configure.in triggers the build to try to regenerate configure which fails with: gmake[1]: Entering directory '/usr/ports/net/wmwifi/work/wmwifi-0.4-bsd' cd . && aclocal aclocal-1.15: warning: autoconf input should be named 'configure.ac', not 'configure.in' /usr/local/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition = of AM_PATH_GDK_PIXBUF /usr/local/share/aclocal/gdk-pixbuf.m4:12: run info Automake 'Extending aclocal' /usr/local/share/aclocal/gdk-pixbuf.m4:12: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal cd . && automake --gnu Makefile automake-1.15: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms a= re deprecated. For more info, see: configure.in:3: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005f= INIT_005fAUTOMAKE-invocation configure.in:6: error: required file './compile' not found configure.in:6: 'automake --add-missing' can install 'compile' gmake[1]: *** [Makefile:82: Makefile.in] Error 1 gmake[1]: Leaving directory '/usr/ports/net/wmwifi/work/wmwifi-0.4-bsd' *** Error code 1 I suggest removing the patch and instead pass CFLAGS through CONFIGURE_ENV to the build to work around this problem. While here I also add LICENSE, LICENSE_FILE, and the missing USE_XORG=3Dxext. Poudriere testport 11.0/amd64 and 10.3/i386 ok --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221531-13>