| Goto page 1, 2 Next |
The time now is Fri Sep 10, 2010 12:04 pm |
Posted: Fri Jan 15, 2010 2:50 pm Post subject: problem with compiling iptvprobe |
 |
|
 |
|
activity
Joined: 14 Jan 2010 Posts: 3 Location: Bulgaria
|
Hi. I`m trying to compile iptvprobe just for the test but when I try to compile userver i had error | Code: | root@activity:/usr/src/streaming/iptvprobe/userver# make
/usr/bin/cmake -H/usr/src/streaming/iptvprobe/userver -B/usr/src/streaming/iptvprobe/userver --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /usr/src/streaming/iptvprobe/userver/CMakeFiles /usr/src/streaming/iptvprobe/userver/CMakeFiles/progress.make
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/usr/src/streaming/iptvprobe/userver'
make -f CMakeFiles/iptvprobe_server.dir/build.make CMakeFiles/iptvprobe_server.dir/depend
make[2]: Entering directory `/usr/src/streaming/iptvprobe/userver'
cd /usr/src/streaming/iptvprobe/userver && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /usr/src/streaming/iptvprobe/userver /usr/src/streaming/iptvprobe/userver /usr/src/streaming/iptvprobe/userver /usr/src/streaming/iptvprobe/userver /usr/src/streaming/iptvprobe/userver/CMakeFiles/iptvprobe_server.dir/DependInfo.cmake --color=
Scanning dependencies of target iptvprobe_server
make[2]: Leaving directory `/usr/src/streaming/iptvprobe/userver'
make -f CMakeFiles/iptvprobe_server.dir/build.make CMakeFiles/iptvprobe_server.dir/build
make[2]: Entering directory `/usr/src/streaming/iptvprobe/userver'
/usr/bin/cmake -E cmake_progress_report /usr/src/streaming/iptvprobe/userver/CMakeFiles 1
[ 33%] Building CXX object CMakeFiles/iptvprobe_server.dir/iptvprobe_server.o
/usr/bin/c++ -O3 -I/usr/include/mysql -o CMakeFiles/iptvprobe_server.dir/iptvprobe_server.o -c /usr/src/streaming/iptvprobe/userver/iptvprobe_server.cc
/usr/bin/cmake -E cmake_progress_report /usr/src/streaming/iptvprobe/userver/CMakeFiles 2
[ 66%] Building CXX object CMakeFiles/iptvprobe_server.dir/s_mysql.o
/usr/bin/c++ -O3 -I/usr/include/mysql -o CMakeFiles/iptvprobe_server.dir/s_mysql.o -c /usr/src/streaming/iptvprobe/userver/s_mysql.cc
In file included from /usr/src/streaming/iptvprobe/userver/s_mysql.h:31,
from /usr/src/streaming/iptvprobe/userver/s_mysql.cc:25:
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:32: error: 'uint32_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:33: error: 'uint64_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:43: error: 'uint8_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:54: error: 'uint16_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:56: error: 'uint16_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:60: error: 'uint32_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:75: error: 'uint16_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:76: error: 'uint16_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:78: error: 'uint32_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:90: error: 'uint32_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:94: error: 'uint32_t' does not name a type
/usr/src/streaming/iptvprobe/userver/../kmodule/nfhook.h:95: error: 'uint32_t' does not name a type
In file included from /usr/src/streaming/iptvprobe/userver/s_mysql.cc:25:
/usr/src/streaming/iptvprobe/userver/s_mysql.h:41: error: 'uint32_t' does not name a type
/usr/src/streaming/iptvprobe/userver/s_mysql.h: In constructor 'stat_bandwidth_agg::stat_bandwidth_agg()':
/usr/src/streaming/iptvprobe/userver/s_mysql.h:49: error: 'ip' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc: In member function 'void s_mysql::save_ip(netup_stat_ts_s*)':
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:117: error: 'strlen' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:132: error: 'memset' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:151: error: 'struct netup_stat_ts_s' has no member named 'id'
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:156: error: 'struct netup_stat_ts_s' has no member named 'len'
/usr/src/streaming/iptvprobe/userver/s_mysql.cc: At global scope:
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:181: error: 'uint32_t' does not name a type
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:199: error: 'uint32_t' does not name a type
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:206: error: 'uint32_t' does not name a type
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:213: error: 'uint32_t' does not name a type
/usr/src/streaming/iptvprobe/userver/s_mysql.cc: In member function 'void s_mysql::save_igmp(netup_stat_igmp_s*)':
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:236: error: 'uint32_t' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:236: error: expected ';' before 'igmp_type'
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:254: error: 'strlen' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:269: error: 'memset' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:292: error: 'igmp_type' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:292: error: 'get_igmp_type' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:298: error: 'group_ip' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:298: error: 'get_group_ip_from_igmp' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:305: error: 'src_ip' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:305: error: 'get_src_ip_from_igmp' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:312: error: 'dst_ip' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:312: error: 'get_dst_ip_from_igmp' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc: In member function 'void s_mysql::save_igmp_timing(netup_stat_igmp_timing_s*)':
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:353: error: 'uint32_t' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:353: error: expected ';' before 'igmp_type'
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:371: error: 'strlen' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:386: error: 'memset' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:399: error: 'igmp_type' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:405: error: 'group_ip' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:405: error: 'struct netup_stat_igmp_timing_s' has no member named 'group_ip'
/usr/src/streaming/iptvprobe/userver/s_mysql.cc: In member function 'void s_mysql::save_ts(netup_stat_ts_s*, int64_t)':
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:473: error: 'strlen' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:498: error: 'memset' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:538: error: 'struct netup_stat_ts_s' has no member named 'ip'
/usr/src/streaming/iptvprobe/userver/s_mysql.cc: In member function 'void s_mysql::save_stat_bandwidth(stat_bandwidth_agg*)':
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:580: error: 'strlen' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:595: error: 'memset' was not declared in this scope
/usr/src/streaming/iptvprobe/userver/s_mysql.cc:624: error: 'struct stat_bandwidth_agg' has no member named 'ip'
make[2]: *** [CMakeFiles/iptvprobe_server.dir/s_mysql.o] Error 1
make[2]: Leaving directory `/usr/src/streaming/iptvprobe/userver'
make[1]: *** [CMakeFiles/iptvprobe_server.dir/all] Error 2
make[1]: Leaving directory `/usr/src/streaming/iptvprobe/userver'
make: *** [all] Error 2
|
my distro is Slackware Linux 13.0 + GCC v4.4.2
I try to modify the s_mysql.cc and put this lines but nothing happen
| Code: |
#include <cstdio>
#include <cstring>
#include <stdio.h>
|
|
|
|
Posted: Fri Jan 15, 2010 6:40 pm Post subject: |
 |
