Date: Wed, 18 Mar 2009 20:38:32 +0300 From: pluknet <pluknet@gmail.com> To: Josep Pujadas i Jubany <josep@bellera.cat> Cc: freebsd-stable@freebsd.org Subject: Re: Can't compile rtmpdump source Message-ID: <a31046fc0903181038x7dd03ac7j8a1ed4873e17edfa@mail.gmail.com> In-Reply-To: <20090318163944.M277@bellera.cat> References: <20090317213903.M57690@bellera.cat> <20090318163944.M277@bellera.cat>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <josep@bellera.cat>: > 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31046fc0903181038x7dd03ac7j8a1ed4873e17edfa>