From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 6 15:30:17 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9107A1065673 for ; Fri, 6 Jul 2012 15:30:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 681EE8FC17 for ; Fri, 6 Jul 2012 15:30:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q66FUHAg014289 for ; Fri, 6 Jul 2012 15:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q66FUHcY014286; Fri, 6 Jul 2012 15:30:17 GMT (envelope-from gnats) Resent-Date: Fri, 6 Jul 2012 15:30:17 GMT Resent-Message-Id: <201207061530.q66FUHcY014286@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6CD01065670 for ; Fri, 6 Jul 2012 15:27:55 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from server2.allsitecontrol.com (server2.allsitecontrol.com [63.143.36.210]) by mx1.freebsd.org (Postfix) with ESMTP id 9EF2D8FC12 for ; Fri, 6 Jul 2012 15:27:55 +0000 (UTC) Received: from tor18.anonymizer.ccc.de ([31.172.30.1]:42699 helo=internal.tormail.org) by server2.allsitecontrol.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.77) (envelope-from ) id 1SnARe-000ztE-2Y for FreeBSD-gnats-submit@freebsd.org; Fri, 06 Jul 2012 11:27:47 -0400 Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1SnAQj-0004c9-PH for FreeBSD-gnats-submit@freebsd.org; Fri, 06 Jul 2012 15:26:50 +0000 Message-Id: <1SnAQj-0004c9-PH@internal.tormail.org> Date: Fri, 06 Jul 2012 18:27:09 +0300 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/169682: [patch] net/libproxy: unbreak with gcc47/libc++ X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2012 15:30:17 -0000 >Number: 169682 >Category: ports >Synopsis: [patch] net/libproxy: unbreak with gcc47/libc++ >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 06 15:30:16 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: >Description: >How-To-Repeat: $ make CC=gcc47 CXX=g++47 [...] [ 68%] Building CXX object libproxy/CMakeFiles/libproxy.dir/url.cpp.o /usr/ports/net/libproxy/work/libproxy-0.4.6/libproxy/url.cpp: In member function 'char* libproxy::url::get_pac()': /usr/ports/net/libproxy/work/libproxy-0.4.6/libproxy/url.cpp:405:37: error: 'read' was not declared in this scope /usr/ports/net/libproxy/work/libproxy-0.4.6/libproxy/url.cpp:430:13: error: 'close' was not declared in this scope /usr/ports/net/libproxy/work/libproxy-0.4.6/libproxy/url.cpp:446:13: error: 'close' was not declared in this scope *** [libproxy/CMakeFiles/libproxy.dir/url.cpp.o] Error code 1 >Fix: --- gcc47.diff begins here --- Index: net/libproxy/files/patch-libproxy_url.cpp =================================================================== RCS file: net/libproxy/files/patch-libproxy_url.cpp diff -N net/libproxy/files/patch-libproxy_url.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ net/libproxy/files/patch-libproxy_url.cpp 6 Jul 2012 15:16:40 -0000 @@ -0,0 +1,10 @@ +--- libproxy/url.cpp~ ++++ libproxy/url.cpp +@@ -27,6 +27,7 @@ + #define close _close + #endif + #include // For ::open() ++#include // For close() + #include // For memcpy() + #include // For int/string conversion (using stringstream) + #include // For sscanf() Index: net/libproxy/files/patch-utils-CMakeLists.txt =================================================================== RCS file: net/libproxy/files/patch-utils-CMakeLists.txt diff -N net/libproxy/files/patch-utils-CMakeLists.txt --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ net/libproxy/files/patch-utils-CMakeLists.txt 6 Jul 2012 15:21:52 -0000 @@ -0,0 +1,8 @@ +--- utils/CMakeLists.txt~ ++++ utils/CMakeLists.txt +@@ -3,4 +3,5 @@ link_directories(${LIBPROXY_LIBRARY_DIRS + + add_executable(proxy proxy.c) + target_link_libraries(proxy libproxy) ++set(CMAKE_C_COMPILER ${CMAKE_CXX_COMPILER}) + install(TARGETS proxy RUNTIME DESTINATION ${BIN_INSTALL_DIR}) --- gcc47.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: