View previous topic :: View next topic |
Author |
Message |
NessTea
Joined: 06 Jun 2013 Posts: 9
|
Posted: Thu Jun 06, 2013 1:40 Post subject: NWNX Linux 2.8 compile error |
|
|
Hi! I am trying to compile everything here:
https://github.com/NWNX/nwnx2-linux
I am running Ubuntu 13.04 server 32bit with all the listed packages installed. Here is my SSH client log...
... but I keep getting an error at the end:
Code: | nwn@NWN-Server:/opt/nwn$ ./install.sh
Hello. I'll be trying to help you compile nwnx2 successfully.
If you want to build any out-of-tree plugins press CTRL-C now and
give them to me as arguments (for example: ./install.sh jvm)
Database support: Do you want mySQL, sqlite3, or pgsql, or none [mspn]? mySQL
Selecting mysql as the database plugin to build.
If you have problems and think that something leftover from a
previous build is interfering, try running 'make clean' before
atempting another build.
Please make sure the following packages are installed:
autoconf make build-essential gcc g++ zlib1g-dev libmysqlclient16 libmysqlclient-dev (on Debian and Ubuntu, YMMV.)
And then press enter when ready.
mkdir: created directory â./compiled/â
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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of void *... 4
checking for a sed that does not truncate output... /bin/sed
checking whether the C compiler accepts the -mtune=i386 flag... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for bzero... yes
checking for getspnam... yes
checking for inflateEnd in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating plugins/areas/Makefile
config.status: creating plugins/chat/Makefile
config.status: creating plugins/defenses/Makefile
config.status: creating plugins/dmactions/Makefile
config.status: creating plugins/events/Makefile
config.status: creating plugins/extend/Makefile
config.status: creating plugins/fixes/Makefile
config.status: creating plugins/funcs/Makefile
config.status: creating plugins/funcsext/Makefile
config.status: creating plugins/functions/Makefile
config.status: creating plugins/hashset/Makefile
config.status: creating plugins/jvm/Makefile
config.status: creating plugins/lua/Makefile
config.status: creating plugins/mnx/Makefile
config.status: creating plugins/names/Makefile
config.status: creating plugins/odmbc/Makefile
config.status: creating plugins/profiler/Makefile
config.status: creating plugins/reset/Makefile
config.status: creating plugins/resman/Makefile
config.status: creating plugins/ruby/Makefile
config.status: creating plugins/spells/Makefile
config.status: creating plugins/structs/Makefile
config.status: creating plugins/system/Makefile
config.status: creating plugins/tmi/Makefile
config.status: creating plugins/tweaks/Makefile
config.status: creating plugins/vaultster/Makefile
config.status: creating plugins/visibility/Makefile
config.status: creating plugins/weapons/Makefile
config.status: creating config.h
config.status: config.h is unchanged
make -C plugins/areas PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/areas'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/areas'
make -C plugins/chat PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/chat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/chat'
make -C plugins/defenses PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/defenses'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/defenses'
make -C plugins/dmactions PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/dmactions'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/dmactions'
make -C plugins/events PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/events'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/events'
make -C plugins/extend PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/extend'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/extend'
make -C plugins/fixes PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/fixes'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/fixes'
make -C plugins/funcs PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/funcs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/funcs'
make -C plugins/funcsext PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/funcsext'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/funcsext'
make -C plugins/functions PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/functions'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/functions'
make -C plugins/hashset PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/hashset'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/hashset'
make -C plugins/mnx PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/mnx'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/mnx'
make -C plugins/names PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/names'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/names'
make -C plugins/odmbc PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/odmbc'
rm *.o
make MYSQL_SUPPORT=1 nwnx_odbc_mysql_dynamic.so nwnx_odbc_mysql_static.so
make[2]: Entering directory `/opt/nwn/plugins/odmbc'
g++ -mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H -I../.. -DMYSQL_SUPPORT -c -o HookSCORCO.o HookSCORCO.cpp
g++ -mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H -I../.. -DMYSQL_SUPPORT -c -o CExoString.o CExoString.cpp
g++ -mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H -I../.. -DMYSQL_SUPPORT -c -o ObjectStorage.o ObjectStorage.cpp
g++ -mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H -I../.. -DMYSQL_SUPPORT -c -o NWNXodbc.o NWNXodbc.cpp
NWNXodbc.cpp: In member function âvirtual char* CNWNXODBC::OnRequest(char*, char*, char*)â:
NWNXodbc.cpp:223:62: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
NWNXodbc.cpp:241:66: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
NWNXodbc.cpp: In member function âunsigned char* CNWNXODBC::ReadSCO(const char*, const char*, char*, int*, int*)â:
NWNXodbc.cpp:455:2: warning: converting to non-pointer type âintâ from NULL [-Wconversion-null]
g++ -mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H -I../.. -DMYSQL_SUPPORT -c -o plugin-odbc.o plugin-odbc.cpp
plugin-odbc.cpp:35:1: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
plugin-odbc.cpp:35:1: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
plugin-odbc.cpp:35:1: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
plugin-odbc.cpp:35:1: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
plugin-odbc.cpp:35:1: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
plugin-odbc.cpp:35:1: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
g++ -mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H -I../.. -DMYSQL_SUPPORT -c -o mysql.o mysql.cpp
g++ -w -fPIC -shared -W -Wall -o nwnx_odbc_mysql_dynamic.so HookSCORCO.o CExoString.o ObjectStorage.o NWNXodbc.o plugin-odbc.o mysql.o -lz -lmysqlclient
g++ -w -fPIC -shared -W -Wall -o nwnx_odbc_mysql_static.so HookSCORCO.o CExoString.o ObjectStorage.o NWNXodbc.o plugin-odbc.o mysql.o /usr/lib/i386-linux-gnu/libmysqlclient.a -lz -lm
make[2]: Leaving directory `/opt/nwn/plugins/odmbc'
make[1]: Leaving directory `/opt/nwn/plugins/odmbc'
make -C plugins/profiler PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/profiler'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/profiler'
make -C plugins/reset PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/reset'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/reset'
make -C plugins/resman PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/resman'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/nwn/plugins/resman'
make -C plugins/spells PLUGIN_CFLAGS="-mtune=i386 -pipe -g -O2 -Iinclude -DHAVE_CONFIG_H" PLUGIN_CPPFLAGS="-mtune=i386 -pipe -Iinclude -DHAVE_CONFIG_H" PLUGIN_LFLAGS="-w -fPIC -shared -W -Wall "
make[1]: Entering directory `/opt/nwn/plugins/spells'
gcc -mtune=i386 -pipe -g -O2 -Wall -Werror -D_REENTRANT -D_THREAD_SAFE -I. -I.. -I../.. -I ../../include -I/usr/local/include -mtune=i386 -pipe -Wall -Werror -D_REENTRANT -D_THREAD_SAFE -I. -I.. -I../.. -I ../../include -I/usr/local/include -c -o hooks/h_ComputeSpellRange.o hooks/h_ComputeSpellRange.c
hooks/h_ComputeSpellRange.c: In function âHook_GetSpellRangeâ:
hooks/h_ComputeSpellRange.c:36:10: error: variable âno_bonusâ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [hooks/h_ComputeSpellRange.o] Error 1
make[1]: Leaving directory `/opt/nwn/plugins/spells'
make: *** [plugins/spells] Error 2
nwn@NWN-Server:/opt/nwn$
|
|
|
Back to top |
|
|
NessTea
Joined: 06 Jun 2013 Posts: 9
|
Posted: Thu Jun 06, 2013 3:57 Post subject: |
|
|
I took out the -Werror flags on the two scripts I had problems with. It said it compiled, but it crashed with a segmentation fault (core dump). Is that because the files are 32bit or something? |
|
Back to top |
|
|
pixelord
Joined: 24 Oct 2011 Posts: 15
|
Posted: Fri Jun 21, 2013 13:00 Post subject: Having same problem |
|
|
I am having same problem.
Some of the plugin makefile.ini looks like missing install rule.
But other than that was having same issue ... _________________ Pixelord |
|
Back to top |
|
|
pixelord
Joined: 24 Oct 2011 Posts: 15
|
Posted: Fri Jun 21, 2013 13:21 Post subject: got it running |
|
|
some of the plugin makefile.ini is missing install rule.
So you can add those and the problem should be resolved. _________________ Pixelord |
|
Back to top |
|
|
NessTea
Joined: 06 Jun 2013 Posts: 9
|
Posted: Sun Jun 23, 2013 22:42 Post subject: |
|
|
im a linux derp. not sure how to do that lol |
|
Back to top |
|
|
domaine
Joined: 27 Mar 2008 Posts: 16
|
Posted: Wed Jun 26, 2013 12:57 Post subject: |
|
|
try compiling it on a debian 6.0.0.7 then copy the compiled on the ubuntu
don't know if it work for you but i'm able to compile on debian and then move the result on mint 18 |
|
Back to top |
|
|
|