From nobody@FreeBSD.org  Fri Nov  8 12:18:21 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 1DD713E8
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  8 Nov 2013 12:18:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id F12192575
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  8 Nov 2013 12:18:20 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rA8CIKSe053352
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 8 Nov 2013 12:18:20 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rA8CIKte053338;
	Fri, 8 Nov 2013 12:18:20 GMT
	(envelope-from nobody)
Message-Id: <201311081218.rA8CIKte053338@oldred.freebsd.org>
Date: Fri, 8 Nov 2013 12:18:20 GMT
From: Borja Marcos <borjam@sarenet.es>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devel/htp doesn's build with clang
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         183785
>Category:       ports
>Synopsis:       devel/libhtp doesn's build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    koobs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 08 12:20:00 UTC 2013
>Closed-Date:    Sat Nov 23 11:59:58 UTC 2013
>Last-Modified:  Sat Nov 23 11:59:58 UTC 2013
>Originator:     Borja Marcos
>Release:        FreeBSD 10-BETA2
>Organization:
>Environment:
FreeBSD splunk 10.0-BETA2 FreeBSD 10.0-BETA2 #1: Tue Oct 29 13:52:03 CET 2013     root@splunk:/usr/obj/usr/src/sys/SPLUNK10  amd64

>Description:
devel/htp doesn't build with clang.

PORTNAME=       libhtp
PORTVERSION=    0.3.0
PORTREVISION=   2


Updated today from portsnap (Nov 8th 2013)


--- gtest_main.lo ---
In file included from ./gtest/gtest_main.cc:32:
./gtest/gtest.h:9682:34: error: no member named 'tr1' in namespace 'std'
inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
                          ~~~~~~~^
./gtest/gtest.h:9682:44: error: expected ')'
inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
                                           ^
./gtest/gtest.h:9682:20: note: to match this '('
inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
                   ^
./gtest/gtest.h:9683:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
./gtest/gtest.h:9687:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
                   ~~~~~~~^
./gtest/gtest.h:9687:37: error: expected ')'
void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
                                    ^
./gtest/gtest.h:9687:13: note: to match this '('
void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
            ^
./gtest/gtest.h:9688:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
./gtest/gtest.h:9692:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
                   ~~~~~~~^
./gtest/gtest.h:9692:37: error: expected ')'
void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
                                    ^
./gtest/gtest.h:9692:13: note: to match this '('
void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
            ^
./gtest/gtest.h:9693:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
./gtest/gtest.h:9697:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
                   ~~~~~~~^
./gtest/gtest.h:9697:37: error: expected ')'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
                                    ^
./gtest/gtest.h:9697:13: note: to match this '('
void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
            ^
./gtest/gtest.h:9698:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
--- gtest-all.lo ---
In file included from ./gtest/gtest-all.cc:39:
./gtest/gtest.h:9682:34: error: no member named 'tr1' in namespace 'std'
inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
                          ~~~~~~~^
./gtest/gtest.h:9682:44: error: expected ')'
inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
                                           ^
./gtest/gtest.h:9682:20: note: to match this '('
inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
                   ^
./gtest/gtest.h:9683:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
--- gtest_main.lo ---
./gtest/gtest.h:9702:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
                   ~~~~~~~^
./gtest/gtest.h:9702:37: error: expected ')'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
                                    ^
./gtest/gtest.h:9702:13: note: to match this '('
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
            ^
./gtest/gtest.h:9703:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
--- gtest-all.lo ---
./gtest/gtest.h:9687:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
                   ~~~~~~~^
./gtest/gtest.h:9687:37: error: expected ')'
void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
                                    ^
./gtest/gtest.h:9687:13: note: to match this '('
void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
            ^
./gtest/gtest.h:9688:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
--- gtest_main.lo ---
./gtest/gtest.h:9707:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t,
                   ~~~~~~~^
./gtest/gtest.h:9707:37: error: expected ')'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t,
                                    ^
./gtest/gtest.h:9707:13: note: to match this '('
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t,
            ^
./gtest/gtest.h:9709:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
--- gtest-all.lo ---
./gtest/gtest.h:9692:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
                   ~~~~~~~^
./gtest/gtest.h:9692:37: error: expected ')'
void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
                                    ^
./gtest/gtest.h:9692:13: note: to match this '('
void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
            ^
