Pointers cannot be stored in ints, stopping

Post Reply
giuseppo
Posts: 3
Joined: Sat Nov 17, 2012 5:35 pm

Pointers cannot be stored in ints, stopping

Post by giuseppo » Sun Nov 18, 2012 2:10 pm

I have this problem- I know this has already been posted, but my vm maschine is i386 and not x64 like the other chap.
I also had a problem with bigendian, but I managed to solve it switching in the .config file the check for bigendian

ffxi@ffxi-VirtualBox:~/dsp$ ./configure --enable-debug
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking whether byte ordering is bigendian... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
yes
checking whether time.h and sys/time.h may both be included... no
checking whether pointers can be stored in ints (old code)... no
configure: error: pointers cannot be stored in ints, required for old code... stopping

giuseppo
Posts: 3
Joined: Sat Nov 17, 2012 5:35 pm

Re: Pointers cannot be stored in ints, stopping

Post by giuseppo » Sun Nov 18, 2012 4:57 pm

I think I've solved it.
I had a g++ library missing.

I just had an error at the end of the compilation, I don't know if it's important or not.

src/map/instance.h:151:7: warning: extra tokens at end of #endif directive [enabled by default]
src/map/zoneutils.cpp: In function ‘void zoneutils::UpdateWeather()’:
src/map/zoneutils.cpp:92:22: error: unable to find string literal operator ‘operator"" CL_RESET’
make: *** [dsgame-zoneutils.o] Error 1

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: Pointers cannot be stored in ints, stopping

Post by bluekirby0 » Tue Dec 04, 2012 9:35 pm

If you can give more info about your system I can try to fix the endian check in the config script. The "extra tokens" warning is harmless...it refers to some comments placed after #endif directives for readability and shouldn't affect compilation. The other error should be an easy fix...its a silly standards-compliance issue that VS doesn't enforce involving the use of spaces with CL_ tokens.

Post Reply