From nobody Tue Dec 14 07:21:08 2021 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C7ED418D7364 for ; Tue, 14 Dec 2021 07:21:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JCqYJ4YVDz4m1s for ; Tue, 14 Dec 2021 07:21:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7D40323F95 for ; Tue, 14 Dec 2021 07:21:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BE7L87g087904 for ; Tue, 14 Dec 2021 07:21:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BE7L8Ei087903 for ports-bugs@FreeBSD.org; Tue, 14 Dec 2021 07:21:08 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 260409] graphics/opendx fails to build when you use a few security flags Date: Tue, 14 Dec 2021 07:21:08 +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 Only Me X-Bugzilla-Who: devosalain@ymail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: stephen@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 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 List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639466468; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tGlR0w5L1UdiEQTH78iugEZ++qApvi078FSCVzaVxpE=; b=FlvK3eLEctPdHoRDZMWvRkzPUvQdgb4KMyL2p2Zs37Eghej/SEjGhNwbTyam8v2hyZTyXK XZvWs3fU/VZ7GElx3yLTOVtP9xewas5YbHNZeG7TU+m/2ewuol8jWn1/hP1H5MbWhQVVqQ snQY/CLA2IDv0lplFEgoGRxVVoAd5POfKjpqWqgbnC/qAHogeX8ru+5kni7ePuQdoWimzI F6Eku9f6T8jDH+6zHtkXPNB7ZVttcX0YejZ47XVJt2ByB+CuGezY1KLi2GOn58ImtRaj86 rWphIwELkkxKlxTERUH4lPgOMmYcECxjrknk4QO6TeKaAZvQUbOLkjuNGHxzCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639466468; a=rsa-sha256; cv=none; b=tdvel5PXMaledWU3TPxzqHaGExqXhNhlKwYX1qY4VG5wvlBQhzA9Y0LUBOwZJEhwjwTsy/ WFIZvWN8BEgVCJd+ODXm03DhDtpdYojN3GdyEhoa8rjkmHx/S6Oi24JaUgcQUgjFDNt1lH 5pMfB9kUhG9QZrpVIe9QjWjwc4tJmANwTydq6S2W0oSeMLTlbvlpP+bJXaiy+sAqp8fzJK 0s6SLyAETOOQjKEbfcIbXIUrRe++SJVHqGXDOduGpDv3wifjHXb3v2xayexUFaojU42uwo De9TbPFWjWhLbf2KmxfAr4YolLlNXE53Xdkzo6Q3gF+PIJFRFaGm/Sf+VYVTFw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260409 Bug ID: 260409 Summary: graphics/opendx fails to build when you use a few security flags Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: stephen@FreeBSD.org Reporter: devosalain@ymail.com Assignee: stephen@FreeBSD.org Flags: maintainer-feedback?(stephen@FreeBSD.org) make.conf: MYFLAGS=3D" -D_FORTIFY_SOURCE=3D2 -D_GLIBCXX_ASSERTIONS -fident -mno-unaligned-access -Wformat -Wformat-security -Werror=3Dformat-security = -fPIC -fPIE -fcf-protection -fexceptions -fno-short-enums -fomit-frame-pointer -fstrict-aliasing -fstack-protector-all -fstack-protector -fstack-protector-strong -fstack-clash-protection -O2 -pipe " CFLAGS+=3D"${MYFLAGS}" CXXFLAGS+=3D"${MYFLAGS}" Compilation fails with log, [00:06:42] cc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I./../dpexec -I/wrkdirs/usr/ports/graphics/opendx/work/dx-4.4.4/include -Dfreebsd -O2 -pipe -D_FORTIFY_SOURCE=3D2 -D_GLIBCXX_ASSERTIONS -fident -mno-unaligned-access -Wformat -Wformat-security -Werror=3Dformat-security = -fPIC -fPIE -fcf-protection -fexceptions -fno-short-enums -fomit-frame-pointer -fstrict-aliasing -fstack-protector-all -fstack-protector -fstack-protector-strong -fstack-clash-protection -O2 -pipe -march=3Divybri= dge -fstack-protector-strong -fno-strict-aliasing -D_FORTIFY_SOURCE=3D2 -D_GLIBCXX_ASSERTIONS -fident -mno-unaligned-access -Wformat -Wformat-secur= ity -Werror=3Dformat-security -fPIC -fPIE -fcf-protection -fexceptions -fno-short-enums -fomit-frame-pointer -fstrict-aliasing -fstack-protector-a= ll -fstack-protector -fstack-protector-strong -fstack-clash-protection -O2 -pi= pe -I/usr/local/include -I/usr/local/include -O2 -pipe -D_FORTIFY_SOURCE=3D2 -D_GLIBCXX_ASSERTIONS -fident -mno-unaligned-access -Wformat -Wformat-secur= ity -Werror=3Dformat-security -fPIC -fPIE -fcf-protection -fexceptions -fno-short-enums -fomit-frame-pointer -fstrict-aliasing -fstack-protector-a= ll -fstack-protector -fstack-protector-strong -fstack-clash-protection -O2 -pi= pe -march=3Divybridge -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -D_GNU_SOURCE -c colormap.c -fPIC -DPIC -o .libs/colormap.o [00:06:42] cc: warning: argument unused during compilation: '-mno-unaligned-access' [-Wunused-command-line-argument] [00:06:42] cc: warning: argument unused during compilation: '-mno-unaligned-access' [-Wunused-command-line-argument] [00:06:42] cc: warning: argument unused during compilation: '-mno-unaligned-access' [-Wunused-command-line-argument] [00:06:42] colormap.c:1170:21: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] [00:06:42] sprintf(ei.mp,name); while(*ei.mp) ei.mp++; [00:06:42] ^~~~ [00:06:42] colormap.c:1170:21: note: treat the string as an argument to avo= id this [00:06:42] sprintf(ei.mp,name); while(*ei.mp) ei.mp++; [00:06:42] ^ [00:06:42] "%s",=20 [00:06:42] colormap.c:1189:18: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] [00:06:42] sprintf(ei.mp,name); while(*ei.mp) ei.mp++; [00:06:42] ^~~~ [00:06:42] colormap.c:1189:18: note: treat the string as an argument to avo= id this [00:06:42] sprintf(ei.mp,name); while(*ei.mp) ei.mp++; [00:06:42] ^ [00:06:42] "%s",=20 [00:06:42] 2 errors generated. [00:06:42] gmake[5]: *** [Makefile:459: colormap.lo] Error 1 [00:06:42] gmake[5]: Leaving directory '/wrkdirs/usr/ports/graphics/opendx/work/dx-4.4.4/src/exec/dxmods' [00:06:42] gmake[4]: *** [Makefile:393: all] Error 2 [00:06:42] gmake[4]: Leaving directory '/wrkdirs/usr/ports/graphics/opendx/work/dx-4.4.4/src/exec/dxmods' [00:06:42] gmake[3]: *** [Makefile:386: all-recursive] Error 1 [00:06:42] gmake[3]: Leaving directory '/wrkdirs/usr/ports/graphics/opendx/work/dx-4.4.4/src/exec' [00:06:42] gmake[2]: *** [Makefile:256: all-recursive] Error 1 [00:06:42] gmake[2]: Leaving directory '/wrkdirs/usr/ports/graphics/opendx/work/dx-4.4.4/src' [00:06:42] gmake[1]: *** [Makefile:277: all-recursive] Error 1 [00:06:42] gmake[1]: Leaving directory '/wrkdirs/usr/ports/graphics/opendx/work/dx-4.4.4' [00:06:42] *** Error code 1 [00:06:42]=20 [00:06:42] Stop. [00:06:42] make: stopped in /usr/ports/graphics/opendx --=20 You are receiving this mail because: You are the assignee for the bug.=