aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule on FreeBSD ? Is it working ?  (Read 9654 times)

Guest

  • Guest
aMule on FreeBSD ? Is it working ?
« on: October 15, 2003, 12:40:12 AM »

Hi all

I'm sorry but i try to compile aMule on my FreeBSD 4.8 Box

But that doesn't work.

Are you sure that it runs on FreeBSD

Or am i doing something wrong

Thx for your answer

Bye
Logged

Guest

  • Guest
Sorry
« Reply #1 on: October 15, 2003, 12:46:08 AM »

I've just seen that i always get error on compiling with make but with gmake the error is :
  [code:1]make: Cannot allocate memory[/code:1]

Can you help me please :cry:
Logged

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Re: aMule on FreeBSD ? Is it working ?
« Reply #2 on: October 15, 2003, 04:13:12 AM »

I don't have any system running freebsd and i have never used freebsd, but maybe you can search on google to find any help on your problem ...

Or if someone else on the forum can help ???

A++
Logged
Creator of aMule & aStats projects

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: aMule on FreeBSD ? Is it working ?
« Reply #3 on: October 15, 2003, 11:49:01 AM »

JonTHn,

join the #amule channel on EFNET .. theres one user on OpenBSD, maybe he can help you..

greets
delta

Guest

  • Guest
Thx
« Reply #4 on: October 15, 2003, 01:21:46 PM »

I will connect on #amule when i am back to home

Thanx :lol:
Logged

Guest

  • Guest
Re: aMule on FreeBSD ? Is it working ?
« Reply #5 on: October 16, 2003, 09:03:41 AM »

I'm having the same problems also with 1.0.8 on FreeBSD 5.1 and it fails here:

SysTray.cpp: In function `gchar* getIP()':
SysTray.cpp:43: invalid use of undefined type `struct sockaddr_in'
SysTray.cpp:37: forward declaration of `struct sockaddr_in'
SysTray.cpp:45: invalid use of undefined type `struct sockaddr_in'
SysTray.cpp:37: forward declaration of `struct sockaddr_in'
SysTray.cpp:55: invalid use of undefined type `struct sockaddr_in'
SysTray.cpp:37: forward declaration of `struct sockaddr_in'
SysTray.cpp:57: invalid use of undefined type `struct sockaddr_in'
SysTray.cpp:37: forward declaration of `struct sockaddr_in'
gmake[3]: *** [SysTray.o] Error 1

I can compile 1.0.7 fine on FreeBSD 5.1

This is the same problem with the MacOS X thread http://amule.sourceforge.net/phpBB2/viewtopic.php?t=35

As suggested in above thread a quick fix would be to disable this in the "./configure --with-systray" This way we could use the new 1.0.8 features without systray.

hakurey
Logged

Guest

  • Guest
Re: aMule on FreeBSD ? Is it working ?
« Reply #6 on: October 23, 2003, 12:44:02 PM »

the problem is that i can't uses bsd so i can't fix the problem with code.

so i can fix the problem like this:
comment all in function getIP(), leave only a return "error";

so you won't have compilation problem.

this is a temporary solution, another can be the usage of
#if linux
WHOLE FUNCTION...
#endif

so mac and bsd users won't have problems.

however the best solution is using wx library to get ip.

i haven't used it, but now i'll try...


ps. this is only an info function, commenting code, or deleting it won't give problems with amule.
Logged

Hetfield

  • Developer
  • Jr. Member
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 74
Re: aMule on FreeBSD ? Is it working ?
« Reply #7 on: October 23, 2003, 12:45:48 PM »

sorry i wasn't logged.
previous reply is mine.

bye!
Logged

hakurey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: aMule on FreeBSD ? Is it working ?
« Reply #8 on: October 28, 2003, 03:15:03 AM »

Quote
Original von Anonymous

the problem is that i can't uses bsd so i can't fix the problem with code.

so i can fix the problem like this:
comment all in function getIP(), leave only a return "error";

so you won't have compilation problem.



i tried the above.
commented all in the function and leave return "Error"
run ./configure
run gmake and i get the following error

if gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -g   -I/usr/X11R6/incl
ude -I/usr/X11R6/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -
D_LARGE_FILES -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/
include -I/usr/X11R6/include -Isrc    -MT gsocket.o -MD -MP -MF ".deps/gsocket.Tpo
" \
  -c -o gsocket.o `test -f 'gsocket.c' || echo './'`gsocket.c; \
then mv ".deps/gsocket.Tpo" ".deps/gsocket.Po"; \
else rm -f ".deps/gsocket.Tpo"; exit 1; \
fi
gsocket.c: In function `_GSocket_Send_Stream':
gsocket.c:1178: `MSG_NOSIGNAL' undeclared (first use in this function)
gsocket.c:1178: (Each undeclared identifier is reported only once
gsocket.c:1178: for each function it appears in.)
gsocket.c: In function `_GSocket_Send_Dgram':
gsocket.c:1202: `MSG_NOSIGNAL' undeclared (first use in this function)
gmake[3]: *** [gsocket.o] Error 1
gmake[3]: Leaving directory `/usr/home/demo/compile/aMule-1.1.0/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/home/demo/compile/aMule-1.1.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/demo/compile/aMule-1.1.0'
gmake: *** [all] Error 2

