The following packages will be installed: cmdiag Fetching README... 0%100%100%100%100%100%Done Fetching cmdiag.SlackBuild... 0%100%100%100%100%100%Done Fetching cmdiag.cpp.patch... 0%100%100%100%100%100%Done Fetching cmdiag.info... 0%100%100%100%100%100%Done Fetching slack-desc... 0%100%100%100%100%100%Done cmdiag-0.2/ cmdiag-0.2/Makefile cmdiag-0.2/bar.h cmdiag-0.2/func.cpp cmdiag-0.2/cmodem.h cmdiag-0.2/pbar.cpp cmdiag-0.2/func.h cmdiag-0.2/cmodem.cpp cmdiag-0.2/pbar.h cmdiag-0.2/README.txt cmdiag-0.2/cmdiag.cpp cmdiag-0.2/bar.cpp cmdiag-0.2/globals.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- cmdiag.cpp.orig 2008-05-01 22:42:18.000000000 +0200 |+++ cmdiag.cpp 2011-08-08 12:05:24.113372114 +0200 -------------------------- patching file cmdiag.cpp Using Plan A... Hunk #1 succeeded at 13. done g++ -O2 -fPIC -Wall -O2 -c cmdiag.cpp In file included from pbar.h:17, from cmdiag.cpp:18: cmdiag.cpp: In function ‘int main(int, char**)’: globals.h:16:14: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 16 | #define CMIP "-cm" | ^~~~~ cmdiag.cpp:29:51: note: in expansion of macro ‘CMIP’ 29 | char * cm_ip = get_cmd_option(argc, argv, CMIP); | ^~~~ globals.h:18:19: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 18 | #define CM_STRING "-cms" | ^~~~~~ cmdiag.cpp:30:52: note: in expansion of macro ‘CM_STRING’ 30 | char * cm_str = get_cmd_option(argc, argv, CM_STRING); | ^~~~~~~~~ globals.h:17:16: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 17 | #define CMTSIP "-ct" | ^~~~~ cmdiag.cpp:31:53: note: in expansion of macro ‘CMTSIP’ 31 | char * cmts_ip = get_cmd_option(argc, argv, CMTSIP); | ^~~~~~ globals.h:19:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 19 | #define CMTS_STRING "-cts" | ^~~~~~ cmdiag.cpp:32:54: note: in expansion of macro ‘CMTS_STRING’ 32 | char * cmts_str = get_cmd_option(argc, argv, CMTS_STRING); | ^~~~~~~~~~~ cmdiag.cpp:46:44: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 46 | cmodem = new CModem(cm_ip, " ", cm_str, " "); | ^~~ cmdiag.cpp:46:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 46 | cmodem = new CModem(cm_ip, " ", cm_str, " "); | ^~~ g++ -O2 -fPIC -Wall -O2 -c bar.cpp g++ -O2 -fPIC -Wall -O2 -c pbar.cpp g++ -O2 -fPIC -Wall -O2 -c cmodem.cpp In file included from cmodem.cpp:16: cmodem.cpp: In member function ‘std::string* CModem::Get_Us_Snr()’: globals.h:112:19: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 112 | #define CM_US_SNR ".1.3.6.1.2.1.10.127.1.3.3.1.13" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmodem.cpp:272:53: note: in expansion of macro ‘CM_US_SNR’ 272 | char * oid_sid = get_cm_oidsid(ip, cmts_ip, CM_US_SNR); | ^~~~~~~~~ cmodem.cpp: In member function ‘std::string* CModem::Get_CMTS_Rx_Power()’: globals.h:114:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 114 | #define CMTS_CM_RX_POWER "1.3.6.1.2.1.10.127.1.3.3.1.6" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmodem.cpp:352:53: note: in expansion of macro ‘CMTS_CM_RX_POWER’ 352 | char * oid_sid = get_cm_oidsid(ip, cmts_ip, CMTS_CM_RX_POWER); | ^~~~~~~~~~~~~~~~ cmodem.cpp: In member function ‘char* CModem::get_cable_parameter(const char*, char*)’: cmodem.cpp:151:37: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 151 | sprintf(cable_parameter, "%d", npart); | ^ cmodem.cpp:151:16: note: ‘sprintf’ output between 2 and 11 bytes into a destination of size 10 151 | sprintf(cable_parameter, "%d", npart); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -fPIC -Wall -O2 -c func.cpp g++ -O2 -fPIC -Wall -O2 -lncurses cmdiag.o bar.o pbar.o cmodem.o func.o -o cmdiag `net-snmp-config --libs` `net-snmp-config --external-libs` Slackware package maker, version 3.14159265. Searching for symbolic links: No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like. This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? n Creating Slackware package: /usr/src/slapt-src-x86_64/network/cmdiag/cmdiag-0.2-x86_64-1salix15.0.txz ./ install/ install/slack-desc usr/ usr/doc/ usr/doc/cmdiag-0.2/ usr/doc/cmdiag-0.2/README.txt usr/doc/cmdiag-0.2/cmdiag.SlackBuild usr/sbin/ usr/sbin/cmdiag Slackware package /usr/src/slapt-src-x86_64/network/cmdiag/cmdiag-0.2-x86_64-1salix15.0.txz created. Installing package cmdiag-0.2-x86_64-1salix15.0... | cmdiag (cable modem diagnostics tool) | | cmdiag can get information from Docsis 1.0, 1.1 and maybe 2.0 cable | modems. It gathers information from the cable modem via SNMP and | displays various cable parameters in real time. | This small tool is writen in C++, it runs on Linux and FreeBSD. | | Homepage: http://cmdiag.sourceforge.net/ | | | | |