aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: [r9393] Compilation on IRIX. Problems and solutions.  (Read 13217 times)

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: [r9393] Compilation on IRIX. Problems and solutions.
« Reply #15 on: January 27, 2009, 11:38:26 AM »

Code: (man 2 select) [Select]
       /* According to POSIX.1-2001 */
       #include <sys/select.h>

       /* According to earlier standards */
       #include <sys/time.h>
       #include <sys/types.h>
       #include <unistd.h>

That's why unistd.h is required on IRIX. I still don't have a clue about the math problems, so I'll leave that for later.
Logged
concordia cum veritate

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: [r9393] Compilation on IRIX. Problems and solutions.
« Reply #16 on: January 27, 2009, 12:59:14 PM »

Gaznevada, could you please try the attached patch? I'm still unsure why you get those math errors, and why didn't you get them with previous versions.

Please use the latest tarball for the test, where all the other issues are already fixed.
« Last Edit: January 27, 2009, 01:01:10 PM by GonoszTopi »
Logged
concordia cum veritate

Gaznevada

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 51
Re: [r9393] Compilation on IRIX. Problems and solutions.
« Reply #17 on: January 27, 2009, 03:40:41 PM »

Gaznevada, could you please try the attached patch? I'm still unsure why you get those math errors, and why didn't you get them with previous versions.

I'd like to say "Don't ask", but better not  ;D

Please use the latest tarball for the test, where all the other issues are already fixed.

Compilation started right now.

Cheers,

--
Gaznevada
Logged
--
"Orwell was an optimist" - Usenet, somewhere.

Gaznevada

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 51
Re: [r9393] Compilation on IRIX. Problems and solutions.
« Reply #18 on: January 28, 2009, 11:14:41 AM »

Gaznevada, could you please try the attached patch? I'm still unsure why you get those math errors, and why didn't you get them with previous versions.

Please use the latest tarball for the test, where all the other issues are already fixed.

I'm afraid the problem is still with us. Here attached the compiler log:

make[3]: Entering directory `/root/software_tank/aMule-SVN-r9405/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -D__DEBUG__ -DUSE_WX_EXTENSIONS -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxUSE_GUI=0   -I./libs -Ilibs -I./include -I/usr/local/include -D__WEAK_CRYPTO__ -DAMULE_DAEMON  -I/usr/local/include -I/usr/freeware/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0  -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Wl,-LD_LAYOUT:lgot_buffer=1024 -Wl,-rpath -Wl,/usr/local/lib:/usr/freeware/lib:/usr/freeware/lib32 -MT amuled-amuled.o -MD -MP -MF ".deps/amuled-amuled.Tpo" -c -o amuled-amuled.o `test -f 'amuled.cpp' || echo './'`amuled.cpp; \
then mv -f ".deps/amuled-amuled.Tpo" ".deps/amuled-amuled.Po"; else rm -f ".deps/amuled-amuled.Tpo"; exit 1; fi
In file included from /usr/local/include/wx-2.8/wx/filefn.h:56,
                 from /usr/local/include/wx-2.8/wx/utils.h:21,
                 from amuled.cpp:45:
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/unistd.h: In function `pid_t fork()':
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/unistd.h:465: error: `pid_t fork()' was declared `extern' and later `static'
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/unistd.h:311: error: previous declaration of `pid_t fork()'
amuled.cpp: In member function `void CAmuledGSocketFuncTable::RunSelect()':
amuled.cpp:323: error: `select' undeclared (first use this function)
amuled.cpp:323: error: (Each undeclared identifier is reported only once for each function it appears in.)
make[3]: *** [amuled-amuled.o] Error 1

Math related errors are gone but 'select/unistd' related errors not yet. If of any interest, it's the very
same error I obtain when I include in patched r9393-amuled.cpp <math.h>  only.

Cheers,

--
Gaznevada
Logged
--
"Orwell was an optimist" - Usenet, somewhere.

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: [r9393] Compilation on IRIX. Problems and solutions.
« Reply #19 on: January 28, 2009, 01:29:51 PM »

Math related errors are gone but 'select/unistd' related errors not yet.
Reverse effect of what I suspected. Math errors are "gone"because it now doesn't even get to that point.
Logged
concordia cum veritate
Pages: 1 [2]