Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old February 27, 2012, 14:12   #1
ghengiz
Adept
 
ghengiz's Avatar
 
Join Date: Nov 2011
Location: Roaming in Terry Pratchett's Discworld
Posts: 178
ghengiz is on a distinguished road
[npp 0.5.4] text color issue

On mac osx 10.7.3 64 bit, the curses version changes the color of text from white to orange when opening the options menu ('='), or when, just after a new character is created, the screen is refreshed to town.
On the other hand the text remains white if the help menu ('?') is called from the birth screen and going back, IF I don't use the = command. If I do, the text remains orange as opposed to white.
I tried in both xterm and iterm.

Anyone else has this issue?

edit:
this is config.log, if it can help

[CODE]
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by NPPAngband configure 0.5.4, which was
generated by GNU Autoconf 2.68. Invocation command line was

$ ./configure --with-no-install --with-x=no

## --------- ##
## Platform. ##
## --------- ##

hostname = MacBookPro
uname -m = x86_64
uname -r = 11.3.0
uname -s = Darwin
uname -v = Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 4.00 gigabytes
Default processor set: 76 tasks, 339 threads, 4 processors
Load average: 0.78, Mach factor: 3.21
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sw/bin
PATH: /sw/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin
PATH: /usr/texbin
PATH: /usr/X11R6/bin
PATH: /Users/franco/.local/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2324: checking for gcc
configure:2340: found /usr/bin/gcc
configure:2351: result: gcc
configure:2580: checking for C compiler version
configure:2589: gcc --version >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2600: $? = 0
configure:2589: gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~18/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~18/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
configure:2600: $? = 0
configure:2589: gcc -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:2600: $? = 1
configure:2589: gcc -qversion >&5
i686-apple-darwin11-llvm-gcc-4.2: no input files
configure:2600: $? = 1
configure:2620: checking whether the C compiler works
configure:2642: gcc conftest.c >&5
configure:2646: $? = 0
configure:2694: result: yes
configure:2697: checking for C compiler default output file name
configure:2699: result: a.out
configure:2705: checking for suffix of executables
configure:2712: gcc -o conftest conftest.c >&5
configure:2716: $? = 0
configure:2738: result:
configure:2760: checking whether we are cross compiling
configure:2768: gcc -o conftest conftest.c >&5
configure:2772: $? = 0
configure:2779: ./conftest
configure:2783: $? = 0
configure:2798: result: no
configure:2803: checking for suffix of object files
configure:2825: gcc -c conftest.c >&5
configure:2829: $? = 0
configure:2850: result: o
configure:2854: checking whether we are using the GNU C compiler
configure:2873: gcc -c conftest.c >&5
configure:2873: $? = 0
configure:2882: result: yes
configure:2891: checking whether gcc accepts -g
configure:2911: gcc -c -g conftest.c >&5
configure:2911: $? = 0
configure:2952: result: yes
configure:2969: checking for gcc option to accept ISO C89
configure:3033: gcc -c -g -O2 conftest.c >&5
configure:3033: $? = 0
configure:3046: result: none needed
configure:3066: checking whether make sets $(MAKE)
configure:3088: result: yes
configure:3097: checking whether ln -s works
configure:3101: result: yes
configure:3151: checking for a BSD-compatible install
configure:3219: result: /usr/bin/install -c
configure:3230: checking for a thread-safe mkdir -p
configure:3269: result: ./install-sh -c -d
configure:3275: checking for rm
configure:3293: found /bin/rm
configure:3305: result: /bin/rm
configure:3315: checking for mv
configure:3333: found /bin/mv
configure:3345: result: /bin/mv
configure:3355: checking for cp
configure:3373: found /bin/cp
configure:3385: result: /bin/cp
configure:3398: checking for dirent.h that defines DIR
configure:3417: gcc -c -g -O2 conftest.c >&5
configure:3417: $? = 0
configure:3425: result: yes
configure:3438: checking for library containing opendir
configure:3469: gcc -o conftest -g -O2 conftest.c >&5
configure:3469: $? = 0
configure:3486: result: none required
configure:3558: checking how to run the C preprocessor
configure:3589: gcc -E conftest.c
configure:3589: $? = 0
configure:3603: gcc -E conftest.c
conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
configure:3603: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "NPPAngband"
| #define PACKAGE_TARNAME "nppangband"
| #define PACKAGE_VERSION "0.5.4"
| #define PACKAGE_STRING "NPPAngband 0.5.4"
| #define PACKAGE_BUGREPORT "nppangbanddev@verizon.net"
| #define PACKAGE_URL ""
| #define PACKAGE "nppangband"
| #define VERSION "0.5.4"
| #define HAVE_DIRENT_H 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3628: result: gcc -E
configure:3648: gcc -E conftest.c
configure:3648: $? = 0
configure:3662: gcc -E conftest.c
conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
configure:3662: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "NPPAngband"
| #define PACKAGE_TARNAME "nppangband"
| #define PACKAGE_VERSION "0.5.4"
| #define PACKAGE_STRING "NPPAngband 0.5.4"
| #define PACKAGE_BUGREPORT "nppangbanddev@verizon.net"
| #define PACKAGE_URL ""
| #define PACKAGE "nppangband"
| #define VERSION "0.5.4"
| #define HAVE_DIRENT_H 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3691: checking for grep that handles long lines and -e
configure:3749: result: /usr/bin/grep
configure:3754: checking for egrep
configure:3816: result: /usr/bin/grep -E
configure:3821: checking for ANSI C header files
configure:3841: gcc -c -g -O2 conftest.c >&5
configure:3841: $? = 0
configure:3914: gcc -o conftest -g -O2 conftest.c >&5
configure:3914: $? = 0
configure:3914: ./conftest
configure:3914: $? = 0
configure:3925: result: yes
configure:3938: checking for sys/types.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for sys/stat.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for stdlib.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for string.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for memory.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for strings.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for inttypes.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for stdint.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for unistd.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3953: checking fcntl.h usability
configure:3953: gcc -c -g -O2 conftest.c >&5
configure:3953: $? = 0
configure:3953: result: yes
configure:3953: checking fcntl.h presence
configure:3953: gcc -E conftest.c
configure:3953: $? = 0
configure:3953: result: yes
configure:3953: checking for fcntl.h
configure:3953: result: yes
configure:3953: checking for stdint.h
configure:3953: result: yes
configure:3963: checking for stdbool.h that conforms to C99
configure:4030: gcc -c -g -O2 conftest.c >&5
configure:4030: $? = 0
configure:4037: result: yes
configure:4039: checking for _Bool
configure:4039: gcc -c -g -O2 conftest.c >&5
configure:4039: $? = 0
configure:4039: gcc -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:60: error: expected expression before ')' token
configure:4039: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "NPPAngband"
| #define PACKAGE_TARNAME "nppangband"
| #define PACKAGE_VERSION "0.5.4"
| #define PACKAGE_STRING "NPPAngband 0.5.4"
| #define PACKAGE_BUGREPORT "nppangbanddev@verizon.net"
| #define PACKAGE_URL ""
| #define PACKAGE "nppangband"
| #define VERSION "0.5.4"
| #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
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| if (sizeof ((_Bool)))
| return 0;
| ;
| return 0;
| }
configure:4039: result: yes
configure:4055: checking for an ANSI C-conforming const
configure:4120: gcc -c -g -O2 conftest.c >&5
configure:4120: $? = 0
configure:4127: result: yes
configure:4135: checking return type of signal handlers
configure:4153: gcc -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:32: error: void value not ignored as it ought to be
configure:4153: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "NPPAngband"
| #define PACKAGE_TARNAME "nppangband"
| #define PACKAGE_VERSION "0.5.4"
| #define PACKAGE_STRING "NPPAngband 0.5.4"
| #define PACKAGE_BUGREPORT "nppangbanddev@verizon.net"
| #define PACKAGE_URL ""
| #define PACKAGE "nppangband"
| #define VERSION "0.5.4"
| #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
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <signal.h>
|
| int
| main ()
| {
| return *(signal (0, 0)) (0) == 1;
| ;
| return 0;
| }
configure:4160: result: void
configure:4171: checking for mkdir
configure:4171: gcc -o conftest -g -O2 conftest.c >&5
configure:4171: $? = 0
configure:4171: result: yes
configure:4171: checking for setresgid
configure:4171: gcc -o conftest -g -O2 conftest.c >&5
Undefined symbols for architecture x86_64:
"_setresgid", referenced from:
_main in cciWMjty.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
configure:4171: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "NPPAngband"
| #define PACKAGE_TARNAME "nppangband"
| #define PACKAGE_VERSION "0.5.4"
| #define PACKAGE_STRING "NPPAngband 0.5.4"
| #define PACKAGE_BUGREPORT "nppangbanddev@verizon.net"
| #define PACKAGE_URL ""
| #define PACKAGE "nppangband"
| #define VERSION "0.5.4"
| #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
| /* end confdefs.h. */
| /* Define setresgid to an innocuous variant, in case <limits.h> declares setresgid.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define setresgid innocuous_setresgid
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char setresgid (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef setresgid
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char setresgid ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined __stub_setresgid || defined __stub___setresgid
| choke me
| #endif
|
| int
| main ()
| {
| return setresgid ();
| ;
| return 0;
| }
configure:4171: result: no
configure:4171: checking for setegid
configure:4171: gcc -o conftest -g -O2 conftest.c >&5
configure:4171: $? = 0
configure:4171: result: yes
configure:4171: checking for stat
configure:4171: gcc -o conftest -g -O2 conftest.c >&5
configure:4171: $? = 0
configure:4171: result: yes
configure:4190: checking if make supports SysV-style inclusion
configure:4210: result: yes
configure:4217: checking for make silent include syntax
configure:4245: result: gnu
configure:4444: checking for initscr in -lcurses
configure:4469: gcc -o conftest -g -O2 -DHAVE_CONFIG_H -fno-strength-reduce -W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -pedantic -I. conftest.c -lcurses >&5
configure:4469: $? = 0
configure:4479: result: yes
configure:4488: checking for initscr in -lncurses
configure:4513: gcc -o conftest -g -O2 -DHAVE_CONFIG_H -fno-strength-reduce -W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -pedantic -I. conftest.c -lncurses >&5
configure:4513: $? = 0
configure:4523: result: yes
configure:4531: checking for initscr in -lpdcurses
configure:4556: gcc -o conftest -g -O2 -DHAVE_CONFIG_H -fno-strength-reduce -W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -pedantic -I. conftest.c -lpdcurses >&5
ld: library not found for -lpdcurses
collect2: ld returned 1 exit status
configure:4556: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "NPPAngband"
| #define PACKAGE_TARNAME "nppangband"
| #define PACKAGE_VERSION "0.5.4"
| #define PACKAGE_STRING "NPPAngband 0.5.4"
| #define PACKAGE_BUGREPORT "nppangbanddev@verizon.net"
| #define PACKAGE_URL ""
| #define PACKAGE "nppangband"
| #define VERSION "0.5.4"
| #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_SETEGID 1
| #define HAVE_STAT 1
| #define DEFAULT_CONFIG_PATH "./lib/"
| #define DEFAULT_LIB_PATH "./lib/"
| #define DEFAULT_DATA_PATH "./lib/"
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char initscr ();
| int
| main ()
| {
| return initscr ();
| ;
| return 0;
| }
configure:4565: result: no
configure:4612: checking for use_default_colors
configure:4612: gcc -o conftest -g -O2 -DHAVE_CONFIG_H -fno-strength-reduce -W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -pedantic -I. -lncurses conftest.c >&5
configure:4612: $? = 0
configure:4612: result: yes
configure:4612: checking for can_change_color
configure:4612: gcc -o conftest -g -O2 -DHAVE_CONFIG_H -fno-strength-reduce -W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -pedantic -I. -lncurses conftest.c >&5
configure:4612: $? = 0
configure:4612: result: yes
configure:4623: checking for X
configure:4801: result: disabled
configure:5878: checking for Mix_OpenAudio in -lSDL_mixer
configure:5903: gcc -o conftest -g -O2 -DHAVE_CONFIG_H -fno-strength-reduce -W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -pedantic -I. -lncurses conftest.c -lSDL_mixer >&5
ld: library not found for -lSDL_mixer
collect2: ld returned 1 exit status
configure:5903: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "NPPAngband"
| #define PACKAGE_TARNAME "nppangband"
| #define PACKAGE_VERSION "0.5.4"
| #define PACKAGE_STRING "NPPAngband 0.5.4"
| #define PACKAGE_BUGREPORT "nppangbanddev@verizon.net"
| #define PACKAGE_URL ""
| #define PACKAGE "nppangband"
| #define VERSION "0.5.4"
| #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_SETEGID 1
| #define HAVE_STAT 1
| #define DEFAULT_CONFIG_PATH "./lib/"
| #define DEFAULT_LIB_PATH "./lib/"
| #define DEFAULT_DATA_PATH "./lib/"
| #define USE_NCURSES 1
| #define USE_GCU 1
| #define HAVE_USE_DEFAULT_COLORS 1
| #define HAVE_CAN_CHANGE_COLOR 1
| #define X_DISPLAY_MISSING 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char Mix_OpenAudio ();
| int
| main ()
| {
| return Mix_OpenAudio ();
| ;
| return 0;
| }
configure:5912: result: no
configure:6047: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by NPPAngband config.status 0.5.4, which was
generated by GNU Autoconf 2.68. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on MacBookPro

config.status:862: creating mk/extra.mk
config.status:862: creating mk/sinclude.mk
config.status:862: creating src/autoconf.h

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_MAKE_set=
ac_cv_env_MAKE_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_can_change_color=yes
ac_cv_func_mkdir=yes
ac_cv_func_setegid=yes
ac_cv_func_setresgid=no
ac_cv_func_stat=yes
ac_cv_func_use_default_colors=yes
ac_cv_header_dirent_dirent_h=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdbool_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
ac_cv_lib_curses_____initscr=yes
ac_cv_lib_ncurses____initscr=yes
ac_cv_lib_pdcurses_initscr=no
ac_cv_objext=o
ac_cv_path_CP=/bin/cp
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_MV=/bin/mv
ac_cv_path_RM=/bin/rm
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_search_opendir='none required'
ac_cv_type__Bool=yes
ac_cv_type_signal=void
my_cv_make_inclusion_sysv=yes
my_cv_make_sinclude_syntax=gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS='-g -O2 -DHAVE_CONFIG_H -fno-strength-reduce -W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -pedantic'
CP='/bin/cp'
CPP='gcc -E'
CPPFLAGS=' -I.'
DEFS='-DHAVE_CONFIG_H'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
GLIB_CFLAGS=''
GLIB_LIBS=''
GREP='/usr/bin/grep'
GTK_CFLAGS=''
GTK_LIBS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=' -lncurses'
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MAKE=''
MAKE_SINCLUDE='-include'
MKDIR_P='./install-sh -c -d'
MV='/bin/mv'
NOINSTALL=''
OBJEXT='o'
PACKAGE='nppangband'
PACKAGE_BUGREPORT='nppangbanddev@verizon.net'
PACKAGE_NAME='NPPAngband'
PACKAGE_STRING='NPPAngband 0.5.4'
PACKAGE_TARNAME='nppangband'
PACKAGE_URL=''
PACKAGE_VERSION='0.5.4'
PATH_SEPARATOR=':'
PKG_CONFIG=''
RM='/bin/rm'
SDL_CFLAGS=''
SDL_CONFIG=''
SDL_LIBS=''
SETEGID=''
SET_MAKE=''
SHELL='/bin/sh'
VERSION='0.5.4'
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='gcc'
bindir='..'
build_alias=''
configdir='./lib/'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='/usr/local'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdatadir='./lib/'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
vardatadir='./lib/'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "NPPAngband"
#define PACKAGE_TARNAME "nppangband"
#define PACKAGE_VERSION "0.5.4"
#define PACKAGE_STRING "NPPAngband 0.5.4"
#define PACKAGE_BUGREPORT "nppangbanddev@verizon.net"
#define PACKAGE_URL ""
#define PACKAGE "nppangband"
#define VERSION "0.5.4"
#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_SETEGID 1
#define HAVE_STAT 1
#define DEFAULT_CONFIG_PATH "./lib/"
#define DEFAULT_LIB_PATH "./lib/"
#define DEFAULT_DATA_PATH "./lib/"
#define USE_NCURSES 1
#define USE_GCU 1
#define HAVE_USE_DEFAULT_COLORS 1
#define HAVE_CAN_CHANGE_COLOR 1
#define X_DISPLAY_MISSING 1

configure: exit 0
[\CODE]
ghengiz is offline   Reply With Quote
Old February 27, 2012, 16:31   #2
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
I do have several regular players that use a mac, but this is the first report of an issue of this nature.

Under options ('='), there is an option to edit colors. Have the actual colors been altered? Or is it just using the wrong ones for output?
__________________
NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57
nppangband is offline   Reply With Quote
Old February 27, 2012, 17:23   #3
ghengiz
Adept
 
ghengiz's Avatar
 
Join Date: Nov 2011
Location: Roaming in Terry Pratchett's Discworld
Posts: 178
ghengiz is on a distinguished road
Quote:
Originally Posted by nppangband View Post
I do have several regular players that use a mac, but this is the first report of an issue of this nature.

Under options ('='), there is an option to edit colors. Have the actual colors been altered? Or is it just using the wrong ones for output?
Just the output. I dumped the colors to a file, and the entry for "white" is 0xFF 0xFF oxFF, as expected.
BTW, I cannot use the cursor keys to change the colors. They work fine in the other menus and in the map screen.
I also tried to change the terminal colorscheme, and different terminals as well, but to no avail...
I attach a savefile, just in case some useful info is stored in it.

edit: in the edit colors screen, the should-be white is displayed in orange.
what test would you like I do now?
The previous version (0.5.3) and any other variant I tried don't behave so : puzzled:
I attach two png images, one is how I see the map, the other is the edit color menu

edit2:
I tried and open the savefile on npp 0.5.3, but it doesn't work, due to too many new terrain feature

The executable is too big to attached. If you are a mac user on lion 64 bit who wishes to volunteer and try it, please contact me via pm, I'll send it via email
Attached Thumbnails
Click image for larger version

Name:	colors.jpg
Views:	179
Size:	23.4 KB
ID:	906   Click image for larger version

Name:	map.jpg
Views:	137
Size:	22.7 KB
ID:	907  
Attached Files
File Type: zip 501.Franco.zip (4.6 KB, 91 views)

Last edited by ghengiz; February 27, 2012 at 19:47.
ghengiz is offline   Reply With Quote
Old February 27, 2012, 20:04   #4
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
It looks like all of the shades are scrambled. I wonder if shades.pref is even being loaded. The second row of colors should be white, the thrid lrow should be shades of slate, the 4th orange, and the 5th red, etc.....

In your NPPAngband directory, the in the *npp/lib/pref folder, there is a file called pref.prf. If you don't mind, please try inserting this line into that tile somewhere. It probably doesn't matter where, but ideally at the very bottom:

# load the shades
%:shades.prf

In 0.5.4, I deleted several pref files related to the Amiga and RISC OS operating systems, since those ports are no longer supported. All I can think of is somehow your mac is loading the shades through one of those pref files.

In that colors menu, isn't there an option to reset the colors? That should re-load shades.prf as well.

The reason 0.5.3 can't load the savefile is that I added a single terrain in 0.5.4. If you merely wanted to open the file in 0.5.3 and see if the colors work, in the NPP*/lib/edit file, you need to take the terrain.txt and limits.txt file from the 0.5.4 folder and load them into 0.5.3 folder (same place, NPP*/lib/edit).
__________________
NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57
nppangband is offline   Reply With Quote
Old February 27, 2012, 20:45   #5
ghengiz
Adept
 
