Discussion Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

SMF - Just Installed!

Pages: [1] 2 3 ... 5
 1 
 on: August 15, 2010, 01:03:42 AM 
Started by wugi - Last post by wugi
Hoho, 找到解決方法了
修改 src/CString_wx.h

找尋
Code: [Select]
friend CString operator+(const CString& str1, const CString& str2){
替換成
Code: [Select]
friend CString operator+(const wxString(str1), const wxString(str2)){
之後再重新編譯後就可以完成編譯囉, 目前執行上沒什麼問題, 可以ban掉不少血騾...呵呵  ;D

 2 
 on: August 04, 2010, 10:58:53 AM 
Started by wugi - Last post by wugi
最近在網路瀏覽網頁的時候發現amule-dlp這個東東, 可以防止一些吸血騾, 我也抓下來試試能不能在我的BCM4780 NAS上跑...不過編譯的時候出現了問題....

Code: [Select]
....
Compiling BaseClient.cpp
antiLeech.cpp: In member function ‘const wxChar* CantiLeech::DLPCheckNameAndHashAndMod(CString, CString&, CString&)’:
antiLeech.cpp:1207: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/usr/include/wx-2.8/wx/string.h:1423: note: candidate 1: wxString operator+(wxChar, const wxString&)
CString_wx.h:20: note: candidate 2: CString operator+(const CString&, const CString&)
antiLeech.cpp:1207: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/usr/include/wx-2.8/wx/string.h:1423: note: candidate 1: wxString operator+(wxChar, const wxString&)
CString_wx.h:20: note: candidate 2: CString operator+(const CString&, const CString&)
make[3]: *** [amule-BaseClient.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

 3 
 on: June 10, 2010, 12:28:43 AM 
Started by wugi - Last post by wugi
$ git push
root@192.168.168.1's password:
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 315 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree inconsist
ent
remote: error: with what you pushed, and will require 'git reset --hard' to matc
h
remote: error: the work tree to HEAD.
remote: error:
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to

remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into

remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some

remote: error: other way.
remote: error:
remote: error: To squelch this message and still keep the default behaviour, set

remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To ssh://root@192.168.168.1/opt/git_root/a.git
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'ssh://root@192.168.168.1/opt/git_root/a.git'


Administrator@BENQ-S73 /d/share/abc/ab/.git (GIT_DIR!)
$

 4 
 on: April 25, 2010, 11:57:02 PM 
Started by wugi - Last post by wugi
PHP 5.3.2 compiled error with BCM4780 Debian 4.0 MIPSEL.

Configuration is below.

./configure --prefix=/usr --with-config-file-path=/etc/php --with-mysql --with-mysqli --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-snmp --with-ttf --enable-gd-native-ttf --enable-gd-jis-conv --enable-ftp  --with-gettext --with-imap --with-imap-ssl --with-mcrypt --with-ncurses --enable-pcntl --with-readline --with-xmlrpc --with-zip

Quote
...
checking for dcngettext in -lc... yes
checking for bind_textdomain_codeset in -lc... yes
checking for GNU MP support... no
checking for mhash support... yes
checking whether to enable hash support... yes
checking whether byte ordering is bigendian... (cached) no
checking size of short... 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking for iconv support... yes
checking for iconv... yes
checking if iconv is glibc's... yes
checking if iconv supports errno... yes
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... yes
checking for IMAP Kerberos support... no
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

It seems IMAP c-client issue.

 5 
 on: April 01, 2010, 12:17:26 AM 
Started by wugi - Last post by wugi
Quote
# ipsec verify
Checking your system to see if IPsec got installed and started correctly:
Version check and ipsec on-path                                 [OK]
Linux Openswan U2.6.21/K2.6.18-164.el5 (netkey)
Checking for IPsec support in kernel                            [OK]
NETKEY detected, testing for disabled ICMP send_redirects       [OK]
NETKEY detected, testing for disabled ICMP accept_redirects     [OK]
Checking for RSA private key (/etc/ipsec.secrets)               [OK]
Checking that pluto is running                                  [OK]
Two or more interfaces found, checking IP forwarding            [OK]
Checking NAT and MASQUERADEing
Checking for 'ip' command                                       [OK]
Checking for 'iptables' command                                 [OK]

Opportunistic Encryption DNS checks:
   Looking for TXT in forward dns zone: xxxx.xxx              [MISSING]
   Does the machine have at least one non-private address?      [OK]
   Looking for TXT in reverse dns zone: xxx.xxx.xxx..in-addr.arpa.     [MISSING]

Solution : Add below lines to /etc/ipsec.conf
Code: [Select]
conn block
     auto=ignore

conn private
     auto=ignore

conn private-or-clear
     auto=ignore

conn clear-or-private
     auto=ignore

conn clear
     auto=ignore

conn packetdefault
     auto=ignore

It will become below.
Quote
Checking your system to see if IPsec got installed and started correctly:
Version check and ipsec on-path                                 [OK]
Linux Openswan U2.6.21/K2.6.18-164.el5 (netkey)
Checking for IPsec support in kernel                            [OK]
NETKEY detected, testing for disabled ICMP send_redirects       [OK]
NETKEY detected, testing for disabled ICMP accept_redirects     [OK]
Checking for RSA private key (/etc/ipsec.secrets)               [OK]
Checking that pluto is running                                  [OK]
Two or more interfaces found, checking IP forwarding            [OK]
Checking NAT and MASQUERADEing
Checking for 'ip' command                                       [OK]
Checking for 'iptables' command                                 [OK]
Opportunistic Encryption Support                                [DISABLED]


Refer to : http://www.wretch.cc/blog/chunglai/25981765

 6 
 on: March 31, 2010, 11:52:39 PM 
Started by wugi - Last post by wugi
The message is below when I run "xl2tpd -D"

xl2tpd[7902]: setsockopt recvref[22]: Protocol not available
xl2tpd[7902]: This binary does not support kernel L2TP.
xl2tpd[7902]: open_controlfd: Unable to open /var/run/xl2tpd/l2tp-control for reading.

It means the kernel doesn't support kernel L2TP, and it will need to recompile the kernel.

 7 
 on: March 31, 2010, 11:25:44 PM 
Started by wugi - Last post by wugi
Compile fail with xl2tpd-1.2.4

Quote
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o xl2tpd.o xl2tpd.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o pty.o pty.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o misc.o misc.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o control.o control.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o avp.o avp.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o call.o call.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o network.o network.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o avpsend.o avpsend.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o scheduler.o scheduler.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o file.o file.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o aaa.o aaa.c
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION   -c -o md5.o md5.c
cc  -o xl2tpd xl2tpd.o pty.o misc.o control.o avp.o call.o network.o avpsend.o scheduler.o file.o aaa.o md5.o
cc -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I./linux/include/ -DIP_ALLOCATION -c contrib/pfc.c
contrib/pfc.c:14:18: error: pcap.h: No such file or directory
contrib/pfc.c:15:22: error: pcap-bpf.h: No such file or directory
contrib/pfc.c: In function ‘main’:
contrib/pfc.c:19: error: ‘pcap_t’ undeclared (first use in this function)
contrib/pfc.c:19: error: (Each undeclared identifier is reported only once
contrib/pfc.c:19: error: for each function it appears in.)
contrib/pfc.c:19: error: ‘pc’ undeclared (first use in this function)
contrib/pfc.c:20: error: storage size of ‘filter’ isn’t known
contrib/pfc.c:35: warning: implicit declaration of function ‘printf’
contrib/pfc.c:39: warning: implicit declaration of function ‘pcap_open_dead’
contrib/pfc.c:39: error: ‘DLT_PPP_PPPD’ undeclared (first use in this function)
contrib/pfc.c:40: warning: implicit declaration of function ‘pcap_compile’
contrib/pfc.c:43: warning: implicit declaration of function ‘bpf_dump’
contrib/pfc.c:48: warning: implicit declaration of function ‘pcap_geterr’
contrib/pfc.c:20: warning: unused variable ‘filter’
make: *** [pfc] Error 1

Solution: Install libpcap and libpcap-devel packages.

Refer: http://lists.openswan.org/pipermail/users/2009-April/016446.html

 8 
 on: March 31, 2010, 11:22:24 PM 
Started by wugi - Last post by wugi
Since there is no referred pcap.h and pcap-bpf.h in CentOS 5.4 even if I install libcap-devel, I prepare to compile the new libcap. (The libcap version in CentOS 5.4 is too old, it is 1.10)

When I compile libcap with version 2.19, I occur compile error.
 
Quote
make -C libcap all
make[1]: Entering directory `/nethdd/compile/libcap-2.19/libcap'
=> making cap_names.list.h from /nethdd/compile/libcap-2.19/libcap/../libcap/include/linux/capability.h
perl -e 'while ($l=<>) { if ($l =~ /^\#define[ \t](CAP[_A-Z]+)[ \t]+([0-9]+)\s+$/) { $tok=$1; $val=$2; $tok =~ tr/A-Z/a-z/; print "{\"$tok\",$val},\n"; } }' /nethdd/compile/libcap-2.19/libcap/../libcap/include/linux/capability.h | fgrep -v 0x > cap_names.list.h
gcc -O2 -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -I/nethdd/compile/libcap-2.19/libcap/../libcap/include _makenames.c -o _makenames
./_makenames > cap_names.h
gcc -O2 -Dlinux -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -c cap_alloc.c -o cap_alloc.o
gcc -O2 -Dlinux -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -c cap_proc.c -o cap_proc.o
gcc -O2 -Dlinux -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -c cap_extint.c -o cap_extint.o
gcc -O2 -Dlinux -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -c cap_flag.c -o cap_flag.o
gcc -O2 -Dlinux -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -I/nethdd/compile/libcap-2.19/libcap/../libcap/include  -c cap_text.c -o cap_text.o
gcc -O2 -Dlinux -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -c cap_file.c -o cap_file.o
gcc -Wl,-x -shared -O2 -Dlinux -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -I/nethdd/compile/libcap-2.19/libcap/../libcap/include -I/nethdd/compile/libcap-2.19/libcap/../libcap/include  -L/nethdd/compile/libcap-2.19/libcap/../libcap -lattr -Wl,-soname,libcap.so.2 -o libcap.so.2.19 cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o
/usr/bin/ld: cannot find -lattr
collect2: ld returned 1 exit status
make[1]: *** [libcap.so.2.19] Error 1
make[1]: Leaving directory `/nethdd/compile/libcap-2.19/libcap'
make: *** [all] Error 2

This problem is caused by he lost package libattr-devel
Try to install by "yum install libattr-devel"

 9 
 on: December 28, 2009, 10:06:20 PM 
Started by wugi - Last post by wugi
2. 無法切換語系, 執行 dpkg-reconfigure locales 錯誤... (網友rareway 反應)

dpkg-reconfigure locales
/usr/bin/perl: symbol lookup error: /usr/lib/perl5/auto/Locale/gettext/gettext.so: undefined symbol: Perl_Tstack_sp_ptr


發現一個暫時存的解決方案...只要將 /usr/lib/perl5/auto 目錄內的資料整個刪除或是更名(ex. auto.old) 就可以了

 10 
 on: December 27, 2009, 11:50:32 PM 
Started by wugi - Last post by wugi
1. perl-doc depends 版本變成 -1

如果安裝 perl-doc 之後再進行其它套件的話會出現perl的相依問題... :(

2. 無法切換語系, 執行 dpkg-reconfigure locales 錯誤... (網友rareway 反應)

dpkg-reconfigure locales
/usr/bin/perl: symbol lookup error: /usr/lib/perl5/auto/Locale/gettext/gettext.so: undefined symbol: Perl_Tstack_sp_ptr

這個好像是 /usr/lib/perl5/auto/Locale/gettext/gettext.so 太舊..?

==> 更新一下libperl-gettext 後是ok了, 不過又出現iconv的錯誤...該不會perl 相關的套件都要重編吧...><"

Pages: [1] 2 3 ... 5