From owner-freebsd-stable@FreeBSD.ORG Wed Mar 18 17:10:18 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1AC5106574A for ; Wed, 18 Mar 2009 17:10:18 +0000 (UTC) (envelope-from josep@bellera.cat) Received: from mail.bellera.cat (174.Red-80-38-146.staticIP.rima-tde.net [80.38.146.174]) by mx1.freebsd.org (Postfix) with ESMTP id 6D1CA8FC19 for ; Wed, 18 Mar 2009 17:10:18 +0000 (UTC) (envelope-from josep@bellera.cat) Received: from localhost (unknown [127.0.0.1]) by mail.bellera.cat (Postfix) with ESMTP id 3880F409CA8 for ; Wed, 18 Mar 2009 17:43:35 +0100 (CET) Received: from mail.bellera.cat ([127.0.0.1]) by localhost (mail.bellera.cat [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 64517-01 for ; Wed, 18 Mar 2009 17:43:34 +0100 (CET) Received: from mail.bellera.cat (localhost [127.0.0.1]) by mail.bellera.cat (Postfix) with ESMTP id 0FB7F409CB2 for ; Wed, 18 Mar 2009 17:43:34 +0100 (CET) From: "Josep Pujadas i Jubany" To: freebsd-stable@freebsd.org Date: Wed, 18 Mar 2009 17:43:34 +0100 Message-Id: <20090318163944.M277@bellera.cat> In-Reply-To: <20090317213903.M57690@bellera.cat> References: <20090317213903.M57690@bellera.cat> X-Mailer: Open WebMail 2.32 20040525 X-OriginatingIP: 83.56.83.122 (super) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: Can't compile rtmpdump source X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 17:10:21 -0000 Hello! I can't compile rtmpdump source on FreeBSD: http://sourceforge.net/projects/rtmpdump/ I obtain the following output: # gmake g++ -Wall -c -o bytes.o bytes.cpp In file included from bytes.cpp:25: bytes.h:37:20: endian.h: No such file or directory bytes.h:38:22: byteswap.h: No such file or directory bytes.h:45:2: #error "Undefined byte and float word order!" bytes.cpp: In function `void WriteNumber(char*, double)': bytes.cpp:34: warning: converting to `uint64_t' from `double' bytes.cpp: In function `int ReadInt32LE(const char*)': bytes.cpp:96: error: `__bswap_32' was not declared in this scope bytes.cpp:96: warning: unused variable '__bswap_32' bytes.cpp: In function `int EncodeInt32LE(char*, int)': bytes.cpp:107: error: `__bswap_32' was not declared in this scope bytes.cpp:107: warning: unused variable '__bswap_32' gmake: *** [bytes.o] Error 1 The developper told me: Currently the endian support does not include FreeBSD automatically, but you can compile for any system by defining the correct byte order and float word order. You also need to make sure the swap macros are compiled as well (they are in the Windows setion so far). I will add FreeBSD support in the next release, but it shouldn't be to hard to compile v1.4 on your own. Btw, uncomment _DEBUG in log.h to compile in release mode (I forgot to do that). I have no idea how to do the changes. Here is the source code: http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/r /rt/rtmpdump/rtmpdump-v1.4.tar.gz Regards, Josep Pujadas