aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compiling via ports on FreeBSD  (Read 5703 times)

polus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Compiling via ports on FreeBSD
« on: February 16, 2005, 08:26:57 AM »

It seems that the gtk files which are present in
/usr/X11R6/include/gtk-2.0/gtk/ are not found,
or the include directives is attempting to include them
from the same directory as the port:
/usr/ports/net/amule-devel/work/amule-devel-2.0.0rc7_2_usr_X11R6

Heres my make output:

---------------------------------------------------------------------------------------

===>  Building for aMule-devel-2.0.0rc7_2
gmake  all-recursive
gmake[1]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7'
Making all in m4
gmake[2]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/m4'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/m4'
Making all in intl
gmake[2]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/intl'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/intl'
Making all in po
gmake[2]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/po'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/po'
Making all in docs
gmake[2]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/docs'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/docs'
Making all in src
gmake[2]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src'
gmake  all-recursive
gmake[3]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src'
Making all in utils
gmake[4]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils'
Making all in xas
gmake[5]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/xas'
gmake[5]: Nothing to be done for `all'.
gmake[5]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/xas'
Making all in cas
gmake[5]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/cas'
gmake[5]: Nothing to be done for `all'.
gmake[5]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/cas'
Making all in wxCas
gmake[5]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/wxCas'
Making all in src
gmake[6]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/wxCas/src'
gmake[6]: Nothing to be done for `all'.
gmake[6]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/wxCas/src'
gmake[6]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/wxCas'
gmake[6]: Nothing to be done for `all-am'.
gmake[6]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/wxCas'
gmake[5]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/wxCas'
Making all in aLinkCreator
gmake[5]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/aLinkCreator'
Making all in src
gmake[6]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/aLinkCreator/src'
gmake[6]: Nothing to be done for `all'.
gmake[6]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/aLinkCreator/src'
gmake[6]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/aLinkCreator'
gmake[6]: Nothing to be done for `all-am'.
gmake[6]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/aLinkCreator'
gmake[5]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils/aLinkCreator'
gmake[5]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils'
gmake[5]: Nothing to be done for `all-am'.
gmake[5]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils'
gmake[4]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/utils'
Making all in pixmaps
gmake[4]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/pixmaps'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/pixmaps'
Making all in kademlia
gmake[4]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/kademlia'
Making all in utils
gmake[5]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/kademlia/utils'
gmake[5]: Nothing to be done for `all'.
gmake[5]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/kademlia/utils'
gmake[5]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/kademlia'
gmake[5]: Nothing to be done for `all-am'.
gmake[5]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/kademlia'
gmake[4]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/kademlia'
Making all in webserver
gmake[4]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/webserver'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src/webserver'
gmake[4]: Entering directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src'
if c++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/include  -D__UTF8_SYSTRAY_ENABLED__  -I/usr/X11R6/include/wx/gtk2-2.4 -I/usr/X11R6/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -D__GTK2__  -I/usr/local/include -O -pipe -DUSE_EMBEDDED_CRYPTO  -O2  -MT amule-listctrl.o -MD -MP -MF ".deps/amule-listctrl.Tpo" \
  -c -o amule-listctrl.o `test -f 'listctrl.cpp' || echo './'`listctrl.cpp; \
then mv -f ".deps/amule-listctrl.Tpo" ".deps/amule-listctrl.Po"; \
else rm -f ".deps/amule-listctrl.Tpo"; exit 1; \
fi
listctrl.cpp:89:25: gtk/gtk.h: No such file or directory
In file included from listctrl.cpp:90:
/usr/X11R6/include/wx/gtk/win_gtk.h:18:21: gdk/gdk.h: No such file or directory
/usr/X11R6/include/wx/gtk/win_gtk.h:19:22: gdk/gdkx.h: No such file or directory
/usr/X11R6/include/wx/gtk/win_gtk.h:20:30: gtk/gtkcontainer.h: No such file or directory
/usr/X11R6/include/wx/gtk/win_gtk.h:21:31: gtk/gtkadjustment.h: No such file or directory
In file included from listctrl.cpp:90:
/usr/X11R6/include/wx/gtk/win_gtk.h:54: error: `GtkContainer' does not name a type
/usr/X11R6/include/wx/gtk/win_gtk.h:55: error: ISO C++ forbids declaration of `GList' with no type
/usr/X11R6/include/wx/gtk/win_gtk.h:55: error: expected `;' before '*' token
/usr/X11R6/include/wx/gtk/win_gtk.h:66: error: `GdkVisibilityState' does not name a type
/usr/X11R6/include/wx/gtk/win_gtk.h:71: error: `gboolean' does not name a type
/usr/X11R6/include/wx/gtk/win_gtk.h:72: error: `gboolean' does not name a type
/usr/X11R6/include/wx/gtk/win_gtk.h:73: error: `gboolean' does not name a type
/usr/X11R6/include/wx/gtk/win_gtk.h:78: error: `GtkContainerClass' does not name a type
/usr/X11R6/include/wx/gtk/win_gtk.h:92: error: `gboolean' has not been declared
/usr/X11R6/include/wx/gtk/win_gtk.h:92: error: ISO C++ forbids declaration of `clear' with no type
/usr/X11R6/include/wx/gtk/win_gtk.h:95: error: `gboolean' has not been declared
/usr/X11R6/include/wx/gtk/win_gtk.h:95: error: ISO C++ forbids declaration of `use' with no type
/usr/X11R6/include/wx/gtk/win_gtk.h:98: error: `gboolean' has not been declared
/usr/X11R6/include/wx/gtk/win_gtk.h:98: error: ISO C++ forbids declaration of `expose' with no type
listctrl.cpp: In member function `void wxODListHeaderWindow::DoDrawRect(wxDC*, int, int, int, int)':
listctrl.cpp:1953: error: `GtkStateType' undeclared (first use this function)
listctrl.cpp:1953: error: (Each undeclared identifier is reported only once for each function it appears in.)
listctrl.cpp:1953: error: expected `;' before "state"
listctrl.cpp:1958: error: invalid use of undefined type `struct _GtkWidget'
/usr/X11R6/include/wx/defs.h:2079: error: forward declaration of `struct _GtkWidget'
listctrl.cpp:1958: error: expected primary-expression before ')' token
listctrl.cpp:1958: error: `GTK_CHECK_CAST' undeclared (first use this function)
listctrl.cpp:1959: error: `state' undeclared (first use this function)
listctrl.cpp:1959: error: `GTK_SHADOW_OUT' undeclared (first use this function)
listctrl.cpp:1960: error: `GdkRectangle' undeclared (first use this function)
listctrl.cpp:1960: error: expected primary-expression before ')' token
listctrl.cpp:1962: error: `gtk_paint_box' undeclared (first use this function)
gmake[4]: *** [amule-listctrl.o] Error 1
gmake[4]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/net/amule-devel/work/aMule-2.0.0rc7'
gmake: *** [all] Error 2
*** Error code 2
 
Stop in /usr/ports/net/amule-devel.

---------------------------------------------------------------------------------------

Any help greatly apprieciated :)
Logged
FreeBSD 5.3
Xorg X11R6.8.1
Windowmaker 0.91

pil0t

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 40
Re: Compiling via ports on FreeBSD
« Reply #1 on: February 16, 2005, 09:56:05 AM »

Don't know if this helps, but I compiled amule rc8 on my FBSD 5.3 without
using the port using the following configure line (without any patches to
the source code):

configure --prefix=/tmp/amule --enable-optimise --enable-embedded_crypto --disable-cas --disable-wxcas --disable-alc --disable-alcc --disable-systray --disable-nls --with-wx-config=/usr/X11R6/bin/wxgtk-2.4-config

Maybe adjust your port to use rc8, remove the patches and change the
configure options to something similar to my configure line?!
Logged

polus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Compiling via ports on FreeBSD
« Reply #2 on: February 16, 2005, 11:28:20 AM »

Thanks, Ill try it tonight. I did already attempt t compile it from the tarball rather then letting ports install it. Ill try your options tonight.
Logged
FreeBSD 5.3
Xorg X11R6.8.1
Windowmaker 0.91

lfroen

  • Guest
Re: Compiling via ports on FreeBSD
« Reply #3 on: February 16, 2005, 01:37:01 PM »

Quote
listctrl.cpp:89:25: gtk/gtk.h: No such file or directory

polus: Did you looked to this line ? It's first error in the output. Let me give you a hint what it mean - you don't have gtk or at least configure thinks so.

Please, before posting, make at least little effort to debug the problem.

P.S.  Consider using cvs snapshots instead of rc[7,8] - match more stable.
Logged

polus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Compiling via ports on FreeBSD
« Reply #4 on: February 16, 2005, 06:29:41 PM »

lfroen, I know that, BUT all the other apps that require gtk on my system work fine

I find it a little offensive that you just brush off my problem as though its as simple as I dont have gtk installed. I have moved the files, edited numerous C files to try and correct the problem and point the correct files to the correct locations but It hasnt worked.

SO

as a last resort after many hours of reinstalling gtk and playing about I have posted my error message on here to see if its something simple Im missing.

Ok Im at home now so ill try the few ideas that you have given me (except for checking gtk as that isnt the problem...)

By the way I do very much apprciate the time and effort the developers team put into amule.
Logged
FreeBSD 5.3
Xorg X11R6.8.1
Windowmaker 0.91

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Compiling via ports on FreeBSD
« Reply #5 on: February 16, 2005, 07:12:08 PM »

polus,

I don't know BSD, but it seems to me that you don't have the gtk headers. gtk, not wxGTK. Are you able to find this include in your system: gtk/gtk.h? Here it is /usr/include/gtk-2.0/gtk/gtk.h or /usr/include/gtk-1.2/gtk/gtk.h

Cheers!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compiling via ports on FreeBSD
« Reply #6 on: February 16, 2005, 08:33:52 PM »

yes, polus, although lfroen is not the Perfect Head Of Public Relations for any proyect, he ahs a point. that line says that you don't have the GTK DEVELOPMENT FILES, which are needed for compiling, NOT RUNNING, gtk programs.
Logged

polus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Compiling via ports on FreeBSD
« Reply #7 on: February 16, 2005, 09:58:04 PM »

Yep, I had all the gtk files, I used locate (and yes I did update the locate search database) to check that all the files.....That wasnt the problem. The GTK files were all there. I was abit sketchy over the point of running / compiling installing apps but I meant that several other apps which required GTK found the files without hacking about and installed fine....

To be honest I still cant work out what the problem was. I changed the makefile of the port  and it still didnt work. I then put the same configure options into a manual install and it kinda of worked... Abit more hacking and I now have amule 2 installed...

Thanks for your suggestions  :)
Logged
FreeBSD 5.3
Xorg X11R6.8.1
Windowmaker 0.91

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compiling via ports on FreeBSD
« Reply #8 on: February 17, 2005, 01:12:43 AM »

write gtk-config --cflags
Logged