ghengiz's Avatar
 
Join Date: Nov 2011
Location: Roaming in Terry Pratchett's Discworld
Posts: 178
ghengiz is on a distinguished road
Quote:
Originally Posted by nppangband View Post
In your NPPAngband directory, the in the *npp/lib/pref folder, there is a file called pref.prf. If you don't mind, please try inserting this line into that tile somewhere. It probably doesn't matter where, but ideally at the very bottom:

# load the shades
%:shades.prf
No, it doesn't work...Neither does manually loading shades.prf (copied to ~/.angband/NPPAngband) both from the main option menu, nor from the interact with colors sub-menu.
The latter case doesn't even give a message, as opposed to loading from the option menu, that at least says that the pref file has been loaded...

Quote:
Originally Posted by nppangband View Post
In 0.5.4, I deleted several pref files related to the Amiga and RISC OS operating systems, since those ports are no longer supported. All I can think of is somehow your mac is loading the shades through one of those pref files.

In that colors menu, isn't there an option to reset the colors? That should re-load shades.prf as well.
Perhaps that's the reason...
no, the only options present are

load a user pref file
dump colors
modify colors

Quote:
Originally Posted by nppangband View Post
The reason 0.5.3 can't load the savefile is that I added a single terrain in 0.5.4. If you merely wanted to open the file in 0.5.3 and see if the colors work, in the NPP*/lib/edit file, you need to take the terrain.txt and limits.txt file from the 0.5.4 folder and load them into 0.5.3 folder (same place, NPP*/lib/edit).
Finally something that works!
the save file from 0.5.4 loaded in 0.5.3 gives the right colors.

