aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: openbsd & amule ?  (Read 3230 times)

iiop22000

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
openbsd & amule ?
« on: November 28, 2003, 12:12:26 AM »

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
Logged

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Re: openbsd & amule ?
« Reply #1 on: November 28, 2003, 12:59:03 AM »

Hi iiop22000,

Since 1.2.0, aMule require wxBase library for textclient compilation.

However, you can disable the textclient compilation to avoid the compilation troubles with "--disable-amulecmd".

Also, have a look on this topic :

http://amule.sourceforge.net/phpBB2/viewtopic.php?t=272

Hope it help ...

A++
Logged
Creator of aMule & aStats projects

iiop22000

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: openbsd & amule ?
« Reply #2 on: November 30, 2003, 12:38:21 PM »

Many thanks for your answer, Mr BigBob, event if it still doesn't compile for the same problem. ;(

  I keep searching, if ever i find something, i will post it somewhere here.

    Jean Francois
Logged