From nobody@FreeBSD.org  Wed Oct 23 05:20:02 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 5E09D69F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 23 Oct 2013 05:20:02 +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 4CF5B21BB
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 23 Oct 2013 05:20:02 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9N5K2qI041666
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 23 Oct 2013 05:20:02 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9N5K2Od041665;
	Wed, 23 Oct 2013 05:20:02 GMT
	(envelope-from nobody)
Message-Id: <201310230520.r9N5K2Od041665@oldred.freebsd.org>
Date: Wed, 23 Oct 2013 05:20:02 GMT
From: higemaniya <higemaniya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: multimedia/rtmpdump won't work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         183219
>Category:       ports
>Synopsis:       multimedia/rtmpdump won't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hrs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 23 05:30:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Tue Oct 29 20:50:00 UTC 2013
>Originator:     higemaniya
>Release:        9.1-RELEASE-p7
>Organization:
>Environment:
FreeBSD localhost.localdomain 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep  9 21:34:37 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I can build rtmpdump-2.4.20130923 without error but it won't work:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: No application or playpath in URL!
WARNING: Ignoring SWF hash, supply also the swf size  with --swfsize
Connecting ...
Assertion failed: (digestLen == 32), function HMACsha256, file handshake.h, line 275.
Abort trap (core dumped)


I have also noticed that rtmpdump-2.4.20130923 build with old rtmpdump-2.4 package installed result build error. pkg_delete rtmpdump will work for this.


Regards,
>How-To-Repeat:

>Fix:
This patch fixes the probrem for me:

diff -ru a/rtmpdump/files/patch-librtmp-Makefile b/rtmpdump/files/patch-librtmp-Makefile
--- a/rtmpdump/files/patch-librtmp-Makefile        2013-10-17 10:06:58.000000000 +0900
+++ b/rtmpdump/files/patch-librtmp-Makefile        2013-10-23 13:32:38.239412227 +0900
@@ -49,7 +49,7 @@
  OPT=-O2
 -CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
 +#CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
-+CFLAGS=$(DEF) $(OPT) $(SO_DEF)
++CFLAGS+=$(DEF) $(OPT) $(SO_DEF)
  LDFLAGS=$(XLDFLAGS)


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->hrs 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Oct 23 05:30:10 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/183219: commit references a PR
Date: Tue, 29 Oct 2013 20:49:29 +0000 (UTC)

 Author: hrs
 Date: Tue Oct 29 20:49:22 2013
 New Revision: 332001
 URL: http://svnweb.freebsd.org/changeset/ports/332001
 
 Log:
   Fix a build issue when security/openssl is installed.
   
   PR:	ports/183219, ports/183306
 
 Modified:
   head/multimedia/rtmpdump/Makefile
   head/multimedia/rtmpdump/files/patch-librtmp-Makefile
 
 Modified: head/multimedia/rtmpdump/Makefile
 ==============================================================================
 --- head/multimedia/rtmpdump/Makefile	Tue Oct 29 20:47:32 2013	(r332000)
 +++ head/multimedia/rtmpdump/Makefile	Tue Oct 29 20:49:22 2013	(r332001)
 @@ -2,6 +2,7 @@
  
  PORTNAME=	rtmpdump
  PORTVERSION=	2.4.20130923
 +PORTREVISION=	1
  CATEGORIES=	multimedia net
  MASTER_SITES=	LOCAL/hrs
  
 
 Modified: head/multimedia/rtmpdump/files/patch-librtmp-Makefile
 ==============================================================================
 --- head/multimedia/rtmpdump/files/patch-librtmp-Makefile	Tue Oct 29 20:47:32 2013	(r332000)
 +++ head/multimedia/rtmpdump/files/patch-librtmp-Makefile	Tue Oct 29 20:49:22 2013	(r332001)
 @@ -1,5 +1,5 @@
  --- librtmp/Makefile.orig	2013-10-07 03:52:05.000000000 +0900
 -+++ librtmp/Makefile	2013-10-17 10:05:14.000000000 +0900
 ++++ librtmp/Makefile	2013-10-30 05:16:36.000000000 +0900
  @@ -1,19 +1,21 @@
   VERSION=v2.4
   
 @@ -43,16 +43,18 @@
   LIB_POLARSSL=-lpolarssl $(LIBZ)
   PRIVATE_LIBS=$(LIBS_$(SYS))
   CRYPTO_LIB=$(LIB_$(CRYPTO)) $(PRIVATE_LIBS)
 -@@ -74,7 +76,8 @@
 +@@ -74,8 +76,9 @@
   
   DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
   OPT=-O2
  -CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
 +-LDFLAGS=$(XLDFLAGS)
  +#CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
 -+CFLAGS=$(DEF) $(OPT) $(SO_DEF)
 - LDFLAGS=$(XLDFLAGS)
 ++CFLAGS+=$(DEF) $(SO_DEF)
 ++#LDFLAGS=$(XLDFLAGS)
   
   
 + OBJS=rtmp.o log.o amf.o hashswf.o parseurl.o
  @@ -102,16 +105,18 @@
   	sed -e "s;@prefix@;$(prefix);" -e "s;@libdir@;$(libdir);" \
   		-e "s;@VERSION@;$(VERSION);" \
 _______________________________________________
 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"
 
>Unformatted:
