Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3277 closed defect (fixed)

configure errors

Reported by: jreed Owned by: jreed
Priority: medium Milestone: Common Outstanding Tasks
Component: build system Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: Core Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

configure errors:

checking for main in -lpython3.1... no
./configure: line 15510: test: too many arguments
checking for library containing inet_pton... -lnsl

and

checking whether __clang__ is declared... no
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
checking whether -Wl,-R flag is available in linker... yes

Here is my fix:

diff --git a/configure.ac b/configure.ac
index f508400..164c617 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,7 +70,7 @@ AM_CONDITIONAL(USE_CLANGPP, test "X${CLANGPP}" = "Xyes")
 
 dnl Determine if weare using GNU sed
 GNU_SED=no
-$SED --version 2> /dev/null | grep -q GNU
+$SED --version 2> /dev/null | grep GNU > /dev/null 2>&1
 if test $? -eq 0; then
   GNU_SED=yes
 fi
@@ -421,7 +421,7 @@ fi
 # Python 3.2 has an unused parameter in one of its headers. This
 # has been reported, but not fixed as of yet, so we check if we need
 # to set -Wno-unused-parameter.
-if test "X$GXX" = "Xyes" -a $werror_ok = 1; then
+if test "X$GXX" = "Xyes" -a "$werror_ok" = 1; then
        CPPFLAGS_SAVED="$CPPFLAGS"
        CPPFLAGS=${PYTHON_INCLUDES}
        CXXFLAGS_SAVED="$CXXFLAGS"

Subtickets

Change History (4)

comment:1 Changed 6 years ago by jreed

  • Status changed from new to reviewing

comment:2 Changed 6 years ago by muks

  • Owner changed from UnAssigned to jreed

Jeremy: Please go ahead and merge it.

comment:3 Changed 6 years ago by jreed

  • Resolution set to fixed
  • Status changed from reviewing to closed

commit 904601920fec509d9d28759fa03e1f8108ee4079

comment:4 Changed 6 years ago by tomek

  • Milestone changed from Next-Sprint-Proposed to Common Outstanding Tasks

Milestone Next-Sprint-Proposed deleted

Note: See TracTickets for help on using tickets.