has anyone had any luck compiling on freebsd yet?
Logged

Hetfield

  • Developer
  • Jr. Member
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 74
Re: aMule on FreeBSD ? Is it working ?
« Reply #9 on: October 30, 2003, 05:57:27 PM »

in compilation string i don't see any wxgtk library path

that's why it doesn't find libs.
Logged

hakurey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: aMule on FreeBSD ? Is it working ?
« Reply #10 on: October 31, 2003, 05:42:14 AM »

Quote
Original von Hetfield

in compilation string i don't see any wxgtk library path

that's why it doesn't find libs.


I compiled the following with no problems on the same FreeBSD 5.1 setup
* amule 1.0.7
* xmule 1.6.0
* xmule 1.6.1

This implies they must be finding the wxgtk library path?

I do get the same errors when compiling on FreeBSD 4.8 as well.
I have the luxury of owning vmware so I can test these easily.

My FreeBSD is installed with wxgtk-2.4.1_1 I'll try and compare the ouput of ./configure between 1.0.7 and 1.1.0 to find what's different.
Logged

hakurey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: aMule on FreeBSD ? Is it working ?
« Reply #11 on: October 31, 2003, 07:26:48 AM »

I tried copying Systray.cpp and Systray.h from 1.0.7 into 1.1.0 and compiling but that produced exactly the same errors as above.
Logged

Hetfield

  • Developer
  • Jr. Member
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 74
Re: aMule on FreeBSD ? Is it working ?
« Reply #12 on: October 31, 2003, 01:31:33 PM »

in this post there are 2 differents problems.

the first about systray can be fixed commenting code in getIP() function, leaving only a return value.
ora use on old version too...even 1.0.0 version.

the gsocket error is different.
and i've no idea about it.

never used a freebsd system, only linux.

open different thread for different problems
Logged

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Re: aMule on FreeBSD ? Is it working ?
« Reply #13 on: October 31, 2003, 05:06:57 PM »

Hi hakurey,

Quote
i tried the above.
commented all in the function and leave return "Error"
run ./configure
run gmake and i get the following error

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -I/usr/X11R6/incl
ude -I/usr/X11R6/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -
D_LARGE_FILES -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/
include -I/usr/X11R6/include -Isrc -MT gsocket.o -MD -MP -MF ".deps/gsocket.Tpo
" \
-c -o gsocket.o `test -f 'gsocket.c' || echo './'`gsocket.c; \
then mv ".deps/gsocket.Tpo" ".deps/gsocket.Po"; \
else rm -f ".deps/gsocket.Tpo"; exit 1; \
fi
gsocket.c: In function `_GSocket_Send_Stream':
gsocket.c:1178: `MSG_NOSIGNAL' undeclared (first use in this function)
gsocket.c:1178: (Each undeclared identifier is reported only once
gsocket.c:1178: for each function it appears in.)
gsocket.c: In function `_GSocket_Send_Dgram':
gsocket.c:1202: `MSG_NOSIGNAL' undeclared (first use in this function)
gmake[3]: *** [gsocket.o] Error 1
gmake[3]: Leaving directory `/usr/home/demo/compile/aMule-1.1.0/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/home/demo/compile/aMule-1.1.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/demo/compile/aMule-1.1.0'
gmake: *** [all] Error 2

has anyone had any luck compiling on freebsd yet?

Ok to fix this problem, use this patch :

http://bigbob.chez.tiscali.fr/bsd-gsocket-remove-patch

cd aMule-1.1.0/src
patch -p0 -i path-to/bsd-gsocket-remove-patch

then rm Makefile in src, then configure, then make ...

A++

PS :
even in the new 1.1.1 released version the problem about gsocket compilation under freebsd remaining ... look in the patch file and just remove gsocket compilation from Makefile.am ... (we expect olonho definitively fix that in next release) ...
Logged
Creator of aMule & aStats projects