|
 |
|
aospan Site Admin
Joined: 15 Oct 2007 Posts: 110
|
Try to include:
| Code: | | #include <stdint.h> |
Is /usr/include/stdint.h exist ? |
|
|
Posted: Wed Mar 24, 2010 10:27 pm Post subject: |
 |
|
 |
|
NoNick
Joined: 24 Mar 2010 Posts: 13
|
ubuntu 9.10 GCC 4.4.1
òàæå ñàìàÿ îøèáêà
| Code: | make[2]: *** [CMakeFiles/iptvprobe_server.dir/s_mysql.o] Îøèáêà 1
make[2]: Âûõîä èç êàòàëîãà `/root/iptvprobe_v0.4/userver'
make[1]: *** [CMakeFiles/iptvprobe_server.dir/all] Îøèáêà 2
make[1]: Âûõîä èç êàòàëîãà `/root/iptvprobe_v0.4/userver'
make: *** [all] Îøèáêà 2
| â ôàéë s_mysql.cc äîïèñàë
| Code: |
#include "s_mysql.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
|
â /usr/include/stdint.h ïðèñóòñòâóåò |
|
|
Posted: Thu Mar 25, 2010 7:52 am Post subject: |
 |
|
 |
|
astlin
Joined: 27 May 2009 Posts: 10
|
| NoNick wrote: | ubuntu 9.10 GCC 4.4.1
òàæå ñàìàÿ îøèáêà
| Code: | make[2]: *** [CMakeFiles/iptvprobe_server.dir/s_mysql.o] Îøèáêà 1
make[2]: Âûõîä èç êàòàëîãà `/root/iptvprobe_v0.4/userver'
make[1]: *** [CMakeFiles/iptvprobe_server.dir/all] Îøèáêà 2
make[1]: Âûõîä èç êàòàëîãà `/root/iptvprobe_v0.4/userver'
make: *** [all] Îøèáêà 2
| â ôàéë s_mysql.cc äîïèñàë
| Code: |
#include "s_mysql.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
|
â /usr/include/stdint.h ïðèñóòñòâóåò |
ïåðåíåñè âñå èíêëþäû â õýäåð è äîáàâü:
#include <cstdio>
#include <string.h> |
|
|
Posted: Thu Mar 25, 2010 8:28 am Post subject: |
 |
