From owner-freebsd-ports-bugs@freebsd.org Fri Jul 12 12:30:27 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 852A415EEA6A for ; Fri, 12 Jul 2019 12:30:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1A8836E6C1 for ; Fri, 12 Jul 2019 12:30:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id CD6F015EEA69; Fri, 12 Jul 2019 12:30:26 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8B6A915EEA68 for ; Fri, 12 Jul 2019 12:30:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 212D26E6BD for ; Fri, 12 Jul 2019 12:30:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 605CC1E206 for ; Fri, 12 Jul 2019 12:30:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x6CCUPZN062981 for ; Fri, 12 Jul 2019 12:30:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6CCUPZ9062977 for ports-bugs@FreeBSD.org; Fri, 12 Jul 2019 12:30:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 239159] emulators/wine-devel: build fails with STAGING option Date: Fri, 12 Jul 2019 12:30:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gerald@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2019 12:30:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239159 Bug ID: 239159 Summary: emulators/wine-devel: build fails with STAGING option Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: gerald@FreeBSD.org Reporter: jcfyecrayz@liamekaens.com Assignee: gerald@FreeBSD.org Flags: maintainer-feedback?(gerald@FreeBSD.org) Created attachment 205714 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D205714&action= =3Dedit [patch] workaround for snwprintf undefined reference if STAGING=3Don 'make -C /usr/ports/emulators/wine-devel WITH=3DSTAGING' fails after the up= date to 4.12: . . gcc8 -m64 -c -o classes.o classes.c -I. -I../../include -I../.. -D__WINESRC= __ -D_SHELL32_ -D_REENTRANT -fPIC \ -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-bo= dy -Wignored-qualifiers \ -Wno-packed-not-aligned -Wshift-overflow=3D2 -Wstrict-prototypes -Wtype-l= imits \ -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogica= l-op -isystem \ /usr/local/include -O2 -pipe -fstack-protector-strong -Wl,-rpath=3D/usr/local/lib/gcc8 -isystem /usr/local/include -fno-strict-al= iasing /usr/local/bin/ld: dialog.o: in function `SetupPromptForDiskW': dialog.c:(.text+0x10c0): undefined reference to `snwprintf' collect2: error: ld returned 1 exit status winegcc: gcc8 failed gmake[3]: *** [Makefile:506: setupapi.dll.so] Error 2 gmake[3]: Leaving directory '/d/local/users/jhein/.nobak/wd/usr/ports/emulators/wine-devel/work/wine-4.= 12/dlls/setupapi' If you replace snwprintf with _snwprintf in the patched dialog.c (from the staging patchset), the build succeeds: --- dlls/setupapi/dialog.c.orig 2019-07-12 09:18:10.588254000 +0000 +++ dlls/setupapi/dialog.c 2019-07-12 11:32:31.303208000 +0000 @@ -249,7 +249,7 @@ UINT WINAPI SetupPromptForDiskW(HWND hwn if (lstrlenW(PathToSource) + 1 + lstrlenW(FileSought) < sizeof(filepath)) { - snwprintf(filepath, MAX_PATH, format, PathToSource, FileSought= ); + _snwprintf(filepath, MAX_PATH, format, PathToSource, FileSough= t); if (GetFileAttributesW(filepath) !=3D INVALID_FILE_ATTRIBUTES) { --=20 You are receiving this mail because: You are the assignee for the bug.=