ron998
October 28th, 2016, 02:55 PM
Hi
With my 32-bit system it is was easy to compile RTMPDump from git.
$ git clone --depth 1 git://repo.or.cz/rtmpdump.git
$ cd rtmpdump
$ make SHARED= VERSION="v2.4"
$ sudo checkinstall --pkgname rtmpdump --pkgversion "2.4+git$(date +%Y%m%d)" --backup=no --fstrans=no --default; sudo ldconfig
But with my 64-bit system there is a problem.
When I run the last (checkinstall) command it gives errors...
make[1]: Entering directory '/home/user/rtmpdump/librtmp'
gcc -shared -Wl,-soname,librtmp.so.1 -o librtmp.so.1 rtmp.o log.o amf.o hashswf.o parseurl.o -lssl -lcrypto -lz
/usr/bin/ld: rtmp.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
rtmp.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:92: recipe for target 'librtmp.so.1' failed
make[1]: *** [librtmp.so.1] Error 1
make[1]: Leaving directory '/home/user/rtmpdump/librtmp'
Makefile:76: recipe for target 'librtmp/librtmp.a' failed
make: *** [librtmp/librtmp.a] Error 2
**** Installation failed. Aborting package creation
Google results seem to indicate that "-fPIC" needs to be passed to the compiler.
This could be done during the ./configure stage, but there is no ./configure stage for RTMPDump.
Currently I'm using RTMPDump from the repo, but I'd like to compile it myself to add some KSV patches.
Any ideas how to build this package with 64-bit *buntu-16.04.
$ cat /etc/issue
Linux Mint 18 Sarah
With my 32-bit system it is was easy to compile RTMPDump from git.
$ git clone --depth 1 git://repo.or.cz/rtmpdump.git
$ cd rtmpdump
$ make SHARED= VERSION="v2.4"
$ sudo checkinstall --pkgname rtmpdump --pkgversion "2.4+git$(date +%Y%m%d)" --backup=no --fstrans=no --default; sudo ldconfig
But with my 64-bit system there is a problem.
When I run the last (checkinstall) command it gives errors...
make[1]: Entering directory '/home/user/rtmpdump/librtmp'
gcc -shared -Wl,-soname,librtmp.so.1 -o librtmp.so.1 rtmp.o log.o amf.o hashswf.o parseurl.o -lssl -lcrypto -lz
/usr/bin/ld: rtmp.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
rtmp.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:92: recipe for target 'librtmp.so.1' failed
make[1]: *** [librtmp.so.1] Error 1
make[1]: Leaving directory '/home/user/rtmpdump/librtmp'
Makefile:76: recipe for target 'librtmp/librtmp.a' failed
make: *** [librtmp/librtmp.a] Error 2
**** Installation failed. Aborting package creation
Google results seem to indicate that "-fPIC" needs to be passed to the compiler.
This could be done during the ./configure stage, but there is no ./configure stage for RTMPDump.
Currently I'm using RTMPDump from the repo, but I'd like to compile it myself to add some KSV patches.
Any ideas how to build this package with 64-bit *buntu-16.04.
$ cat /etc/issue
Linux Mint 18 Sarah