|
 |
|
NoNick
Joined: 24 Mar 2010 Posts: 13
|
| Quote: | ïåðåíåñè âñå èíêëþäû â õýäåð è äîáàâü:
#include <cstdio>
#include <string.h> | íåïîíÿë êóäà ïåðåíîñèòü, ñêîïèðîâàë âcå ôàéëû èç /usr/include â äèðåêòîðèþ ãäå äåëàþ make (/root/iptvprobe_v0.5/userver)
â s_mysql.cc äîïèñàë
| Code: | #include "s_mysql.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
#include <cstdio.h>
#include <string.h>
| îáíàðóæèë ÷òî ó ìåíÿ â /usr/include/ íåò ôàéëà s_mysql.h
ãäå åãî áðàòü ?
ïðè êîìïèëÿöèè íè÷åãî íå èçìåíèëîñü
root@server-desktop:~/iptvprobe_v0.5/userver# make
/usr/bin/cmake -H/root/iptvprobe_v0.5/userver -B/root/iptvprobe_v0.5/userver --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /root/iptvprobe_v0.5/userver/CMakeFiles /root/iptvprobe_v0.5/userver/CMakeFiles/progress.make
make -f CMakeFiles/Makefile2 all
make[1]: Âõîä â êàòàëîã `/root/iptvprobe_v0.5/userver'
make -f CMakeFiles/iptvprobe_server.dir/build.make CMakeFiles/iptvprobe_server.dir/depend
make[2]: Âõîä â êàòàëîã `/root/iptvprobe_v0.5/userver'
cd /root/iptvprobe_v0.5/userver && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /root/iptvprobe_v0.5/userver /root/iptvprobe_v0.5/userver /root/iptvprobe_v0.5/userver /root/iptvprobe_v0.5/userver /root/iptvprobe_v0.5/userver/CMakeFiles/iptvprobe_server.dir/DependInfo.cmake --color=
make[2]: Âûõîä èç êàòàëîãà `/root/iptvprobe_v0.5/userver'
make -f CMakeFiles/iptvprobe_server.dir/build.make CMakeFiles/iptvprobe_server.dir/build
make[2]: Âõîä â êàòàëîã `/root/iptvprobe_v0.5/userver'
/usr/bin/cmake -E cmake_progress_report /root/iptvprobe_v0.5/userver/CMakeFiles 2
[ 33%] Building CXX object CMakeFiles/iptvprobe_server.dir/s_mysql.o
/usr/bin/c++ -O3 -I/usr/include/mysql -o CMakeFiles/iptvprobe_server.dir/s_mysql.o -c /root/iptvprobe_v0.5/userver/s_mysql.cc
/root/iptvprobe_v0.5/userver/s_mysql.cc:30:21: error: cstdio.h: No such file or directory
In file included from /root/iptvprobe_v0.5/userver/s_mysql.h:30,
from /root/iptvprobe_v0.5/userver/s_mysql.cc:25:
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:30: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:31: error: ‘uint64_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:41: error: ‘uint8_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:52: error: ‘uint16_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:54: error: ‘uint16_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:58: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:73: error: ‘uint16_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:74: error: ‘uint16_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:76: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:88: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:92: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:93: error: ‘uint32_t’ does not name a type
In file included from /root/iptvprobe_v0.5/userver/s_mysql.cc:25:
/root/iptvprobe_v0.5/userver/s_mysql.h:40: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/s_mysql.h: In constructor ‘stat_bandwidth_agg::stat_bandwidth_agg()’:
/root/iptvprobe_v0.5/userver/s_mysql.h:48: error: ‘ip’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::connect(const std::string&, const std::string&, const std::string&, const std::string&, int, const std::string&)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:63: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:63: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:68: error: ‘printf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::cleanupdb()’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:79: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:79: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::save_ip(netup_stat_ts_s*)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:118: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:118: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:125: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:125: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:133: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:133: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:157: error: ‘struct netup_stat_ts_s’ has no member named ‘id’
/root/iptvprobe_v0.5/userver/s_mysql.cc:162: error: ‘struct netup_stat_ts_s’ has no member named ‘len’
/root/iptvprobe_v0.5/userver/s_mysql.cc:167: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:167: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:174: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:174: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::save_igmp(netup_stat_igmp_s*)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:258: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:258: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:265: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:265: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:273: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:273: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:329: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:329: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:336: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:336: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::save_igmp_timing(netup_stat_igmp_timing_s*)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:375: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:375: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:382: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:382: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:390: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:390: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:414: error: ‘struct netup_stat_igmp_timing_s’ has no member named ‘group_ip’
/root/iptvprobe_v0.5/userver/s_mysql.cc:437: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:437: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:444: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:444: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::save_ts(netup_stat_ts_s*, int64_t)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:478: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:478: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:484: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:484: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:492: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:492: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:547: error: ‘struct netup_stat_ts_s’ has no member named ‘ip’
/root/iptvprobe_v0.5/userver/s_mysql.cc:553: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:553: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:559: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:559: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::save_stat_bandwidth(stat_bandwidth_agg*)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:584: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:584: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:591: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:591: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:599: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:599: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:633: error: ‘struct stat_bandwidth_agg’ has no member named ‘ip’
/root/iptvprobe_v0.5/userver/s_mysql.cc:639: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:639: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:646: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:646: error: ‘fprintf’ was not declared in this scope
make[2]: *** [CMakeFiles/iptvprobe_server.dir/s_mysql.o] Îøèáêà 1
make[2]: Âûõîä èç êàòàëîãà `/root/iptvprobe_v0.5/userver'
make[1]: *** [CMakeFiles/iptvprobe_server.dir/all] Îøèáêà 2
make[1]: Âûõîä èç êàòàëîãà `/root/iptvprobe_v0.5/userver'
make: *** [all] Îøèáêà 2
|
|
|
Posted: Thu Mar 25, 2010 8:38 am Post subject: |
 |
