Версия для печати темы

Нажмите сюда для просмотра этой темы в обычном формате

MyDC.ru _ Технические вопросы по RusHub'у _ Сборка

Автор: ShadoWx 19.2.2012, 3:34

Код_
Код
*** glibc detected *** ./RusHub: free(): invalid pointer: 0x080ae92c ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6(+0x6b381)[0xb7582381]
/lib/i686/cmov/libc.so.6(+0x6cbd8)[0xb7583bd8]
/lib/i686/cmov/libc.so.6(cfree+0x6d)[0xb7586cbd]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb775e701]
/usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0xb775e75d]
./plugins/lua.so(_ZN9LuaPlugin11loadScriptsEv+0x230)[0xb736d530]
./plugins/lua.so(_ZN9LuaPlugin6onLoadEPN8dcserver12DcServerBaseE+0x535)[0xb736e1                                           25]
./RusHub[0x806faad]
./RusHub[0x80701cd]
./RusHub[0x8070731]
./RusHub[0x807a0ea]
./RusHub[0x807ec42]
./RusHub[0x807ef6f]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb752dca6]
./RusHub[0x804c281]
======= Memory map: ========
08048000-080ae000 r-xp 00000000 fe:00 397067     /home/shadowx/rushub_bin/RusHub
080ae000-080af000 rw-p 00066000 fe:00 397067     /home/shadowx/rushub_bin/RusHub
080af000-080e0000 rw-p 00000000 00:00 0
0a06b000-0a14f000 rw-p 00000000 00:00 0          [heap]
b6f00000-b6f21000 rw-p 00000000 00:00 0
b6f21000-b7000000 ---p 00000000 00:00 0
b70bf000-b70c9000 r-xp 00000000 fe:00 141619     /lib/i686/cmov/libnss_files-2.1                                           1.3.so
b70c9000-b70ca000 r--p 00009000 fe:00 141619     /lib/i686/cmov/libnss_files-2.1                                           1.3.so
b70ca000-b70cb000 rw-p 0000a000 fe:00 141619     /lib/i686/cmov/libnss_files-2.1                                           1.3.so
b70cb000-b70de000 r-xp 00000000 fe:00 533337     /usr/lib/libz.so.1.2.3.4
b70de000-b70df000 rw-p 00013000 fe:00 533337     /usr/lib/libz.so.1.2.3.4
b70df000-b70f2000 r-xp 00000000 fe:00 141616     /lib/i686/cmov/libnsl-2.11.3.so
b70f2000-b70f3000 r--p 00012000 fe:00 141616     /lib/i686/cmov/libnsl-2.11.3.so
b70f3000-b70f4000 rw-p 00013000 fe:00 141616     /lib/i686/cmov/libnsl-2.11.3.so
b70f4000-b70f6000 rw-p 00000000 00:00 0
b70f6000-b70ff000 r-xp 00000000 fe:00 141617     /lib/i686/cmov/libcrypt-2.11.3.                                           so
b70ff000-b7100000 r--p 00008000 fe:00 141617     /lib/i686/cmov/libcrypt-2.11.3.                                           so
b7100000-b7101000 rw-p 00009000 fe:00 141617     /lib/i686/cmov/libcrypt-2.11.3.                                           so
b7101000-b7128000 rw-p 00000000 00:00 0
b7128000-b72da000 r-xp 00000000 fe:00 533488     /usr/lib/libmysqlclient.so.16.0                                           .0
b72da000-b72de000 r--p 001b1000 fe:00 533488     /usr/lib/libmysqlclient.so.16.0                                           .0
b72de000-b7323000 rw-p 001b5000 fe:00 533488     /usr/lib/libmysqlclient.so.16.0                                           .0
b7323000-b7324000 rw-p 00000000 00:00 0
b732b000-b7350000 r-xp 00000000 fe:00 532265     /usr/lib/liblua5.1.so.0.0.0
b7350000-b7351000 rw-p 00024000 fe:00 532265     /usr/lib/liblua5.1.so.0.0.0
b7351000-b7381000 r-xp 00000000 fe:00 396045     /home/shadowx/rushub_bin/plugin                                           s/lua.so
b7381000-b7382000 rw-p 0002f000 fe:00 396045     /home/shadowx/rushub_bin/plugin                                           s/lua.so
b7382000-b74f7000 r--p 00000000 fe:00 525315     /usr/lib/locale/locale-archive
b74f7000-b74f9000 rw-p 00000000 00:00 0
b74f9000-b74fd000 r-xp 00000000 fe:00 292        /lib/libattr.so.1.1.0
b74fd000-b74fe000 rw-p 00003000 fe:00 292        /lib/libattr.so.1.1.0
b74fe000-b7513000 r-xp 00000000 fe:00 141623     /lib/i686/cmov/libpthread-2.11.                                           3.so
b7513000-b7514000 r--p 00014000 fe:00 141623     /lib/i686/cmov/libpthread-2.11.                                           3.so
b7514000-b7515000 rw-p 00015000 fe:00 141623     /lib/i686/cmov/libpthread-2.11.                                           3.so
b7515000-b7517000 rw-p 00000000 00:00 0
b7517000-b7657000 r-xp 00000000 fe:00 141634     /lib/i686/cmov/libc-2.11.3.so
b7657000-b7658000 ---p 00140000 fe:00 141634     /lib/i686/cmov/libc-2.11.3.so
b7658000-b765a000 r--p 00140000 fe:00 141634     /lib/i686/cmov/libc-2.11.3.so
b765a000-b765b000 rw-p 00142000 fe:00 141634     /lib/i686/cmov/libc-2.11.3.so
b765b000-b765f000 rw-p 00000000 00:00 0
b765f000-b767c000 r-xp 00000000 fe:00 289        /lib/libgcc_s.so.1
b767c000-b767d000 rw-p 0001c000 fe:00 289        /lib/libgcc_s.so.1
b767d000-b76a1000 r-xp 00000000 fe:00 141613     /lib/i686/cmov/libm-2.11.3.so
b76a1000-b76a2000 r--p 00023000 fe:00 141613     /lib/i686/cmov/libm-2.11.3.so
b76a2000-b76a3000 rw-p 00024000 fe:00 141613     /lib/i686/cmov/libm-2.11.3.so
b76a3000-b778c000 r-xp 00000000 fe:00 533639     /usr/lib/libstdc++.so.6.0.13
b778c000-b7790000 r--p 000e9000 fe:00 533639     /usr/lib/libstdc++.so.6.0.13
b7790000-b7791000 rw-p 000ed000 fe:00 533639     /usr/lib/libstdc++.so.6.0.13
b7791000-b7798000 rw-p 00000000 00:00 0
b7798000-b779a000 r-xp 00000000 fe:00 141612     /lib/i686/cmov/libdl-2.11.3.so
b779a000-b779b000 r--p 00001000 fe:00 141612     /lib/i686/cmov/libdl-2.11.3.so
b779b000-b779c000 rw-p 00002000 fe:00 141612     /lib/i686/cmov/libdl-2.11.3.so
b779c000-b77b1000 r-xp 00000000 fe:00 525102     /usr/lib/libtinyxml.so.2.5.3
b77b1000-b77b2000 rw-p 00014000 fe:00 525102     /usr/lib/libtinyxml.so.2.5.3
b77b2000-b77b3000 rw-p 00000000 00:00 0
b77b3000-b77ba000 r-xp 00000000 fe:00 141632     /lib/i686/cmov/librt-2.11.3.so
b77ba000-b77bb000 r--p 00006000 fe:00 141632     /lib/i686/cmov/librt-2.11.3.so
b77bb000-b77bc000 rw-p 00007000 fe:00 141632     /lib/i686/cmov/librt-2.11.3.so
b77bc000-b77bf000 r-xp 00000000 fe:00 285        /lib/libcap.so.2.19
b77bf000-b77c0000 rw-p 00002000 fe:00 285        /lib/libcap.so.2.19
b77c3000-b77c6000 r-xp 00000000 fe:00 535242     /usr/lib/liblua5.1-sql-mysql.so                                           .2.0.0
b77c6000-b77c7000 rw-p 00003000 fe:00 535242     /usr/lib/liblua5.1-sql-mysql.so                                           .2.0.0
b77c7000-b77c9000 rw-p 00000000 00:00 0
b77c9000-b77ca000 r-xp 00000000 00:00 0          [vdso]
b77ca000-b77e5000 r-xp 00000000 fe:00 2932       /lib/ld-2.11.3.so
b77e5000-b77e6000 r--p 0001b000 fe:00 2932       /lib/ld-2.11.3.so
b77e6000-b77e7000 rw-p 0001c000 fe:00 2932       /lib/ld-2.11.3.so
bfba6000-bfbbb000 rw-p 00000000 00:00 0          [stack]
Аварийный останов

после сборки и первого запуска ..вот такое ... (последняя версия из свн)

---------
собирал rushub так:
1. autoreconf -i
2. ./configure --enable-caps
3. make
4. make clean
5. make

потом обновил tiny ..скинул папку с tiny в папку с луа_плагином и докинул Plugin.h .. и скомпилил луа..

Автор: mariner 19.2.2012, 9:59

tiny??? Это какую же? Русхаб указанным выше методом собирается с системные libtinyxml.so

Всегда правлю исходники вот до такого вида

Код
Общие подкаталоги: rushub/lua_plugin/src//lua и rushub-new/lua_plugin/src//lua
diff -ud rushub/lua_plugin/src//LuaPlugin.cpp rushub-new/lua_plugin/src//LuaPlugin.cpp
--- rushub/lua_plugin/src//LuaPlugin.cpp        2012-02-19 11:17:19.675733804 +0400
+++ rushub-new/lua_plugin/src//LuaPlugin.cpp    2012-02-19 11:18:36.901718517 +0400
@@ -25,11 +25,7 @@
   #include <config.h>
#endif // HAVE_CONFIG_H

-#if HAVE_TINYXML_H
-  #include <tinyxml.h>
-#else
-  #include "tinyxml/tinyxml.h"
-#endif // HAVE_TINYXML_H
+#include <tinyxml.h>

#ifdef _WIN32
        #pragma comment(lib, "tinyxml.lib")
diff -ud rushub/lua_plugin/src//Makefile rushub-new/lua_plugin/src//Makefile
--- rushub/lua_plugin/src//Makefile     2012-02-19 11:17:20.082718248 +0400
+++ rushub-new/lua_plugin/src//Makefile 2012-02-19 11:18:57.336758802 +0400
@@ -22,7 +22,7 @@
        $(CXX) -shared -fpic -lrt -o lua.so $(OBJS) $(CURDIR)/tinyxml/tinyxml.a /usr/local/lib/liblua.a

debian: $(OBJS)
-       $(CXX) -llua5.1 -shared -fpic -lrt -o lua.so $(OBJS) $(CURDIR)/tinyxml/tinyxml.a
+       $(CXX) -llua5.1 -ltinyxml -shared -fpic -lrt -o lua.so $(OBJS)

linux: $(OBJS)
        $(CXX) -llua -shared -fpic -lrt -o lua.so $(OBJS) $(CURDIR)/tinyxml/tinyxml.a
Общие подкаталоги: rushub/lua_plugin/src//.svn и rushub-new/lua_plugin/src//.svn

Автор: ShadoWx 19.2.2012, 10:36

Благодарю, собралось

Автор: ShadoWx 20.2.2012, 7:06

Решил собрать 730 ревизию из свн и получил такую ошибку:

ошибка_
Код
In file included from /usr/include/netdb.h:43,
                 from ConnBase.h:76,
                 from ConnChoose.h:28,
                 from Server.h:31,
                 from DcServer.h:28,
                 from DcConfig.cpp:26:
/usr/include/bits/netdb.h:32: error: ‘uint32_t’ does not name a type
In file included from ConnBase.h:76,
                 from ConnChoose.h:28,
                 from Server.h:31,
                 from DcServer.h:28,
                 from DcConfig.cpp:26:
/usr/include/netdb.h:217: error: ‘uint32_t’ was not declared in this scope
/usr/include/netdb.h:217: error: expected primary-expression before ‘int’
/usr/include/netdb.h:217: error: initializer expression list treated as compound expression
/usr/include/netdb.h:241: error: ‘uint32_t’ was not declared in this scope
/usr/include/netdb.h:241: error: expected primary-expression before ‘int’
/usr/include/netdb.h:242: error: expected primary-expression before ‘struct’
/usr/include/netdb.h:243: error: expected primary-expression before ‘char’
/usr/include/netdb.h:243: error: expected primary-expression before ‘__buflen’
/usr/include/netdb.h:244: error: expected primary-expression before ‘struct’
/usr/include/netdb.h:245: error: expected primary-expression before ‘int’
/usr/include/netdb.h:245: error: initializer expression list treated as compound expression
/usr/include/netdb.h:528: error: ‘uint32_t’ was not declared in this scope
/usr/include/netdb.h:528: error: expected primary-expression before ‘int’
/usr/include/netdb.h:529: error: expected primary-expression before ‘const’
/usr/include/netdb.h:529: error: expected primary-expression before ‘const’
/usr/include/netdb.h:529: error: initializer expression list treated as compound expression
make[2]: *** [DcConfig.o] Ошибка 1
make[2]: Leaving directory `/home/shadowx/tmp/trunk/rushub/src'
make[1]: *** [all] Ошибка 2
make[1]: Leaving directory `/home/shadowx/tmp/trunk/rushub/src'
make: *** [all-recursive] Ошибка 1

Автор: Setuper 20.2.2012, 22:21

Пофикшено.
Был конфликт в именах файлов.