edit:
is there a way to check which files are loaded at startup?
ghengiz is offline   Reply With Quote
Old February 28, 2012, 01:46   #6
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
I must admit, I am baffled by this one.

The option to re-set the visuals is in another option.

The commands are:

'=' followed by:
'v' (Interact with visuals)
'r' reset the visuals

I am curious how the colors look after that.

Also, what is the RVG values?

For example, color 1 (white, left most column, second from the top) should read 255, 255, 255. The color below that (#2, slate) should be 128, 128, 128. The one below that (#3, orange) should read 256, 128,0.

Please let me know if that isn't how they read. If they aren't that color. You can also try modifying one of those colors to the correct values and seeing if they are correct after you exit the menu and play the game.
__________________
NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57
nppangband is offline   Reply With Quote
Old February 28, 2012, 09:41   #7
ghengiz
Adept
 
ghengiz's Avatar
 
Join Date: Nov 2011
Location: Roaming in Terry Pratchett's Discworld
Posts: 178
ghengiz is on a distinguished road
Quote:
Originally Posted by nppangband View Post
I must admit, I am baffled by this one.

The option to re-set the visuals is in another option.

The commands are:

'=' followed by:
'v' (Interact with visuals)
'r' reset the visuals

I am curious how the colors look after that.

Also, what is the RVG values?

For example, color 1 (white, left most column, second from the top) should read 255, 255, 255. The color below that (#2, slate) should be 128, 128, 128. The one below that (#3, orange) should read 256, 128,0.

Please let me know if that isn't how they read. If they aren't that color. You can also try modifying one of those colors to the correct values and seeing if they are correct after you exit the menu and play the game.
I did reset the visuals, but nothing changed. Neither did after a screen refresh with ctrl-R while in town, nor after exiting (saving the game) and re-running the binary.
Well, as I noted in a previous post, I cannot edit the colors while in game, because the mouse and the cursor keys are not functioning at all in that menu, while the latter are fine elsewhere (the mouse doesn't, but I don't mind). So I dumped the colors in a file, after I did reset the visual as you suggested, and the values are the correct ones, as they were before.
Curiouser and curiouser...
Where is documented how the pref files work? I'd like to try and load just the minimum required, and see what happens...

edit:
I did a make clean & rebuild, and there were just a warning:

cmd4.c: In function ‘do_cmd_options_aux’:
cmd4.c:657: warning: cast from pointer to integer of different size

such line reads:
int page = (int)vpage;
where vpage is declared as void*

I did a quick test editing the cast to (int)*vpage and (int&)vpage, but the compiler didn't like it...
Neither changing the cast to (int*)vpage or (int)&vpage did the trick.
oh, and after every change I did reset the visual and loaded the shades.prf, but the colors are still wrong.

Last edited by ghengiz; February 28, 2012 at 10:05.
ghengiz is offline   Reply With Quote
Old February 28, 2012, 15:14   #8
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
With regard to the compiler warning, that line of code is at the top level of the menu, when you first hit '=', and if it wasn't working you wouldn't have been bale to get to the colors or visuals menu in the first place. So we can eliminate that as a problem.

The colors menu is kind of a special one, because the colors are arranged in an 8x8 column, and the regular ui menu can only handle up to 2 different columns (like in the knowledge screens). However code used to handle navigation and input in the color menu (located in cmd4.c) is similar to to code used in many places throughout the game. Is that the only place where the game is unresponsive? And, if I understand the situation, you can use the direction keys in other parts of the game, and you can't use the mouse at all?

The strangest part is that your pref file dump shows the correct color numbers, which would indicate that the colors are set properly, however the wrong color is being displayed on your monitor.

quick pref file info:

All the code for loading and saving pref files are handled in a file called pref.c. Essentially when the game starts up, it loads a file called prefs.prf (all pref files are located in *NPP/lib/pref). This file in turn loads various pref files depending on which system you are playing on, and also whether you are using graphics or ASCII.

Inside the pref file, the command to load another pref file starts with a '%', and it has a custon syntax it uses to create if statements to determine what to load and what files not to load, but they are simple english statements & easy to understand.

In the bottom of pref.prf, it then loads pref-mac.prf. I am at work and can't grep it, but somewhere it loads font.prf or graf.prf, depening on whether you are using graphics or ascii, which then in turn loads the pref files for the fonts/graphics for the various systems, as well as shades.prf.

Something just occurred to me while typing this out. The people that compile NPP for the mac, they actually use main-mac.c and makefiles from FAAngband rather than the one from NPP. I probably need to ask Nick what he uses, and replace my in-mac.c and makefiles with his.
__________________
NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57
nppangband is offline   Reply With Quote
Old February 28, 2012, 16:31   #9
ghengiz
Adept
 
ghengiz's Avatar
 
Join Date: Nov 2011
Location: Roaming in Terry Pratchett's Discworld
Posts: 178
ghengiz is on a distinguished road
Quote:
Originally Posted by nppangband View Post
With regard to the compiler warning, that line of code is at the top level of the menu, when you first hit '=', and if it wasn't working you wouldn't have been bale to get to the colors or visuals menu in the first place. So we can eliminate that as a problem.

The colors menu is kind of a special one, because the colors are arranged in an 8x8 column, and the regular ui menu can only handle up to 2 different columns (like in the knowledge screens). However code used to handle navigation and input in the color menu (located in cmd4.c) is similar to to code used in many places throughout the game. Is that the only place where the game is unresponsive? And, if I understand the situation, you can use the direction keys in other parts of the game, and you can't use the mouse at all?
exactly

Quote:
Originally Posted by nppangband View Post
The strangest part is that your pref file dump shows the correct color numbers, which would indicate that the colors are set properly, however the wrong color is being displayed on your monitor.

quick pref file info:
<snip>

Something just occurred to me while typing this out. The people that compile NPP for the mac, they actually use main-mac.c and makefiles from FAAngband rather than the one from NPP. I probably need to ask Nick what he uses, and replace my in-mac.c and makefiles with his.
Probably it's not needed: yes, I'm compiling on a mac, but I prefer using the gcu port, not the carbon one. Call me weird
I just tried to compile the latter, and with just a few edits in src/externs.h and src/main-crb.c, it works well: mouse, colors and all...

Let's go back to the curses port. Thanks to your explanation I modified pref.prf in such a way to read directly the *gcu.prf files, with % callings at the end of the file, to be sure the definitions within are not overwritten by the if's above. It doesn't work yet

If you'd like me to try something else to fix this strange behaviour, just let me know...I'm out of ideas...
Well, at least the native port is fine, so I suppose I can just use that for now.
Thanks anyway
ghengiz is offline   Reply With Quote
Old February 28, 2012, 17:56   #10
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
Quote:
Originally Posted by ghengiz View Post
exactly



Probably it's not needed: yes, I'm compiling on a mac, but I prefer using the gcu port, not the carbon one. Call me weird
I just tried to compile the latter, and with just a few edits in src/externs.h and src/main-crb.c, it works well: mouse, colors and all...

Let's go back to the curses port. Thanks to your explanation I modified pref.prf in such a way to read directly the *gcu.prf files, with % callings at the end of the file, to be sure the definitions within are not overwritten by the if's above. It doesn't work yet

If you'd like me to try something else to fix this strange behaviour, just let me know...I'm out of ideas...
Well, at least the native port is fine, so I suppose I can just use that for now.
Thanks anyway
That's completely different, and now it makes sense! GCU doesn't use the color system that all the other ports do. I have a linux desktop so I can actually help with this one. The GCU port has its own color scheme (there is a section in main-gcu.c that defines the colors), and ignores shades.prf. That's why none of the changes we were trying were working. The colors are from 0-216. Red, green, and blue colors are all on a scale of 1-6 (or is it 0-5?). Then they are blended into a single number from 0-216 (6*6*6). In 0.5.4 I thought I was fixing them, but I may have completely messed them up.

For now, just use the main-gcu.c from NPP 0.5.3, and the base 16 colors will work correctly. Some of the shades may be completely wrong, however. It was on my to-do list (in the next 4-5 days) to confirm the colors in the gcu port. I thought they may need some minor tweaks. I had no idea I had messed them up that badly.
__________________
NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57
nppangband is offline   Reply With Quote
Reply


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
[OSX] Text completely garbled Derakon Development 5 October 17, 2011 20:19
Text formating on the ladder. buzzkill Oook! 7 November 8, 2010 01:03
Excessive Processor Use for a text-interface? saw Vanilla 26 July 24, 2010 12:56
Request: Change text on enchantment fizzix Vanilla 7 May 5, 2010 07:52
NPP issue Jungle_Boy Variants 4 March 26, 2010 17:45


All times are GMT +1. The time now is 16:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.