Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old February 26, 2010, 14:10   #1
Tiburon Silverflame
Swordsman
 
Join Date: Feb 2010
Posts: 405
Tiburon Silverflame is on a distinguished road
Compilation issues.

I decided to shift the game to a different computer/OS. My desktop runs Ubuntu 9.10; download the source, unzip, run the 3 commands, bingo! Game runs. Copy over my save file to the right spot (took a bit to find that)...rename it...it loads! Cool.

OK, so now step 2. Let's do this on my netbook, which is where I'd really prefer it. The netbook runs the current Ubuntu netbook remix.

Copy the zip file.
Unzip.
Run ./configure -- OK.
Run make. All the components compile fine, until....

main.c:38: warning: ISO C forbids empty initializer braces
main.c:37: error: zero or negative size array ‘modules’
make[3]: *** [main.o] Error 1
make[2]: *** [all] Error 1
make[1]: *** [subdirs] Error 1
make: *** [all] Error 1

Oops...

Can't upload my full config.log; it's too big. But here's what's being written into confdefs.h:

#define PACKAGE_NAME "Angband"
#define PACKAGE_TARNAME "angband"
#define PACKAGE_VERSION "3.1.2v2"
#define PACKAGE_STRING "Angband 3.1.2v2"
#define PACKAGE_BUGREPORT "bugs@rephial.org"
#define PACKAGE "angband"
#define VERSION "3.1.2v2"
#define HAVE_DIRENT_H 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_FCNTL_H 1
#define HAVE_STDINT_H 1
#define HAVE__BOOL 1
#define HAVE_STDBOOL_H 1
#define RETSIGTYPE void
#define HAVE_MKDIR 1
#define HAVE_SETRESGID 1
#define HAVE_SETEGID 1
#define HAVE_STAT 1
#define USE_PRIVATE_PATHS 1
#define DEFAULT_CONFIG_PATH "/usr/local/etc/angband/"
#define DEFAULT_LIB_PATH "/usr/local/share/angband/"
#define DEFAULT_DATA_PATH "/usr/local/var/games/angband/"
#define X_DISPLAY_MISSING 1

One big difference in the desktop's config log: it has USE_X11 1. The netbook doesn't run XWin, to remain small. The problem appears to be that NONE of the #ifdef's are being satisfied, thus creating the empty module.

So what now?
Tiburon Silverflame is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DaJAngband Issues Prismatic Variants 12 February 15, 2010 16:08
general squelch issues PowerDiver Vanilla 9 January 9, 2009 16:13
Compiling Issues Gregian Vanilla 13 July 2, 2008 15:35
Shopkeeper issues in V3.09a Vanadis Vanilla 3 March 29, 2008 01:07
Compilation issues: can't find -lSM Daven_26d1 Vanilla 10 July 22, 2007 08:52


All times are GMT +1. The time now is 21:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.