Closed Bug 1414367 Opened 7 years ago Closed 7 years ago

FORTIFY_SOURCE compiler checks are incorrect and trigger non-fatal error output "old-configure: 5045: test: test: unexpected operator"

Categories

(Core :: Security, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1414067
Tracking Status
firefox58 --- affected

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(1 obsolete file)

I noticed this in my configure output today: 0:05.90 checking for dnet_ntoa in -ldnet_stub... (cached) no 0:05.90 checking for gethostbyname... (cached) yes 0:05.90 checking for connect... (cached) yes 0:05.90 checking for remove... (cached) yes 0:05.90 checking for shmat... (cached) yes 0:05.90 checking for IceConnectionNumber in -lICE... (cached) yes 0:05.99 /scratch/work/builds/mozilla-inbound/mozilla/old-configure: 5045: test: test: unexpected operator That "unexpected operator" thing seemed weird to me. It comes from the "test" expression in this line in old-configure.in: https://dxr.mozilla.org/mozilla-central/source/old-configure.in#503 > if test "$GNU_CC" -o test -n "${CLANG_CC}${CLANG_CL}"; then This test expression is invalid. The second mention of "test" is bogus it really should be: > if test "$GNU_CC" -o -n "${CLANG_CC}${CLANG_CL}"; then ...since "-o" expects a second *condition*, not an entirely separate-shell-command.
Oh, I guess this is already filed as bug 1414067.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Assignee: dholbert → nobody
No longer blocks: 1359908
Attachment #8925112 - Flags: review?(nfroyd)
Attachment #8925112 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: