[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-talk] tripwire on OpenBSD: compiler error



Hello,

while trying to enrich my OpenBSD installation with tripwire I got tripwire-2.4.2.2-src.tar.gz and tried to compile but got a compiler error. Maybe someone here to help me. I did:

root:/usr/src# gzip -cd < tripwire-2.4.2.2-src.tar.gz | tar -xf -
root:/usr/src# cd tripwire-2.4.2.2-src
root:/usr/src/tripwire-2.4.2.2-src# ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc/tripwire --enable-static 2>&1 | tee configure.log ; echo $?
root:/usr/src/tripwire-2.4.2.2-src# .make 2>&1 | tee make.log ; echo $?
...
<some warnings here and there>
...
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..     -O -pipe -Wall -Wno-non-virtual-dtor -c -o timebomb.o timebomb.cpp
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..     -O -pipe -Wall -Wno-non-virtual-dtor -c -o timeconvert.o timeconvert.cpp
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..     -O -pipe -Wall -Wno-non-virtual-dtor -c -o tw_signal.o tw_signal.cpp
tw_signal.cpp: In function 'void tw_psignal(int, const char*)':
tw_signal.cpp:114: warning: deprecated conversion from string constant to 'char*'
tw_signal.cpp:114: warning: deprecated conversion from string constant to 'char*'
...
tw_signal.cpp:114: warning: deprecated conversion from string constant to 'char*'
tw_signal.cpp:114: warning: deprecated conversion from string constant to 'char*'
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..     -O -pipe -Wall -Wno-non-virtual-dtor -c -o twlimits.o twlimits.cpp
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..     -O -pipe -Wall -Wno-non-virtual-dtor -c -o twlocale.o twlocale.cpp
twlocale.h: In function 'const FacetT& tss::GetFacet(const std::locale&, const FacetT*) [with FacetT = std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >]':
twlocale.cpp:115:   instantiated from here
twlocale.h:113: warning: statement has no effect
twlocale.h: In function 'const FacetT& tss::GetFacet(const std::locale&, const FacetT*) [with FacetT = std::time_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >]':
twlocale.cpp:294:   instantiated from here
twlocale.h:113: warning: statement has no effect
twlocale.h: In function 'const FacetT& tss::GetFacet(const std::locale&, const FacetT*) [with FacetT = std::num_get<char, std::istreambuf_iterator<char, std::char_traits<char> > >]':
twlocale.cpp:151:   instantiated from 'static numT cFormatNumberUtil<numT, CharT>::Format(const std::basic_string<CharT, std::char_traits<CharT>, std::allocator<_T2> >&, bool) [with numT = long int, CharT = char]'
twlocale.cpp:196:   instantiated from here
twlocale.h:113: warning: statement has no effect
twlocale.cpp: At global scope:
twlocale.cpp:282: warning: 'TSTRING& util_FormatTimeCPlusPlus(tm*, TSTRING&)' defined but not used
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..     -O -pipe -Wall -Wno-non-virtual-dtor -c -o unixexcept.o unixexcept.cpp
g++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..     -O -pipe -Wall -Wno-non-virtual-dtor -c -o usernotify.o usernotify.cpp
usernotify.cpp: In member function 'void iUserNotify::NotifySilent(const char*, ...)':
usernotify.cpp:74: error: ISO C++ forbids casting to an array type '__va_list_tag [1]'
usernotify.cpp:74: error: incompatible types in assignment of '__va_list_tag*' to '__va_list_tag [1]'
usernotify.cpp: In member function 'void iUserNotify::NotifyNormal(const char*, ...)':
usernotify.cpp:85: error: ISO C++ forbids casting to an array type '__va_list_tag [1]'
usernotify.cpp:85: error: incompatible types in assignment of '__va_list_tag*' to '__va_list_tag [1]'
usernotify.cpp: In member function 'void iUserNotify::NotifyVerbose(const char*, ...)':
usernotify.cpp:96: error: ISO C++ forbids casting to an array type '__va_list_tag [1]'
usernotify.cpp:96: error: incompatible types in assignment of '__va_list_tag*' to '__va_list_tag [1]'
usernotify.cpp: In member function 'virtual void iUserNotify::Notify(int, const char*, ...)':
usernotify.cpp:107: error: ISO C++ forbids casting to an array type '__va_list_tag [1]'
usernotify.cpp:107: error: incompatible types in assignment of '__va_list_tag*' to '__va_list_tag [1]'
*** Error 1 in src/core (Makefile:255 'usernotify.o')
*** Error 1 in src (Makefile:217 'all-recursive')
*** Error 1 in . (Makefile:257 'all-recursive')
*** Error 1 in /usr/src/tripwire-2.4.2.2-src (Makefile:179 'all')
0

Unfortunately, I am not that C++ freak and dont know how to help myself. Can this be repaired?

Thanks for any help

Thomas

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
tor-talk mailing list
tor-talk@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk