View previous topic :: View next topic |
Author |
Message |
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Sun Aug 10, 2008 0:20 Post subject: |
|
|
acaos wrote: | max196 wrote: | the funcs plugin can't be compiled
all the plugin seems to be correctly compliled included weapons plugin, except funcs plugin
maybe because funcs/makefile.in missing? |
The funcs plugin isn't linked into the main build yet. You'll have to cd to it and compile it manually.
Acaos |
make
gcc -g -Wall -Werror -O -pipe -march=i386 -D_REENTRANT -D_THREAD_SAFE -I. -I../.. -I../../include -I/usr/local/include -c -o funcs/other/f_IntToObject.o funcs/other/f_IntToObject.c
funcs/other/f_IntToObject.c:24: error: conflicting types for âFunc_IntToObjectâ
./NWNXFuncs.h:102: error: previous declaration of âFunc_IntToObjectâ was here
make: *** [funcs/other/f_IntToObject.o] Error 1 |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Sun Aug 10, 2008 0:27 Post subject: |
|
|
max196 wrote: |
make
gcc -g -Wall -Werror -O -pipe -march=i386 -D_REENTRANT -D_THREAD_SAFE -I. -I../.. -I../../include -I/usr/local/include -c -o funcs/other/f_IntToObject.o funcs/other/f_IntToObject.c
funcs/other/f_IntToObject.c:24: error: conflicting types for âFunc_IntToObjectâ
./NWNXFuncs.h:102: error: previous declaration of âFunc_IntToObjectâ was here
make: *** [funcs/other/f_IntToObject.o] Error 1 |
I have a fix for this, which I have just committed. I am looking into the weapons error here; I couldn't reproduce it on the first attempt.
Thanks,
Acaos |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Sun Aug 10, 2008 0:28 Post subject: |
|
|
weldieran wrote: | My live setup is 1.68 on an old version of nwnx. The old nwnx was modified slightly with those performance tweaks I mentioned in the "db" plugin. So now I'm just trying to update to 1.69 using your repository checkout, not making any modifications at all yet. The module, onLoad, executes a number of database queries then pipes the data from the queries into various hashsets. |
That seems odd. I can't find any obvious crashers in OnRequest.
Could you increase the debugging level to 4, and get the output of the nwnx_odbc.txt log as well? That might shed some light on which particular request is causing crashes.
Thanks,
Acaos |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Sun Aug 10, 2008 0:35 Post subject: |
|
|
max196 wrote: |
NWNX2lib: Init
NWNX2lib: org SetString() at 0x81f41b4, new SetString() at 0x9e1f00
NWNX2lib: org GetObj() at 0x81f40bc, new GetObj() at 0x9e1f28
* Parsing configuration...
NWN Extender v2.7-beta4
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2008 by virusman
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org
* Loading modules...
RESETPLUGIN plugin Registerred. |
That's not the latest, or you'd see 'Searching for signatures...' and the 'Registerred' typo would be fixed.
Acaos |
|
Back to top |
|
|
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Sun Aug 10, 2008 0:40 Post subject: |
|
|
acaos wrote: | max196 wrote: |
NWNX2lib: Init
NWNX2lib: org SetString() at 0x81f41b4, new SetString() at 0x9e1f00
NWNX2lib: org GetObj() at 0x81f40bc, new GetObj() at 0x9e1f28
* Parsing configuration...
NWN Extender v2.7-beta4
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2008 by virusman
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org
* Loading modules...
RESETPLUGIN plugin Registerred. |
That's not the latest, or you'd see 'Searching for signatures...' and the 'Registerred' typo would be fixed.
Acaos |
I just updated now but the error seems to be the same:
NWNX2lib: Init
NWNX2lib: org SetString() at 0x81f41b4, new SetString() at 0x3d9102
NWNX2lib: org GetObj() at 0x81f40bc, new GetObj() at 0x3d8a62
* Parsing configuration...
NWN Extender v2.7-beta4
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2008 by virusman
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...
RESETPLUGIN plugin registered.
FIXES plugin registered.
HASHSET plugin registered.
TMI plugin registered.
ODBC plugin registered.
EVENTS plugin registered.
LETO plugin registered.
STRUCTS plugin registered.
FUNCTIONS plugin registered.
MNX plugin registered.
ERROR: dlopen: ./nwnx_weapons.so: ./nwnx_weapons.so: undefined symbol: Func_IntToObject
* NWNX2 activated.
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004
Server: Loading...
Server: Running... |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Sun Aug 10, 2008 0:42 Post subject: |
|
|
max196 wrote: | I just updated now but the error seems to be the same: |
I -just- committed the fix for that right before your post. Sorry about that.
Acaos |
|
Back to top |
|
|
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Sun Aug 10, 2008 0:51 Post subject: |
|
|
acaos wrote: | max196 wrote: | I just updated now but the error seems to be the same: |
I -just- committed the fix for that right before your post. Sorry about that.
Acaos |
ok! it's working fine now:) |
|
Back to top |
|
|
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Sun Aug 10, 2008 0:56 Post subject: |
|
|
acaos wrote: | max196 wrote: |
make
gcc -g -Wall -Werror -O -pipe -march=i386 -D_REENTRANT -D_THREAD_SAFE -I. -I../.. -I../../include -I/usr/local/include -c -o funcs/other/f_IntToObject.o funcs/other/f_IntToObject.c
funcs/other/f_IntToObject.c:24: error: conflicting types for âFunc_IntToObjectâ
./NWNXFuncs.h:102: error: previous declaration of âFunc_IntToObjectâ was here
make: *** [funcs/other/f_IntToObject.o] Error 1 |
I have a fix for this, which I have just committed. I am looking into the weapons error here; I couldn't reproduce it on the first attempt.
Thanks,
Acaos |
Still can't compile funcs plugin, the error is the same:
make
gcc -g -Wall -Werror -O -pipe -march=i386 -D_REENTRANT -D_THREAD_SAFE -I. -I../.. -I../../include -I/usr/local/include -c -o funcs/other/f_IntToObject.o funcs/other/f_IntToObject.c
funcs/other/f_IntToObject.c:24: error: conflicting types for âFunc_IntToObjectâ
./NWNXFuncs.h:102: error: previous declaration of âFunc_IntToObjectâ was here
make: *** [funcs/other/f_IntToObject.o] Error 1 |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Sun Aug 10, 2008 1:02 Post subject: |
|
|
I committed the fix for that at the same time - could you try updating, please?
Acaos |
|
Back to top |
|
|
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Sun Aug 10, 2008 1:08 Post subject: |
|
|
ok, it's working fine now.
compiled it and started correctly in server. |
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Sun Aug 10, 2008 2:07 Post subject: |
|
|
What I can do with this issue?
cc1plus: warnings being treated as errors
NWNXWeapons.cpp:48: warning: deprecated conversion from string constant to 'char*'
NWNXWeapons.cpp:48: warning: deprecated conversion from string constant to 'char*'
NWNXWeapons.cpp:48: warning: deprecated conversion from string constant to 'char*'
NWNXWeapons.cpp:48: warning: deprecated conversion from string constant to 'char*'
NWNXWeapons.cpp:48: warning: deprecated conversion from string constant to 'char*'
NWNXWeapons.cpp:48: warning: deprecated conversion from string constant to 'char*'
NWNXWeapons.cpp: In constructor 'CNWNXWeapons::CNWNXWeapons()':
NWNXWeapons.cpp:81: warning: deprecated conversion from string constant to 'char*'
make: *** [NWNXWeapons.o] Error 1
cc1plus: warnings being treated as errors
NWNXFuncs.cpp: In constructor 'CNWNXFuncs::CNWNXFuncs()':
NWNXFuncs.cpp:30: warning: deprecated conversion from string constant to 'char*'
make: *** [NWNXFuncs.o] Error 1
Other plugins have this same warning but is not treated as error. |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Sun Aug 10, 2008 2:31 Post subject: |
|
|
Please redirect all weapon discussion to the nwnx_weapons thread so we don't threadjack this crash topic. I've answered you there.
Acaos |
|
Back to top |
|
|
weldieran
Joined: 05 Aug 2005 Posts: 71
|
Posted: Mon Aug 11, 2008 19:40 Post subject: |
|
|
I think my latest post got lost in the hijacking here it is again in case it was missed - clearly shows odbc as the culprit (i think)
acaos wrote: | And paste me the output of that GDB session.
Could you go into your setup a bit more? Are you trying to combine the current NWNX code with older plugins, or older NWNX base code with current plugins?
Acaos |
Here's the GDB output:
Quote: |
# gdb nwserver core.20047
GNU gdb Red Hat Linux (6.5-8.fc6rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /home/user/nwn/nwnx2.so...done.
Loaded symbols for ./nwnx2.so
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /home/user/nwn/nwnx_fixes.so...done.
Loaded symbols for ./nwnx_fixes.so
Reading symbols from /home/user/nwn/nwnx_functions.so...done.
Loaded symbols for ./nwnx_functions.so
Reading symbols from /home/user/nwn/nwnx_chat.so...done.
Loaded symbols for ./nwnx_chat.so
Reading symbols from /home/user/nwn/nwnx_leto.so...done.
Loaded symbols for ./nwnx_leto.so
Reading symbols from /home/user/nwn/LetoScript.so...done.
Loaded symbols for ./LetoScript.so
Reading symbols from /home/user/nwn/nwnx_resetplugin.so...done.
Loaded symbols for ./nwnx_resetplugin.so
Reading symbols from /home/user/nwn/nwnx_tmi.so...done.
Loaded symbols for ./nwnx_tmi.so
Reading symbols from /home/user/nwn/nwnx_structs.so...done.
Loaded symbols for ./nwnx_structs.so
Reading symbols from /home/user/nwn/nwnx_resman.so...done.
Loaded symbols for ./nwnx_resman.so
Reading symbols from /home/user/nwn/nwnx_odbc.so...done.
Loaded symbols for ./nwnx_odbc.so
Reading symbols from /usr/lib/mysql/libmysqlclient.so.15...done.
Loaded symbols for /usr/lib/mysql/libmysqlclient.so.15
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libssl.so.6...done.
Loaded symbols for /lib/libssl.so.6
Reading symbols from /lib/libcrypto.so.6...done.
Loaded symbols for /lib/libcrypto.so.6
Reading symbols from /usr/lib/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libkrb5.so.3...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /lib/libcom_err.so.2...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/lib/libkrb5support.so.0...done.
Loaded symbols for /usr/lib/libkrb5support.so.0
Reading symbols from /home/user/nwn/nwnx_hashset.so...done.
Loaded symbols for ./nwnx_hashset.so
Reading symbols from /home/user/nwn/nwnx_mnx.so...done.
Loaded symbols for ./nwnx_mnx.so
Reading symbols from /home/user/nwn/nwnx_events.so...done.
Loaded symbols for ./nwnx_events.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Core was generated by `/home/user/nwn/nwserver -module test -maxclients 2 -pvp 1 -servervault 1 -e'.
Program terminated with signal 11, Segmentation fault.
#0 0x00427913 in CNWNXmysql::OnRequest () from ./nwnx_odbc.so
|
My live setup is 1.68 on an old version of nwnx. The old nwnx was modified slightly with those performance tweaks I mentioned in the "db" plugin. So now I'm just trying to update to 1.69 using your repository checkout, not making any modifications at all yet. The module, onLoad, executes a number of database queries then pipes the data from the queries into various hashsets. |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Mon Aug 11, 2008 19:43 Post subject: |
|
|
That seems to be the same as your last post - here's my reply:
Could you increase the debugging level to 4, and get the output of the nwnx_odbc.txt log as well? That might shed some light on which particular request is causing crashes.
Thanks,
Acaos |
|
Back to top |
|
|
weldieran
Joined: 05 Aug 2005 Posts: 71
|
Posted: Mon Aug 11, 2008 20:13 Post subject: |
|
|
acaos wrote: | That seems to be the same as your last post - here's my reply:
Could you increase the debugging level to 4, and get the output of the nwnx_odbc.txt log as well? That might shed some light on which particular request is causing crashes.
Thanks,
Acaos |
Ahhh I guess i missed that inbetween the others
Here's the nwx_odbc.txt file, from that very same gdb output as before, already had logging up to 4, below is the total log.
Quote: |
Request: SPACER
Params : ......................................................................................................................................................................................................................................................
...............................................................................................................................................................................................................................................................
...............................................................................................................................................................................................................................................................
...............................................................................................................................................................................................................................................................
.........
Results: ......................................................................................................................................................................................................................................................
...............................................................................................................................................................................................................................................................
...............................................................................................................................................................................................................................................................
...............................................................................................................................................................................................................................................................
.........
Request: EXEC
Params : CREATE TABLE IF NOT EXISTS `users` ( autoid int(11) NOT NULL auto_increment, username varchar(64) NOT NULL, created_dt datetime default NULL, l
st_logged_dt timestamp NOT NULL, serialkey text, PRIMARY KEY (autoid), INDEX (username) ) TYPE=MyISAM DEFAU
T CHARSET=latin1;
|
As you can see, its just the sql that creates my database tables in case they are not already done so.
This is the first SQL call the module makes. |
|
Back to top |
|
|
|