|
 |
|
astlin
Joined: 27 May 2009 Posts: 10
|
| NoNick wrote: | | Quote: | ïåðåíåñè âñå èíêëþäû â õýäåð è äîáàâü:
#include <cstdio>
#include <string.h> | íåïîíÿë êóäà ïåðåíîñèòü, ñêîïèðîâàë âcå ôàéëû èç /usr/include â äèðåêòîðèþ ãäå äåëàþ make (/root/iptvprobe_v0.5/userver)
â s_mysql.cc äîïèñàë
| Code: | #include "s_mysql.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
#include <cstdio.h>
#include <string.h>
| îáíàðóæèë ÷òî ó ìåíÿ â /usr/include/ íåò ôàéëà s_mysql.h
ãäå åãî áðàòü ?
ïðè êîìïèëÿöèè íè÷åãî íå èçìåíèëîñü
root@server-desktop:~/iptvprobe_v0.5/userver# make
/usr/bin/cmake -H/root/iptvprobe_v0.5/userver -B/root/iptvprobe_v0.5/userver --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /root/iptvprobe_v0.5/userver/CMakeFiles /root/iptvprobe_v0.5/userver/CMakeFiles/progress.make
make -f CMakeFiles/Makefile2 all
make[1]: Âõîä â êàòàëîã `/root/iptvprobe_v0.5/userver'
make -f CMakeFiles/iptvprobe_server.dir/build.make CMakeFiles/iptvprobe_server.dir/depend
make[2]: Âõîä â êàòàëîã `/root/iptvprobe_v0.5/userver'
cd /root/iptvprobe_v0.5/userver && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /root/iptvprobe_v0.5/userver /root/iptvprobe_v0.5/userver /root/iptvprobe_v0.5/userver /root/iptvprobe_v0.5/userver /root/iptvprobe_v0.5/userver/CMakeFiles/iptvprobe_server.dir/DependInfo.cmake --color=
make[2]: Âûõîä èç êàòàëîãà `/root/iptvprobe_v0.5/userver'
make -f CMakeFiles/iptvprobe_server.dir/build.make CMakeFiles/iptvprobe_server.dir/build
make[2]: Âõîä â êàòàëîã `/root/iptvprobe_v0.5/userver'
/usr/bin/cmake -E cmake_progress_report /root/iptvprobe_v0.5/userver/CMakeFiles 2
[ 33%] Building CXX object CMakeFiles/iptvprobe_server.dir/s_mysql.o
/usr/bin/c++ -O3 -I/usr/include/mysql -o CMakeFiles/iptvprobe_server.dir/s_mysql.o -c /root/iptvprobe_v0.5/userver/s_mysql.cc
/root/iptvprobe_v0.5/userver/s_mysql.cc:30:21: error: cstdio.h: No such file or directory
In file included from /root/iptvprobe_v0.5/userver/s_mysql.h:30,
from /root/iptvprobe_v0.5/userver/s_mysql.cc:25:
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:30: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:31: error: ‘uint64_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:41: error: ‘uint8_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:52: error: ‘uint16_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:54: error: ‘uint16_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:58: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:73: error: ‘uint16_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:74: error: ‘uint16_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:76: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:88: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:92: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/../kmodule/nfhook.h:93: error: ‘uint32_t’ does not name a type
In file included from /root/iptvprobe_v0.5/userver/s_mysql.cc:25:
/root/iptvprobe_v0.5/userver/s_mysql.h:40: error: ‘uint32_t’ does not name a type
/root/iptvprobe_v0.5/userver/s_mysql.h: In constructor ‘stat_bandwidth_agg::stat_bandwidth_agg()’:
/root/iptvprobe_v0.5/userver/s_mysql.h:48: error: ‘ip’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::connect(const std::string&, const std::string&, const std::string&, const std::string&, int, const std::string&)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:63: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:63: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:68: error: ‘printf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::cleanupdb()’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:79: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:79: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::save_ip(netup_stat_ts_s*)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:118: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:118: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:125: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:125: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:133: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:133: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:157: error: ‘struct netup_stat_ts_s’ has no member named ‘id’
/root/iptvprobe_v0.5/userver/s_mysql.cc:162: error: ‘struct netup_stat_ts_s’ has no member named ‘len’
/root/iptvprobe_v0.5/userver/s_mysql.cc:167: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:167: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:174: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:174: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::save_igmp(netup_stat_igmp_s*)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:258: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:258: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:265: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:265: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:273: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:273: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:329: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:329: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:336: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:336: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::save_igmp_timing(netup_stat_igmp_timing_s*)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:375: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:375: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:382: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:382: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:390: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:390: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:414: error: ‘struct netup_stat_igmp_timing_s’ has no member named ‘group_ip’
/root/iptvprobe_v0.5/userver/s_mysql.cc:437: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:437: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:444: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:444: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::save_ts(netup_stat_ts_s*, int64_t)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:478: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:478: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:484: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:484: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:492: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:492: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:547: error: ‘struct netup_stat_ts_s’ has no member named ‘ip’
/root/iptvprobe_v0.5/userver/s_mysql.cc:553: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:553: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:559: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:559: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc: In member function ‘void s_mysql::save_stat_bandwidth(stat_bandwidth_agg*)’:
/root/iptvprobe_v0.5/userver/s_mysql.cc:584: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:584: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:591: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:591: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:599: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:599: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:633: error: ‘struct stat_bandwidth_agg’ has no member named ‘ip’
/root/iptvprobe_v0.5/userver/s_mysql.cc:639: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:639: error: ‘fprintf’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:646: error: ‘stderr’ was not declared in this scope
/root/iptvprobe_v0.5/userver/s_mysql.cc:646: error: ‘fprintf’ was not declared in this scope
make[2]: *** [CMakeFiles/iptvprobe_server.dir/s_mysql.o] Îøèáêà 1
make[2]: Âûõîä èç êàòàëîãà `/root/iptvprobe_v0.5/userver'
make[1]: *** [CMakeFiles/iptvprobe_server.dir/all] Îøèáêà 2
make[1]: Âûõîä èç êàòàëîãà `/root/iptvprobe_v0.5/userver'
make: *** [all] Îøèáêà 2
|
â nfhook.h äîáàâü: #include <stdint.h>
äà, åùå, íóæíî èíêëþäèòü <cstdio>, à íå <cstdio.h> |
|
|
Posted: Thu Mar 25, 2010 9:31 am Post subject: |
 |
