From owner-freebsd-stable@FreeBSD.ORG Wed Mar 18 17:38:34 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 52A98106564A for ; Wed, 18 Mar 2009 17:38:34 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f164.google.com (mail-bw0-f164.google.com [209.85.218.164]) by mx1.freebsd.org (Postfix) with ESMTP id A341C8FC1E for ; Wed, 18 Mar 2009 17:38:33 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by bwz8 with SMTP id 8so151662bwz.43 for ; Wed, 18 Mar 2009 10:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=DwvvX6Re8vrhL9eg8lAR6ooUxp4JC2t+AR5G1TJcsk8=; b=wBnQq1bD2I/DVIguKkZInsFcg4DOgR4asf/MTdnPa4zXLPE7GBNXVq04uubG2Flixv Tu3IDgonrGKjSFrNcJBJjnsMK3NYjNtzUn+upBZSyqscvp4n4r/HZCUGezpgKKwc4s/V FkGciU14rDq4D+orlY1xCPrNZudPS2PjMSJ+4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xPRBVSps7qFWqgQUw9Gm5jiNK20zsBqvqECi2QRPWT79CN5RdRQCGPI/H0dsjrMF9/ nbdUiunj3ccS0xLwG5Bnqm2TCJY68SEFO7aphUmXWOjymiRbcxlvD156a68u3Q0pwDGp 3obgTHUj3zbEuCbNDWVF8ukoq9kWVB3eBvKRw= MIME-Version: 1.0 Received: by 10.103.222.1 with SMTP id z1mr664837muq.100.1237397912600; Wed, 18 Mar 2009 10:38:32 -0700 (PDT) In-Reply-To: <20090318163944.M277@bellera.cat> References: <20090317213903.M57690@bellera.cat> <20090318163944.M277@bellera.cat> Date: Wed, 18 Mar 2009 20:38:32 +0300 Message-ID: From: pluknet To: Josep Pujadas i Jubany Content-Type: multipart/mixed; boundary=00163641759106c0f3046568278d Cc: freebsd-stable@freebsd.org Subject: Re: 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:38:35 -0000 --00163641759106c0f3046568278d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, Josep. Try an attached patch. 2009/3/18 Josep Pujadas i Jubany : > 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 > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- wbr, pluknet --00163641759106c0f3046568278d Content-Type: application/octet-stream; name="rtmpdump_fbsd.patch" Content-Disposition: attachment; filename="rtmpdump_fbsd.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fsgaqfb20 ZGlmZiAtdXJwTiBydG1wZHVtcC5vcmlnL2J5dGVzLmggcnRtcGR1bXAvYnl0ZXMuaAotLS0gcnRt cGR1bXAub3JpZy9ieXRlcy5oCVdlZCBNYXIgMTggMjA6MjA6NTQgMjAwOQorKysgcnRtcGR1bXAv Ynl0ZXMuaAlXZWQgTWFyIDE4IDIwOjI4OjMzIDIwMDkKQEAgLTMsNyArMyw3IEBACiAKICNpbmNs dWRlIDxzdGRpbnQuaD4KIAotI2lmZGVmIFdJTjMyCisjaWYgZGVmaW5lZCAoV0lOMzIpIHx8IGRl ZmluZWQoX19GcmVlQlNEX18pCiAjZGVmaW5lIF9fTElUVExFX0VORElBTiAxMjM0CiAjZGVmaW5l IF9fQklHX0VORElBTiAgICA0MzIxCiAjZGVmaW5lIF9fQllURV9PUkRFUiBfX0xJVFRMRV9FTkRJ QU4KZGlmZiAtdXJwTiBydG1wZHVtcC5vcmlnL3J0bXAuaCBydG1wZHVtcC9ydG1wLmgKLS0tIHJ0 bXBkdW1wLm9yaWcvcnRtcC5oCVdlZCBNYXIgMTggMjA6MjA6NTQgMjAwOQorKysgcnRtcGR1bXAv cnRtcC5oCVdlZCBNYXIgMTggMjA6MzU6MTMgMjAwOQpAQCAtMjYsNiArMjYsMTEgQEAKIC8vI2lu Y2x1ZGUgPHZlY3Rvcj4KIAogI2lmZGVmIFdJTjMyCisjZWxpZiBkZWZpbmVkIChfX0ZyZWVCU0Rf XykKKyNpbmNsdWRlIDxzeXMvc29ja2V0Lmg+CisjaW5jbHVkZSA8bmV0aW5ldC9pbi5oPgorI2lu Y2x1ZGUgPGFycGEvaW5ldC5oPgorI2luY2x1ZGUgPG5ldGRiLmg+CiAjZWxzZQogLy8jaW5jbHVk ZSA8c3lzL3R5cGVzLmg+CiAvLyNpbmNsdWRlIDxzeXMvc29ja2V0Lmg+Cg== --00163641759106c0f3046568278d--