Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Source:
- https://github.com/puma/puma/issues/1136
- yob commented on Nov 21, 2016
- I was able to build puma on debian sid once I installed the new libssl1.0-dev package.
- Installing it might be a challenge, as it conflicts with libssl-dev (v1.1.0). You should only need it installed while puma builds though, then you can re-install libssl-dev. It's a hack, but might be helpful as an interim solution.
- -------------------------------------------------------
- pi@raspberrypi:~/src/rtmpdump $ sudo apt-get purge libssl-dev
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following package was automatically installed and is no longer required:
- libssl-doc
- Use 'sudo apt autoremove' to remove it.
- The following packages will be REMOVED:
- libssl-dev*
- 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
- After this operation, 5,135 kB disk space will be freed.
- Do you want to continue? [Y/n] y
- (Reading database ... 39836 files and directories currently installed.)
- Removing libssl-dev:armhf (1.1.0f-3+deb9u1) ...
- pi@raspberrypi:~/src/rtmpdump $ sudo apt-get install libssl1.0-dev
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following package was automatically installed and is no longer required:
- libssl-doc
- Use 'sudo apt autoremove' to remove it.
- The following NEW packages will be installed:
- libssl1.0-dev
- 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
- Need to get 1,150 kB of archives.
- After this operation, 5,216 kB of additional disk space will be used.
- Get:1 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libssl1.0-dev armhf 1.0.2l-2+deb9u2 [1,150 kB]
- Fetched 1,150 kB in 0s (1,471 kB/s)
- Selecting previously unselected package libssl1.0-dev:armhf.
- (Reading database ... 39750 files and directories currently installed.)
- Preparing to unpack .../libssl1.0-dev_1.0.2l-2+deb9u2_armhf.deb ...
- Unpacking libssl1.0-dev:armhf (1.0.2l-2+deb9u2) ...
- Setting up libssl1.0-dev:armhf (1.0.2l-2+deb9u2) ...
- pi@raspberrypi:~/src/rtmpdump $ make SYS=posixmake[1]: Entering directory '/home/pi/src/rtmpdump/librtmp'
- gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c
- rtmp.c: In function 'RTMP_ReadPacket':
- rtmp.c:3555:7: warning: variable 'didAlloc' set but not used [-Wunused-but-set-variable]
- int didAlloc = FALSE;
- ^~~~~~~~
- At top level:
- rtmp.c:2907:19: warning: 'av_NetConnection_Connect_Rejected' defined but not used [-Wunused-const-variable=]
- static const AVal av_NetConnection_Connect_Rejected =
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- rtmp.c:1559:35: warning: 'av_record' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmp.c:1905:1: note: in expansion of macro 'SAVC'
- SAVC(record);
- ^~~~
- gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o log.o log.c
- gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o amf.o amf.c
- gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o hashswf.o hashswf.c
- gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o parseurl.o parseurl.c
- ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
- ar: creating librtmp.a
- gcc -shared -Wl,-soname,librtmp.so.1 -o librtmp.so.1 rtmp.o log.o amf.o hashswf.o parseurl.o -lssl -lcrypto -lz
- ln -sf librtmp.so.1 librtmp.so
- make[1]: Leaving directory '/home/pi/src/rtmpdump/librtmp'
- gcc -Wall -o rtmpdump rtmpdump.o -Llibrtmp -lrtmp -lssl -lcrypto -lz
- gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -O2 -c -o rtmpgw.o rtmpgw.c
- gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -O2 -c -o thread.o thread.c
- gcc -Wall -o rtmpgw rtmpgw.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz
- gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -O2 -c -o rtmpsrv.o rtmpsrv.c
- rtmpsrv.c:147:35: warning: 'av_secureToken' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsrv.c:170:1: note: in expansion of macro 'SAVC'
- SAVC(secureToken);
- ^~~~
- rtmpsrv.c:147:35: warning: 'av_videoFunction' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsrv.c:159:1: note: in expansion of macro 'SAVC'
- SAVC(videoFunction);
- ^~~~
- rtmpsrv.c:147:35: warning: 'av_fpad' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsrv.c:155:1: note: in expansion of macro 'SAVC'
- SAVC(fpad);
- ^~~~
- gcc -Wall -o rtmpsrv rtmpsrv.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz
- gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -O2 -c -o rtmpsuck.o rtmpsuck.c
- rtmpsuck.c:119:35: warning: 'av_secureToken' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsuck.c:141:1: note: in expansion of macro 'SAVC'
- SAVC(secureToken);
- ^~~~
- rtmpsuck.c:119:35: warning: 'av_mode' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsuck.c:138:1: note: in expansion of macro 'SAVC'
- SAVC(mode);
- ^~~~
- rtmpsuck.c:119:35: warning: 'av_fmsVer' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsuck.c:137:1: note: in expansion of macro 'SAVC'
- SAVC(fmsVer);
- ^~~~
- rtmpsuck.c:119:35: warning: 'av_createStream' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsuck.c:134:1: note: in expansion of macro 'SAVC'
- SAVC(createStream);
- ^~~~
- rtmpsuck.c:119:35: warning: 'av__result' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsuck.c:133:1: note: in expansion of macro 'SAVC'
- SAVC(_result);
- ^~~~
- rtmpsuck.c:119:35: warning: 'av_videoFunction' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsuck.c:131:1: note: in expansion of macro 'SAVC'
- SAVC(videoFunction);
- ^~~~
- rtmpsuck.c:119:35: warning: 'av_capabilities' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsuck.c:128:1: note: in expansion of macro 'SAVC'
- SAVC(capabilities);
- ^~~~
- rtmpsuck.c:119:35: warning: 'av_fpad' defined but not used [-Wunused-const-variable=]
- #define SAVC(x) static const AVal av_##x = AVC(#x)
- ^
- rtmpsuck.c:127:1: note: in expansion of macro 'SAVC'
- SAVC(fpad);
- ^~~~
- gcc -Wall -o rtmpsuck rtmpsuck.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz
- pi@raspberrypi:~/src/rtmpdump $ sudo checkinstall --pkgname=rtmpdump --pkgversion="2:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
- checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
- This software is released under the GNU GPL.
- *****************************************
- **** Debian package creation selected ***
- *****************************************
- This package will be built according to these values:
- 0 - Maintainer: [ root@raspberrypi ]
- 1 - Summary: [ Package created with checkinstall 1.6.2 ]
- 2 - Name: [ rtmpdump ]
- 3 - Version: [ 2:201712241833-git ]
- 4 - Release: [ 1 ]
- 5 - License: [ GPL ]
- 6 - Group: [ checkinstall ]
- 7 - Architecture: [ armhf ]
- 8 - Source location: [ rtmpdump ]
- 9 - Alternate source location: [ ]
- 10 - Requires: [ ]
- 11 - Provides: [ rtmpdump ]
- 12 - Conflicts: [ ]
- 13 - Replaces: [ ]
- Enter a number to change any of them or press ENTER to continue:
- Installing with make install...
- ========================= Installation results ===========================
- make[1]: Entering directory '/home/pi/src/rtmpdump/librtmp'
- make[1]: Nothing to be done for 'all'.
- make[1]: Leaving directory '/home/pi/src/rtmpdump/librtmp'
- mkdir -p /usr/local/bin /usr/local/sbin /usr/local/man/man1 /usr/local/man/man8
- cp rtmpdump /usr/local/bin
- cp rtmpgw rtmpsrv rtmpsuck /usr/local/sbin
- cp rtmpdump.1 /usr/local/man/man1
- cp rtmpgw.8 /usr/local/man/man8
- make[1]: Entering directory '/home/pi/src/rtmpdump/librtmp'
- sed -e "s;@prefix@;/usr/local;" -e "s;@libdir@;/usr/local/lib;" \
- -e "s;@VERSION@;v2.4;" \
- -e "s;@CRYPTO_REQ@;libssl,libcrypto;" \
- -e "s;@PUBLIC_LIBS@;;" \
- -e "s;@PRIVATE_LIBS@;;" librtmp.pc.in > librtmp.pc
- mkdir -p /usr/local/include/librtmp /usr/local/lib/pkgconfig /usr/local/man/man3 /usr/local/lib
- cp amf.h http.h log.h rtmp.h /usr/local/include/librtmp
- cp librtmp.a /usr/local/lib
- cp librtmp.pc /usr/local/lib/pkgconfig
- cp librtmp.3 /usr/local/man/man3
- cp librtmp.so.1 /usr/local/lib
- cd /usr/local/lib; ln -sf librtmp.so.1 librtmp.so
- make[1]: Leaving directory '/home/pi/src/rtmpdump/librtmp'
- ======================== Installation successful ==========================
- Copying documentation directory...
- ./
- ./ChangeLog
- ./README
- ./COPYING
- Some of the files created by the installation are inside the home directory: /home
- You probably don't want them to be included in the package.
- Do you want me to list them? [n]: n
- Should I exclude them from the package? (Saying yes is a good idea) [n]: n
- Some of the files created by the installation are inside the build
- directory: /home/pi/src/rtmpdump
- You probably don't want them to be included in the package,
- especially if they are inside your home directory.
- Do you want me to list them? [n]: n
- Should I exclude them from the package? (Saying yes is a good idea) [y]: y
- Copying files to the temporary directory...OK
- Stripping ELF binaries and libraries...OK
- Compressing man pages...OK
- Building file list...OK
- Building Debian package...OK
- Installing Debian package...OK
- Erasing temporary files...OK
- Deleting temp dir...OK
- **********************************************************************
- Done. The new package has been installed and saved to
- /home/pi/src/rtmpdump/rtmpdump_201712241833-git-1_armhf.deb
- You can remove it from your system anytime using:
- dpkg -r rtmpdump
- **********************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement