logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Problems compiling nwnx2
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
MetaPhaze



Joined: 03 Jun 2007
Posts: 29
Location: USA

PostPosted: Thu Dec 30, 2010 0:57    Post subject: strace output Reply with quote

I'm examining the logs of the strace I attached to my server process.
There are two logins in this file, although I'm really a beginner with debugging tools and will probably need a hand figuring out what I've got recorded here.
The first login is a dm login and the second is a player.

http://mystrix.homelinux.org/downloads/strace-log.txt
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Paul R



Joined: 17 Apr 2009
Posts: 42

PostPosted: Thu Dec 30, 2010 16:02    Post subject: Reply with quote

When you say you managed to get past the building now was this building cleanly and re-building everything or did you have to hack around a bit?

Reason being is "undefined symbols" are a symptom of something not compiling correctly and being ignored which comes round and rears it's head when you try and use them.

The NWNX!SYSTEM! functions are in nwnx_system.so which I can't see in your list of loaded objects.

edit:

Just spotted something not mentioned in the configure output, the strace has stat64() function being called. Are you using 32 or 64 bit?
_________________
oops
Back to top
View user's profile Send private message
MetaPhaze



Joined: 03 Jun 2007
Posts: 29
Location: USA

PostPosted: Fri Dec 31, 2010 6:38    Post subject: Reply with quote

Quote:
When you say you managed to get past the building now was this building cleanly and re-building everything or did you have to hack around a bit?


I did a complete removal of my old source, and checked out the trunk again... then i compiled with the install.sh script, and noticed that nwnx_ruby.so was missing... i looked around and found that it wasn't configured properly in Makefile.in so i added the appropriate line... and compiled again... 3 of those errors disappeared and ruby started working again. Only 3 errors left now.

Quote:
Reason being is "undefined symbols" are a symptom of something not compiling correctly and being ignored which comes round and rears it's head when you try and use them.


Yeah, an undefined symbol means that no function with that symbol name can not be found... it's happening at run time and not compile time which is throwing everyone that i ask for help for a loop, and me as well.

I'm not sure if it's compiling correctly or not, i'm no expert but everything else on that system works flawlessly... the entire system has been compiled with the compiler that is installed... I don't know how much you know of gentoo but i've done emerge -e system 2 times and emerge -e world 2 times and revdep-rebuild says everything is normal... i've run the lafilefixer to fix all the .la files to the new standards. So for the short version.. the compiler in question has compiled 1086(?) packages (everything installed) twice with no problems... it's funny that adding:
plugins/ruby \
to the Makefile.in would fix errors that were showing up in other plugins.


Quote:
The NWNX!SYSTEM! functions are in nwnx_system.so which I can't see in your list of loaded objects.



Updated Startup Sequence.

NWNX2lib: Init
NWNX2lib: org SetString() at 0x81f41b4, new SetString() at 0xb775ecaf
NWNX2lib: org GetObj() at 0x81f40bc, new GetObj() at 0xb775ecd6
* Parsing configuration...
NWN Extender v2.7.1-dev
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2009 by virusman and Acaos
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org

* Searching for signatures...
* Loading modules...
HASHSET plugin registered.
FIXES plugin registered.
LETO plugin registered.
AREAS plugin registered.
FUNCTIONS plugin registered.
NWNX Ruby Initialized
RUBY plugin registered.
MNX plugin registered.
SYSTEM plugin registered.
TMI plugin registered.
ERROR: dlopen: ./nwnx_weapons.so: ./nwnx_weapons.so: undefined symbol: WeaponsStrCommandLookup
EVENTS plugin registered.
TWEAKS plugin registered.
ODBC plugin registered.
PROFILER plugin registered.
RESMAN plugin registered.
FUNCS plugin registered.
ERROR: dlopen: ./nwnx_defenses.so: ./nwnx_defenses.so: undefined symbol: DefensesStrCommandLookup
RESETPLUGIN plugin registered.
CHAT plugin registered.
ERROR: dlopen: ./nwnx_structs.so: ./nwnx_structs.so: undefined symbol: StructsStrCommandLookup
SPELLS plugin registered.
* NWNX2 activated.
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004

Server: Loading...
Server: Running...

Server: Loading module "mystrixonline_com_v3_1".............................................................................................................................................................................................................................................................................................................................................................................................................................................................
Server: Module loaded
INIT(S): valid ret=0x082041ec
INIT(O): valid ret=0x08203e79
INIT(S): reset ignored ret=0x082041ec


Quote:
edit:

Just spotted something not mentioned in the configure output, the strace has stat64() function being called. Are you using 32 or 64 bit?


I'm running 32 bit with PAE
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
MetaPhaze



Joined: 03 Jun 2007
Posts: 29
Location: USA

PostPosted: Fri Dec 31, 2010 6:47    Post subject: Reply with quote

Note:
I normally don't compile with ./install.sh

Usually I build from source with

cd /home/nwn/src
svn co http://nwn.virusman.ru/svn/nwnx2-linux/trunk/ .
./configure --prefix="/home/nwn" --with-extraplugins="plugins/leto"
make
mv ./nwnx2.so /home/nwn/
mv ./plugins/*/*.so /home/nwn/

then i fire up the server to test

this time i had to change Makefile.in, in the working build directory src.

it contained
SUBDIRS = \
plugins/areas \
plugins/chat \
plugins/defenses \
plugins/events \
plugins/fixes \
plugins/funcs \
plugins/functions \
plugins/hashset \
plugins/mnx \
plugins/odmbc \
plugins/profiler \
plugins/reset \
plugins/resman \
plugins/spells \
plugins/structs \
plugins/tmi \
plugins/tweaks \
plugins/weapons \
@EXTRAPLUGINDIRS@

if you check out the trunk you'll find this true.

I changed it to
SUBDIRS = \
plugins/areas \
plugins/chat \
plugins/defenses \
plugins/events \
plugins/fixes \
plugins/funcs \
plugins/functions \
plugins/hashset \
plugins/mnx \
plugins/odmbc \
plugins/profiler \
plugins/reset \
plugins/resman \
plugins/ruby \
plugins/spells \
plugins/structs \
plugins/tmi \
plugins/tweaks \
plugins/weapons \
@EXTRAPLUGINDIRS@

and it fixed 3 problems.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
MetaPhaze



Joined: 03 Jun 2007
Posts: 29
Location: USA

PostPosted: Fri Dec 31, 2010 6:54    Post subject: Reply with quote

I can reproduce this, and i can screen cast it for you if you wish to see for yourself.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Paul R



Joined: 17 Apr 2009
Posts: 42

PostPosted: Fri Dec 31, 2010 13:52    Post subject: Reply with quote

Sorry going away for new year so won't be able to reply, going back to the undefined symbol error. When you have everything from svn are there any stray .o files around?

Taking the defenses plugin as an example that function is listed in the following files under nwnx2-linux/trunk/plugins/defenses/ in my case:

Code:
-rw-r--r-- 1 root root    7370 2009-11-12 20:23 DefensesStrCmds.h
-rw-r--r-- 1 root root    5224 2010-12-19 17:22 Makefile
-rw-r--r-- 1 root root    5209 2010-03-29 13:12 Makefile.in
-rw-r--r-- 1 root root   20323 2010-03-29 13:12 NWNXDefenses.cpp
-rw-r--r-- 1 root root   15396 2010-06-25 17:29 NWNXDefenses.o
-rwxr-xr-x 1 root root 1172972 2010-06-25 17:29 nwnx_defenses.so


on gcc (Ubuntu 4.3.2-1ubuntu12) 4.3.2 though

edited to add:

When adding extra modules to the list I use the --with-extraplugins option rather than edit the configure.in file in case that is updated in the build.

Code:
sh ./configure --with-extraplugins="plugins/system plugins/ruby plugins/areas"

_________________
oops
Back to top
View user's profile Send private message
MetaPhaze



Joined: 03 Jun 2007
Posts: 29
Location: USA

PostPosted: Fri Dec 31, 2010 18:53    Post subject: Reply with quote

ruby was broken... it would not compile even when i added --with-extraplugins="plugins/ruby"...

For that reason alone, I modified Makefile.in.... had ruby compiled when i used --with-extraplugins="plugins/ruby" I wouldn't have needed to modify it.

if i don't add plugins/ruby \ to Makefile.in the only thing that happens with the ruby plugin is that configure lists it twice in the config.status: creating plugins/ruby/Makefile... and never compiles it.
I'm not sure why ubuntu over looks this obvious error, but every other plugin is listed in Makefile.in... the same files are listed in Configure.ac
Makefile.in is missing the ruby module.

I'm installing ubuntu 10 and sabayon in some virtual boxes so i can try compiling there.

I usually make clean or make distclean when i get new source... even with my kernels... so there shouldn't be any .o files laying around... I did notice that when i make distclean that it was erasing some .h files
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Calvinthesneak



Joined: 15 Nov 2010
Posts: 14

PostPosted: Sun Jan 16, 2011 0:08    Post subject: Reply with quote

Right, so I'm having issues myself.



Code:

~/nwn/src$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 for void *... yes
checking size of void *... 8
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++... 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 for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
configure cannot find necessary include files.
wolfman@wolfman-laptop:~/nwn/src$ ./configure --prefix="/home/nwn"
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 for void *... yes
checking size of void *... 8
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++... 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 for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
configure cannot find necessary include files.


So no libraries compile, I attempted an edit on Makefile.in but it lead to complaints about distclean.

I am running:
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5

make 3.81

svn 1.6.12

Running on Ubuntu 64 bit 10.10
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Jan 16, 2011 11:52    Post subject: Reply with quote

instal g++ and zlib1g-dev
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Calvinthesneak



Joined: 15 Nov 2010
Posts: 14

PostPosted: Sun Jan 16, 2011 15:13    Post subject: Reply with quote

I've got them both installed. 4.4.5 for g++, zlib1g-dev 1.2.3.4.

Same output as before, configure cannot find necessary include files.
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Jan 16, 2011 20:34    Post subject: Reply with quote

Try:
g++ --version
what's the output?
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Calvinthesneak



Joined: 15 Nov 2010
Posts: 14

PostPosted: Sun Jan 16, 2011 22:55    Post subject: Reply with quote

Code:

./configure --prefix="/home/nwn"
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 for void *... yes
checking size of void *... 8
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... no
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
configure cannot find necessary include files.



g++ --version
g++ (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.

gcc --version
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.

svn --version
svn, version 1.6.12 (r955767)
compiled Jul 8 2010, 14:54:54

make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.


I'm going to guess my issue is with filelock?
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Jan 17, 2011 0:14    Post subject: Reply with quote

Install libc6-dev.
When configure fails, search for "no" in the checklist. Now fcntl.h is missing, and it's provided by libc6-dev.
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Calvinthesneak



Joined: 15 Nov 2010
Posts: 14

PostPosted: Mon Jan 17, 2011 3:35    Post subject: Reply with quote

An issue with libstdc++

EDIT: I applied a symlink like so: sudo ln -s /usr/lib32/libstdc++.so.6 /usr/lib32/libstdc++.so


Code:

./install.sh
bash: ./install.sh: No such file or directory
wolfman@wolfman-mobile:~/nwn/src/compiled$ cd ..
wolfman@wolfman-mobile:~/nwn/src$ ./install.sh
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 for void *... yes
checking size of void *... 8
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/events/Makefile
config.status: creating plugins/fixes/Makefile
config.status: creating plugins/funcs/Makefile
config.status: creating plugins/functions/Makefile
config.status: creating plugins/hashset/Makefile
config.status: creating plugins/mnx/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/weapons/Makefile
config.status: creating config.h
config.status: config.h is unchanged
g++  -mtune=i386 -pipe -m32  -Iinclude -DHAVE_CONFIG_H  -c -o nwnx2lib.o nwnx2lib.cpp
nwnx2lib.cpp: In constructor ‘startstop::startstop()’:
nwnx2lib.cpp:658: warning: format ‘%p’ expects type ‘void*’, but argument 2 has type ‘long unsigned int’
nwnx2lib.cpp:658: warning: format ‘%p’ expects type ‘void*’, but argument 3 has type ‘long unsigned int’
nwnx2lib.cpp:660: warning: format ‘%p’ expects type ‘void*’, but argument 2 has type ‘long unsigned int’
nwnx2lib.cpp:660: warning: format ‘%p’ expects type ‘void*’, but argument 3 has type ‘long unsigned int’
nwnx2lib.cpp: Assembler messages:
nwnx2lib.cpp:463: Warning: indirect jmp without `*'
nwnx2lib.cpp:497: Warning: indirect jmp without `*'
g++  -mtune=i386 -pipe -m32  -Iinclude -DHAVE_CONFIG_H  -c -o NWNXBase.o NWNXBase.cpp
g++  -mtune=i386 -pipe -m32  -Iinclude -DHAVE_CONFIG_H  -c -o gline.o gline.cpp
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32  -Iinclude -DHAVE_CONFIG_H  -c -o lib/nwn_data.o lib/nwn_data.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32  -Iinclude -DHAVE_CONFIG_H  -c -o lib/nwn_funcs.o lib/nwn_funcs.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32  -Iinclude -DHAVE_CONFIG_H  -c -o lib/nwn_hooks.o lib/nwn_hooks.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32  -Iinclude -DHAVE_CONFIG_H  -c -o lib/nx_hook.o lib/nx_hook.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32  -Iinclude -DHAVE_CONFIG_H  -c -o lib/nx_log.o lib/nx_log.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32  -Iinclude -DHAVE_CONFIG_H  -c -o lib/nx_safe.o lib/nx_safe.c
cc -mtune=i386 -pipe -m32 -g -O2 -Iinclude -DHAVE_CONFIG_H -mtune=i386 -pipe -m32  -Iinclude -DHAVE_CONFIG_H  -c -o lib/nx_signature.o lib/nx_signature.c
g++ -w -fPIC -shared -W -Wall -m32  -o nwnx2.so nwnx2lib.o NWNXBase.o gline.o lib/nwn_data.o lib/nwn_funcs.o lib/nwn_hooks.o lib/nx_hook.o lib/nx_log.o lib/nx_safe.o lib/nx_signature.o -ldl
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [nwnx2.so] Error 1
mv: cannot stat `./nwnx2.so': No such file or directory
mv: cannot stat `./plugins/*/*.so': No such file or directory
for i in plugins/areas plugins/chat plugins/defenses plugins/events plugins/fixes plugins/funcs plugins/functions plugins/hashset plugins/mnx plugins/odmbc plugins/profiler plugins/reset plugins/resman plugins/spells plugins/structs plugins/tmi plugins/tweaks plugins/weapons ; do make -C $i clean; done
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/areas'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/areas'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/chat'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/chat'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/defenses'
/bin/rm -f *.o */*.o *.so
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/defenses'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/events'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/events'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/fixes'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/fixes'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/funcs'
/bin/rm -f *.o *.so funcs/*/*.o
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/funcs'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/functions'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/functions'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/hashset'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/hashset'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/mnx'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/mnx'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/odmbc'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/odmbc'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/profiler'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/profiler'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/reset'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/reset'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/resman'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/resman'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/spells'
/bin/rm -f *.o */*.o *.so
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/spells'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/structs'
/bin/rm -f *.o */*.o *.so
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/structs'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/tmi'
/bin/rm -f *.o *.so *~
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/tmi'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/tweaks'
/bin/rm -f *.o */*.o *.so
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/tweaks'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/weapons'
/bin/rm -f *.o */*.o *.so
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/weapons'
/bin/rm -f *.o *.so lib/*.o *~
for i in plugins/areas plugins/chat plugins/defenses plugins/events plugins/fixes plugins/funcs plugins/functions plugins/hashset plugins/mnx plugins/odmbc plugins/profiler plugins/reset plugins/resman plugins/spells plugins/structs plugins/tmi plugins/tweaks plugins/weapons ; do make -C $i distclean; done
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/areas'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/areas'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/chat'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/chat'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/defenses'
/bin/rm -f *.o */*.o *.so
/bin/rm -f .depend DefensesStrCmds.h DefensesObjCmds.h
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/defenses'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/events'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/events'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/fixes'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/fixes'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/funcs'
/bin/rm -f *.o *.so funcs/*/*.o
/bin/rm -f .depend FuncsStrCmds.h FuncsObjCmds.h
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/funcs'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/functions'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/functions'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/hashset'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/hashset'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/mnx'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/mnx'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/odmbc'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/odmbc'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/profiler'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/profiler'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/reset'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/reset'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/resman'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/resman'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/spells'
/bin/rm -f *.o */*.o *.so
/bin/rm -f .depend SpellsStrCmds.h SpellsObjCmds.h
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/spells'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/structs'
/bin/rm -f *.o */*.o *.so
/bin/rm -f .depend StructsStrCmds.h StructsObjCmds.h
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/structs'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/tmi'
/bin/rm -f *.o *.so *~
/bin/rm -f Makefile
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/tmi'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/tweaks'
/bin/rm -f *.o */*.o *.so
/bin/rm -f .depend TweaksStrCmds.h TweaksObjCmds.h
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/tweaks'
make[1]: Entering directory `/home/wolfman/nwn/src/plugins/weapons'
/bin/rm -f *.o */*.o *.so
/bin/rm -f .depend WeaponsStrCmds.h WeaponsObjCmds.h
make[1]: Leaving directory `/home/wolfman/nwn/src/plugins/weapons'
/bin/rm -f Makefile config.h config.status config.cache config.log *.o *.so lib/*.o *~
NWNX has been compiled. Look in the 'compiled' directory for the libraries - these should be copied into your NWN directory. Change NWNX2.ini and nwnstartup.sh to match your server's settings.
Back to top
View user's profile Send private message
Calvinthesneak



Joined: 15 Nov 2010
Posts: 14

PostPosted: Mon Jan 17, 2011 8:59    Post subject: Reply with quote

I do belive it compiled for me at long last, after messing around with a lot of 32 bit libraries....

I had to get dev libs for sql.
Quote:

sudo getlibs -l libmysqlclient.so


EDIT: getlibs info is here getlibs

I also had to download gperf

In my compiled directory I wound up with:



nwnstartup.sh
nwnx2.so
nwnx_chat.so
nwnx_events.so
nwnx_funcs.so
nwnx_hashset.so
nwnx_odbc.so
nwnx_resetplugin.so
nwnx_spells.so
nwnx_tmi.so
nwnx_weapons.so
nwnx2.ini
nwnx_areas.so
nwnx_defenses.so
nwnx_fixes.so
nwnx_functions.so
nwnx_mnx.so
nwnx_profiler.so
nwnx_resman.so
nwnx_structs.so
nwnx_tweaks.so


Last edited by Calvinthesneak on Fri Apr 22, 2011 7:58; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group