![]() |
#1 |
Adept
Join Date: Nov 2009
Posts: 174
![]() |
Compile problems with current angband git version
Hi,
i waited for some days/weeks now to see if this problem "solves itself" ![]() Code:
[...] Successfully compiled z-virt.c. LINK angband.o In file included from gtk/cairo-utils.h:25:0, from gtk/main-gtk.h:30, from gtk/main-gtk.c:22: /usr/include/cairo/cairo.h:1976:26: warning: comma at end of enumerator list gtk/main-gtk.c: In function ‘last_inv_slot’: gtk/main-gtk.c:2198:12: error: ‘inventory’ undeclared (first use in this function) gtk/main-gtk.c:2198:12: note: each undeclared identifier is reported only once for each function it appears in gtk/main-gtk.c: In function ‘inv_slot’: gtk/main-gtk.c:2218:11: error: ‘inventory’ undeclared (first use in this function) gtk/main-gtk.c: In function ‘handle_inv’: gtk/main-gtk.c:2287:25: error: ‘inventory’ undeclared (first use in this function) gtk/main-gtk.c: In function ‘handle_equip’: gtk/main-gtk.c:2326:25: error: ‘inventory’ undeclared (first use in this function) gtk/main-gtk.c: In function ‘cr_print_equippy’: gtk/main-gtk.c:2506:12: error: ‘inventory’ undeclared (first use in this function) gtk/main-gtk.c: In function ‘handle_sidebar’: gtk/main-gtk.c:2570:35: error: ‘c_name’ undeclared (first use in this function) Failed to compile gtk/main-gtk.c! make[3]: *** [gtk/main-gtk.o] Error 1 make[2]: *** [all] Error 1 make[1]: *** [subdirs] Error 1 make: *** [all] Error 1
__________________
Proud candidate for the Angband Darwin Award! |
![]() |
![]() |
![]() |
#2 |
Angband Devteam member
|
Can you confirm that you cloned from github.com/angband/angband.git? Can you tell me what arguments you gave to ./configure, if any?
I will look into this tomorrow - I'm not aware of any compilation issues in the current master branch. |
![]() |
![]() |
![]() |
#3 |
Veteran
Join Date: Apr 2007
Posts: 1,951
Donated: $40
![]() |
looks like it's related to elly's changes of moving the global 'inventory' to be inside the player struct
__________________
takkaria whispers something about options. -more- |
![]() |
![]() |
![]() |
#4 |
Adept
Join Date: Nov 2009
Posts: 174
![]() |
I pulled from github.com/angband/angband.git (already existing repository) and also did a git clone (removed repository to start over).
The build is done this way Code:
./autogen.sh ./configure \ --prefix=/usr \ --bindir=/usr/bin/ \ --sysconfdir=/usr/share/angband \ --with-configpath=/usr/share/angband \ --with-libpath=/usr/share/angband \ --enable-gtk \ --enable-sdl \ --enable-sdl-mixer || return 1 make clean make Still have a working dev version installed, so no hurry ![]()
__________________
Proud candidate for the Angband Darwin Award! |
![]() |
![]() |
![]() |
#5 | |
Angband Devteam member
|
Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Angband Devteam member
|
Ok, this is fixed in staging, but cannot be committed to master until some other bugs have been fixed in staging. Pls bear with us.
|
![]() |
![]() |
![]() |
#7 |
Adept
Join Date: Nov 2009
Posts: 174
![]() |
Better take your time fixing bugs instead of hurry and built in some more
![]()
__________________
Proud candidate for the Angband Darwin Award! |
![]() |
![]() |
![]() |
#8 |
Angband Devteam member
|
Right, it's finally fixed. Took about four hours longer than I was expecting, but got there in the end. We should get a working version autobuilt tonight. Pls report any bugs ASAP because we're moving towards a release now.
|
![]() |
![]() |
![]() |
#9 |
Adept
Join Date: Nov 2009
Posts: 174
![]() |
The compile looks good, only one warning anymore
Code:
generate.c: In function ‘cave_gen’: generate.c:2898:10: warning: ‘bx’ may be used uninitialized in this function Successfully compiled generate.c. ![]()
__________________
Proud candidate for the Angband Darwin Award! |
![]() |
![]() |
![]() |
#10 | |
Angband Devteam member
|
Quote:
The compiler warning is odd because I don't get it at all. What version of gcc are you using? Did you get any unusual output when you ran ./autogen.sh or ./configure? What arguments did you give ./configure? I will see if I can reproduce it by duplicating your build invocations. |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
The latest working version from the master git repository | myshkin | Development | 1 | October 10, 2010 22:27 |
Bug in current vanilla, Git? Trac? | Timo Pietilä | Development | 4 | October 10, 2010 21:12 |
Most current version? | ZenDragon | Vanilla | 8 | January 20, 2010 12:34 |
Compile z+angband on linux | garu | Variants | 2 | November 5, 2009 16:20 |
ID-by-use in current dev version | takkaria | Vanilla | 8 | April 13, 2009 10:16 |