./gtest/gtest.h:9693:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
--- gtest_main.lo ---
./gtest/gtest.h:9714:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6>& t,
                   ~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
--- gtest-all.lo ---
./gtest/gtest.h:9697:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
                   ~~~~~~~^
./gtest/gtest.h:9697:37: error: expected ')'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
                                    ^
./gtest/gtest.h:9697:13: note: to match this '('
void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
            ^
./gtest/gtest.h:9698:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
./gtest/gtest.h:9702:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
                   ~~~~~~~^
./gtest/gtest.h:9702:37: error: expected ')'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
                                    ^
./gtest/gtest.h:9702:13: note: to match this '('
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
            ^
./gtest/gtest.h:9703:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
./gtest/gtest.h:9707:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t,
                   ~~~~~~~^
./gtest/gtest.h:9707:37: error: expected ')'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t,
                                    ^
./gtest/gtest.h:9707:13: note: to match this '('
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t,
            ^
./gtest/gtest.h:9709:16: error: use of undeclared identifier 't'
  PrintTupleTo(t, os);
               ^
./gtest/gtest.h:9714:27: error: no member named 'tr1' in namespace 'std'
void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6>& t,
                   ~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
--- gtest_main.lo ---
20 errors generated.
*** [gtest_main.lo] Error code 1

make[5]: stopped in /usr/ports/devel/libhtp/work/ironbee-libhtp-a334539/test
--- gtest-all.lo ---
20 errors generated.
*** [gtest-all.lo] Error code 1

make[5]: stopped in /usr/ports/devel/libhtp/work/ironbee-libhtp-a334539/test
2 errors

make[5]: stopped in /usr/ports/devel/libhtp/work/ironbee-libhtp-a334539/test
*** [all-recursive] Error code 1

make[4]: stopped in /usr/ports/devel/libhtp/work/ironbee-libhtp-a334539
1 error

make[4]: stopped in /usr/ports/devel/libhtp/work/ironbee-libhtp-a334539
*** [all] Error code 2

make[3]: stopped in /usr/ports/devel/libhtp/work/ironbee-libhtp-a334539
1 error

make[3]: stopped in /usr/ports/devel/libhtp/work/ironbee-libhtp-a334539


>How-To-Repeat:

>Fix:
It builds with gcc. I simply added

USE_GCC?=       yes


