Hi,
regarding the previous post, aMule is probably working on OpenBSD too.
But, when trying to compile with g(nu)make after a successfull configure, it fails with :
gmake all-recursive
gmake[1]: Entering directory `/usr/src/aMule-1.2.0'
Making all in m4
gmake[2]: Entering directory `/usr/src/aMule-1.2.0/m4'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/src/aMule-1.2.0/m4'
Making all in src
gmake[2]: Entering directory `/usr/src/aMule-1.2.0/src'
source='TextClient.cpp' object='TextClient.o' libtool=no \
depfile='.deps/TextClient.Po' tmpdepfile='.deps/TextClient.TPo' \
depmode=gcc /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -Wall -D__DEBUG__ -g -I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/X11R6/include -Isrc -c -o TextClient.o `test -f 'TextClient.cpp' || echo './'`TextClient.cpp
In file included from /usr/include/wx/string.h:62,
from TextClient.h:18,
from TextClient.cpp:20:
/usr/include/wx/buffer.h:98: syntax error before `&'
/usr/include/wx/buffer.h:98: syntax error before `&'
/usr/include/wx/buffer.h:98: `str' was not declared in this scope
/usr/include/wx/buffer.h:98: `str' was not declared in this scope
/usr/include/wx/buffer.h:98: ANSI C++ forbids initialization of member `m_str'
/usr/include/wx/buffer.h:98: making `m_str' static
/usr/include/wx/buffer.h:98: ANSI C++ forbids in-class initialization of non-const static member `m_str'
/usr/include/wx/buffer.h:98: syntax error before `return'
/usr/include/wx/buffer.h: In method `wxCharBuffer::wxCharBuffer(const char *)':
/usr/include/wx/buffer.h:98: field `int wxCharBuffer::m_str' is static; only point of initialization is its declaration
/usr/include/wx/buffer.h: In method `wxCharBuffer::wxCharBuffer(unsigned int)':
/usr/include/wx/buffer.h:98: field `int wxCharBuffer::m_str' is static; only point of initialization is its declaration
/usr/include/wx/buffer.h:98: invalid types `int[size_t]' for array subscript
/usr/include/wx/buffer.h: In method `void wxCharBuffer::wxCharBuffer(int)':
/usr/include/wx/buffer.h:98: passing `int' to argument 1 of `free(void *)' lacks a cast
/usr/include/wx/buffer.h: In method `char * wxCharBuffer::release() const':
/usr/include/wx/buffer.h:98: initialization to `char *' from `int' lacks a cast
/usr/include/wx/buffer.h:98: invalid use of type decl `class wxCharBuffer' as expression
/usr/include/wx/buffer.h:98: syntax error before `)'
/usr/include/wx/buffer.h: In method `wxCharBuffer::wxCharBuffer(...)':
/usr/include/wx/buffer.h:98: `src' undeclared (first use this function)
/usr/include/wx/buffer.h:98: (Each undeclared identifier is reported only once
/usr/include/wx/buffer.h:98: for each function it appears in.)
/usr/include/wx/buffer.h:98: field `int wxCharBuffer::m_str' is static; only point of initialization is its declaration
/usr/include/wx/buffer.h: At top level:
/usr/include/wx/buffer.h:98: syntax error at null character
/usr/include/wx/buffer.h:98: syntax error before `return'
gmake[2]: *** [TextClient.o] Error 1
gmake[2]: Leaving directory `/usr/src/aMule-1.2.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/aMule-1.2.0'
gmake: *** [all] Error 2
Here is my configure result :
Configure script has finished system check.
Configured aMule 1.2.0 for `i386-unknown-openbsd3.3'.
Should aMule be compiled in debug mode? no
Should aMule be compiled without debug reporting? yes
Should aMule be compiled with profiling? no
Should aMule be compiled with optimizations? no
Should aMule be compiled with systray? yes
Should aMule be compiled with safe systray? no
Should aMule be compiled with pure GTK code? yes
Should aMule be compiled without bar drawing? no
Should amulecmd be build? yes
Should amulecmd (TextClient) be linked against wxbase? no
Which libraries should aMule use?
wxWindows 2.4.2
GTK 1.2.10
Has someone has an idea ?
Thanks,
Jean Francois