|
 |
|
NoNick
Joined: 24 Mar 2010 Posts: 13
|
ñîáðàëîñü çàïóñòèëîñü óñïåøíî
| Code: | ./iptvprobe_server -l root -s 127.0.0.1
Creating listening server ...
Server created successfully
|
cd iptvprobe_v0.5/udaemon/
cmake --debug-output . -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
make
ïðîøåë áåç îøèáîê
cd iptvprobe_v0.5/kmodule/
make
| Code: | root@server-desktop:~/iptvprobe_v0.5/kmodule# make
make -C /lib/modules/2.6.31-20-generic/build M=/root/iptvprobe_v0.5/kmodule modules
make[1]: Âõîä â êàòàëîã `/usr/src/linux-headers-2.6.31-20-generic'
CC [M] /root/iptvprobe_v0.5/kmodule/nfhook.o
In file included from /root/iptvprobe_v0.5/kmodule/nfhook.c:57:
/root/iptvprobe_v0.5/kmodule/nfhook.h:25:20: error: stdint.h: No such file or directory
make[2]: *** [/root/iptvprobe_v0.5/kmodule/nfhook.o] Îøèáêà 1
make[1]: *** [_module_/root/iptvprobe_v0.5/kmodule] Îøèáêà 2
make[1]: Âûõîä èç êàòàëîãà `/usr/src/linux-headers-2.6.31-20-generic'
make: *** [all] Îøèáêà 2
|
stdint.h çàêèíóë â äèðåêòîðèþ /iptvprobe_v0.5/kmodule
íè÷åãî íå èçìåíèëîñü |
|
|
Posted: Thu Mar 25, 2010 2:45 pm Post subject: |
 |