to the Makefile.



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wxs 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Nov 11 00:52:36 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183785 
Responsible-Changed-From-To: wxs->koobs 
Responsible-Changed-By: koobs 
Responsible-Changed-When: Sat Nov 23 10:48:39 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183785 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/183785: commit references a PR
Date: Sat, 23 Nov 2013 10:51:53 +0000 (UTC)

 Author: koobs
 Date: Sat Nov 23 10:51:45 2013
 New Revision: 334657
 URL: http://svnweb.freebsd.org/changeset/ports/334657
 
 Log:
   devel/libhtp: Update to 0.5.9
   
   - Update to 0.5.9
   - Update pkg-plist
   - Remove unnecessary patch
   - QA: Enable STAGE support
   - QA: Add LICENSE (BSD)
   - QA: Add regression-test target
   - QA: Remove commented-out MASTER_SITES
   - QA: Re-order USE_* section
   
   Changes:
   
   https://github.com/ironbee/libhtp/blob/0.5.9/ChangeLog
   
   PR:		ports/183785
   Submitted by:	wxs
 
 Deleted:
   head/devel/libhtp/files/
 Modified:
   head/devel/libhtp/Makefile
   head/devel/libhtp/distinfo   (contents, props changed)
   head/devel/libhtp/pkg-plist   (contents, props changed)
 
 Modified: head/devel/libhtp/Makefile
 ==============================================================================
 --- head/devel/libhtp/Makefile	Sat Nov 23 10:26:18 2013	(r334656)
 +++ head/devel/libhtp/Makefile	Sat Nov 23 10:51:45 2013	(r334657)
 @@ -1,22 +1,22 @@
  # $FreeBSD$
  
  PORTNAME=	libhtp
 -PORTVERSION=	0.3.0
 -PORTREVISION=	2
 +PORTVERSION=	0.5.9
  CATEGORIES=	devel
 -#MASTER_SITES=	# This port uses github
  
  MAINTAINER=	koobs@FreeBSD.org
  COMMENT=	Security-aware parser for the HTTP protocol
  
 +LICENSE=	BSD
 +
  USE_GITHUB=	yes
  GH_ACCOUNT=	ironbee
 -GH_COMMIT=	a334539
 +GH_COMMIT=	f5f3c5c
  
 +USES=		pkgconfig pathfix iconv
  USE_AUTOTOOLS=	libtool autoheader aclocal
  ACLOCAL_ARGS=	-Im4
  USE_LDCONFIG=	yes
 -USES=		pkgconfig pathfix iconv
  
  CONFIGURE_ARGS=	${ICONV_CONFIGURE_ARG}
  CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib \
 @@ -24,9 +24,11 @@ CFLAGS+=	-I${LOCALBASE}/include -L${LOCA
  
  CONFLICTS_INSTALL=	libhtp-suricata-*
  
 -NO_STAGE=	yes
  pre-configure:
  	@${REINPLACE_CMD} -Ee 's,^(pkgconfigdir = ).*,\1$$(exec_prefix)/libdata/pkgconfig,' ${WRKSRC}/Makefile.am
  	@cd ${WRKSRC} && ${SH} ./autogen.sh
  
 +regression-test: build
 +	@cd ${WRKSRC} && ${MAKE} check
 +
  .include <bsd.port.mk>
 
 Modified: head/devel/libhtp/distinfo
 ==============================================================================
 --- head/devel/libhtp/distinfo	Sat Nov 23 10:26:18 2013	(r334656)
 +++ head/devel/libhtp/distinfo	Sat Nov 23 10:51:45 2013	(r334657)
 @@ -1,2 +1,2 @@
 -SHA256 (libhtp-0.3.0.tar.gz) = 5ea1c8c7b230113dd293c8d04a278db2c0ff2d894b158a578dbee15ab6a1d552
 -SIZE (libhtp-0.3.0.tar.gz) = 397501
 +SHA256 (libhtp-0.5.9.tar.gz) = b67f236a25abc197069260d454c7a1b16198be21338068ab57a0a156ec18198d
 +SIZE (libhtp-0.5.9.tar.gz) = 5764911
 
 Modified: head/devel/libhtp/pkg-plist
 ==============================================================================
 --- head/devel/libhtp/pkg-plist	Sat Nov 23 10:26:18 2013	(r334656)
 +++ head/devel/libhtp/pkg-plist	Sat Nov 23 10:51:45 2013	(r334657)
 @@ -1,15 +1,21 @@
 -include/htp/hooks.h
 +include/htp/htp_config.h
 +include/htp/htp_connection_parser.h
 +include/htp/htp_core.h
 +include/htp/htp_list.h
 +include/htp/htp_table.h
 +include/htp/htp_transaction.h
 +include/htp/htp_version.h
 +include/htp/htp_hooks.h
  include/htp/htp_decompressors.h
  include/htp/bstr.h
  include/htp/bstr_builder.h
 -include/htp/utf8_decoder.h
 -include/htp/dslib.h
 +include/htp/htp_utf8_decoder.h
  include/htp/htp.h
  include/htp/htp_base64.h
  include/htp/htp_multipart.h
  include/htp/htp_urlencoded.h
 -lib/libhtp-0.3.so
 -lib/libhtp-0.3.so.1
 +lib/libhtp-0.5.9.so
 +lib/libhtp-0.5.9.so.1
  lib/libhtp.a
  lib/libhtp.la
  lib/libhtp.so
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 

From: Kubilay Kocak <koobs.freebsd@gmail.com>
To: bug-followup@FreeBSD.org, borjam@sarenet.es
Cc:  
Subject: Re: ports/183785: devel/libhtp doesn&#39;s build with clang
Date: Sat, 23 Nov 2013 22:44:16 +1100

 I've confirmed successful build on 10.x after updating to 0.5.9
 
 See upstream commit for the fix:
 
 https://github.com/ironbee/libhtp/commit/524389f8f591586a2a3a80e8719fbb83d0a2a04c
State-Changed-From-To: open->closed 
State-Changed-By: koobs 
State-Changed-When: Sat Nov 23 11:59:57 UTC 2013 
State-Changed-Why:  
Fixed. Thanks Borja! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183785 
>Unformatted:
