angel2s2 / sams2

Automatically exported from code.google.com/p/sams2
GNU General Public License v2.0
1 stars 0 forks source link

SAMS не собирается под OpenBSD 5.3 #602

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
make:

....

/usr/local/lib/mysql
/usr/local/lib/mysql/libmysqlclient.so.21.0: warning: stpcpy() is dangerous GNU 
crap; don't use it
templatelist.o(.text+0x10a4): In function `TemplateList::saveClearDates()':
/root/sams-2.0.0-rc2/src/templatelist.cpp:405: warning: strcpy() is almost 
always misused, please use strlcpy()
samsconfig.o(.text+0x293): In function 
`SamsConfig::setBool(std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, bool)':
/usr/include/g++/bits/stl_tree.h:1021: warning: sprintf() is often misused, 
please use snprintf()
Making all in php
Making all in doc
Making all in plugins/loadavg
Making all in plugins/fsusage
/bin/sh ../../libtool  --tag=CXX    --mode=compile g++ -DHAVE_CONFIG_H  -I. 
-I../../src   -I/usr/local/include/mysql  -Wall -g -O2 -I/usr/local/include -MT 
getfsusage.loP -MF .deps/getfsusage.Tpo -c -o getfsusage.lo getfsusage.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src 
-I/usr/local/include/mysql -Wall -g -O2 -I/usr/local/include -MT getfsusage.lo 
-MD -MP -MF .deps/getfsusage.Tpo -csage.cpp  -fPIC -DPIC -o .libs/getfsusage.o
getfsusage.cpp: In function 'int get_fs_usage(fs_info*)':
getfsusage.cpp:126: warning: left shift count >= width of type
getfsusage.cpp:127: warning: left shift count >= width of type
getfsusage.cpp:129: warning: left shift count >= width of type
getfsusage.cpp:130: warning: left shift count >= width of type
getfsusage.cpp:133: warning: left shift count >= width of type
getfsusage.cpp:134: warning: left shift count >= width of type
getfsusage.cpp: In function 'char* get_fsusage()':
getfsusage.cpp:307: error: 'MNT_NOWAIT' was not declared in this scope
getfsusage.cpp:307: error: 'getmntinfo' was not declared in this scope
getfsusage.cpp:311: error: cannot increment a pointer to incomplete type 
'statfs'
getfsusage.cpp:317: error: invalid use of incomplete type 'struct statfs'
getfsusage.cpp:304: error: forward declaration of 'struct statfs'
getfsusage.cpp:318: error: invalid use of incomplete type 'struct statfs'
getfsusage.cpp:304: error: forward declaration of 'struct statfs'
getfsusage.cpp:319: error: invalid use of incomplete type 'struct statfs'
getfsusage.cpp:304: error: forward declaration of 'struct statfs'
*** Error 1 in plugins/fsusage (Makefile:407 'getfsusage.lo')
*** Error 1 in /root/sams-2.0.0-rc2 (Makefile:453 'all-recursive')

проверено на разных версиях SAMS - sams-2.0.0-rc2, 
sams-2.0.0-rc1, sams-1.0.5 - результат примерно такой же

Заранее благодарен за помощь

Original issue reported on code.google.com by polv...@gmail.com on 18 Sep 2013 at 2:16