|
 |
|
astlin
Joined: 27 May 2009 Posts: 10
|
| NoNick wrote: | ñîáðàëîñü çàïóñòèëîñü óñïåøíî
| Code: | ./iptvprobe_server -l root -s 127.0.0.1
Creating listening server ...
Server created successfully
|
cd iptvprobe_v0.5/udaemon/
cmake --debug-output . -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
make
ïðîøåë áåç îøèáîê
cd iptvprobe_v0.5/kmodule/
make
| Code: | root@server-desktop:~/iptvprobe_v0.5/kmodule# make
make -C /lib/modules/2.6.31-20-generic/build M=/root/iptvprobe_v0.5/kmodule modules
make[1]: Âõîä â êàòàëîã `/usr/src/linux-headers-2.6.31-20-generic'
CC [M] /root/iptvprobe_v0.5/kmodule/nfhook.o
In file included from /root/iptvprobe_v0.5/kmodule/nfhook.c:57:
/root/iptvprobe_v0.5/kmodule/nfhook.h:25:20: error: stdint.h: No such file or directory
make[2]: *** [/root/iptvprobe_v0.5/kmodule/nfhook.o] Îøèáêà 1
make[1]: *** [_module_/root/iptvprobe_v0.5/kmodule] Îøèáêà 2
make[1]: Âûõîä èç êàòàëîãà `/usr/src/linux-headers-2.6.31-20-generic'
make: *** [all] Îøèáêà 2
|
stdint.h çàêèíóë â äèðåêòîðèþ /iptvprobe_v0.5/kmodule
íè÷åãî íå èçìåíèëîñü |
à âîò ÷òîáû ñêîìïèëèòü kmodule íàäî óáðàòü #include <stdint.h> øàìàíñòâî |
|
|
Posted: Thu Mar 25, 2010 5:06 pm Post subject: |
 |
