aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 1.2.5 and Solaris  (Read 4756 times)

wimms

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
1.2.5 and Solaris
« on: February 11, 2004, 04:54:53 PM »

if g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include -D__SAFE_TRAY__ -I/usr/local/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/local/lib/glib/include -I/usr/openwin/include   -g -O2 -mcpu=pentiumpro -march=pentiumpro -I/usr/local/include -Wall -D__DEBUG__ -g   -MT amule-OScopeCtrl.o -MD -MP -MF ".deps/amule-OScopeCtrl.Tpo" \
  -c -o amule-OScopeCtrl.o `test -f 'OScopeCtrl.cpp' || echo './'`OScopeCtrl.cpp; \
then mv ".deps/amule-OScopeCtrl.Tpo" ".deps/amule-OScopeCtrl.Po"; \
else rm -f ".deps/amule-OScopeCtrl.Tpo"; exit 1; \
fi
OScopeCtrl.cpp: In member function `void COScopeCtrl::RecreateGrid()':
OScopeCtrl.cpp:269: error: `round' undeclared (first use this function)
OScopeCtrl.cpp:269: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
gmake[2]: *** [amule-OScopeCtrl.o] Error 1

>g++ -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2

Any hints? is the "round" assumed to be g++ internal?
Logged

cwsdoom

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: 1.2.5 and Solaris
« Reply #1 on: February 11, 2004, 05:02:09 PM »

Perhaps the patch for FreeBSD can help you:
http://www.amule.org/amule/thread.php?threadid=964&sid=
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: 1.2.5 and Solaris
« Reply #2 on: February 11, 2004, 05:03:57 PM »

Yes, it will help
Logged

wimms

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: 1.2.5 and Solaris
« Reply #3 on: February 11, 2004, 05:13:32 PM »

I suppose so, but why does this happen at all? Where should the round be found normally?

Also, can one define it like this:
#if !defined(round)
#define round(a)  floor((a) + 0.5)
#endif
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: 1.2.5 and Solaris
« Reply #4 on: February 11, 2004, 05:24:49 PM »

wimms

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: 1.2.5 and Solaris
« Reply #5 on: February 11, 2004, 07:09:05 PM »

deltaHF, I solved my problem long ago, and I've seen the freebsd patch.
I'm just curious 1) where is round supposed to be defined and 2) if defining round as macro would work. If yes then it could be put to sys.h or config.h and be done with it, instead of putting more sugar into each source(5?) where its used.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: 1.2.5 and Solaris
« Reply #6 on: February 11, 2004, 07:17:09 PM »

it's suposed to be defined on math.h

defining as macro will work

is patched on aMule CVS and will be on 1.2.6
Logged

wimms

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: 1.2.5 and Solaris
« Reply #7 on: February 11, 2004, 08:30:57 PM »

clear, thanks
btw, is there any difference between round and ceil()?
Logged