|
 |
|
NoNick
Joined: 24 Mar 2010 Posts: 13
|
ñïàñèáî çà ïîìîùü âñ¸ çàïóñòèëîñü è äàæå ðàáîòàëî, ïîòîì ñäåëàë reboot
çàïóñòèë ./iptvprobe_server -l root -p ïàðîëü -s 127.0.0.1
Creating listening server ...
Server created successfully
çàïóñêàþ äåìîíà ./iptvprobe -i 239.250.0.6 -s 10.21.88.10 -r 5 -p 7700
ip=239.250.0.6
Cannot open device "/dev/iptvprobe". error 19 (No such device)
ïðîâåðÿþ åñòü-ëè ñèìëèí íà óñòðîéñòâî mknod /dev/iptvprobe c 61 0
mknod: `/dev/iptvprobe': File exists |
|
|
Posted: Thu Mar 25, 2010 5:40 pm Post subject: |
 |
|
 |
|
aospan Site Admin
Joined: 15 Oct 2007 Posts: 110
|
Ïðîâåðüòå ïîæàëóéñòà çàãðóæåí ëè kernel ìîäóëü ? |
|
|
Posted: Thu Mar 25, 2010 6:03 pm Post subject: |
 |
|
 |
|
NoNick
Joined: 24 Mar 2010 Posts: 13
|
~/iptvprobe_v0.5/kmodule# insmod netup_netprobe.ko hook_position=0
insmod: error inserting 'netup_netprobe.ko': -1 File exists
./iptvprobe -i 239.250.0.6 -s 10.21.88.10 -r 5 -p 7700
ip=239.250.0.6
Cannot open device "/dev/iptvprobe". error 2 (No such file or directory) |
|
|
Posted: Thu Mar 25, 2010 6:06 pm Post subject: |
 |
|
 |
|
aospan Site Admin
Joined: 15 Oct 2007 Posts: 110
|
ñòðàííî. ïîïðîáóéòå âûãðóçèòü netup_netprobe è çàãðóçèòü çàíîâî ? |
|
|
Posted: Thu Mar 25, 2010 6:13 pm Post subject: |
 |
|
 |
|
NoNick
Joined: 24 Mar 2010 Posts: 13
|
| aospan wrote: | | ñòðàííî. ïîïðîáóéòå âûãðóçèòü netup_netprobe è çàãðóçèòü çàíîâî ? | ñäåëàë, íî íå ïîìîãëî |
|
|
Posted: Thu Mar 25, 2010 6:15 pm Post subject: |
 |
|
 |
|
aospan Site Admin
Joined: 15 Oct 2007 Posts: 110
|
ïîïðîáóéòå óäàëèòü ôàéë /dev/iptvprobe è ñîçäàòü çàíîâî ? |
|
|
Posted: Thu Mar 25, 2010 7:29 pm Post subject: |
 |
|
 |
|
NoNick
Joined: 24 Mar 2010 Posts: 13
|
î÷åíü ñòðàííî, ÿ óäàëèë /dev/iptvprobe
ñîçäàë çàíîâî, ïðîâåðèë, íåðàáîòàëî
åùå ðàç óäàëèë /dev/iptvprobe è ñîçäàë
è çàðàáîòàëî.
ñïàñèáî çà ïîääåðæêó  |
|
|
|
All times are GMT + 3 Hours
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|