Jump to content

  •  

akbare

Member Since 31 Jan 2013
Offline Last Active May 17 2017 12:58 AM
-----

Posts I've Made

In Topic: error libpcre

14 March 2016 - 02:22 PM

Configure look like fine.

 

Not sure, but this can be because your libpcre very old. You already using legacy operating system. Probably try install new libpcre version from some repository.

Or simply upgrade os to some thing more supported.

 

hmm...

 
What version should I wear ?
im use centos

In Topic: error libpcre

14 March 2016 - 01:18 AM

Again, show error from configure.

Dont run make until configure will not show any errors.

this ./configure

 

[root@eAkbare ~]# cd /root/eAkbare
[root@eAkbare]# ./configure
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether make sets $(MAKE)... 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 how to run the C preprocessor... gcc -E
checking for ar... /usr/bin/ar
checking whether byte ordering is bigendian... no
checking whether gcc produces 32bit code... no
checking whether gcc supports __thread specifier (TLS)... yes
checking whether gcc accepts -rdynamic... yes
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc can actually use -Wno-unused-parameter... yes
checking whether gcc supports -Wno-clobbered... yes
checking whether gcc supports -Wempty-body... yes
checking whether gcc supports -Wnewline-eof... no
checking whether gcc supports -Wint-conversion... no
checking whether gcc supports -Wenum-conversion... no
checking whether gcc supports -Wshorten-64-to-32... no
checking whether gcc supports -Wconstant-conversion... no
checking whether gcc supports -Wbool-conversion... no
checking whether gcc supports -Wformat-security... yes
checking whether gcc supports -Wno-format-nonliteral... yes
checking whether gcc supports -Wno-switch... yes
checking whether gcc supports -Wno-missing-field-initializers... yes
checking whether gcc supports -Wshadow... yes
checking whether gcc can efficiently use -Wshadow... no
checking whether gcc supports -fPIC... yes
checking how to make shared objects... -shared yes
checking whether gcc needs -Wl,--no-undefined to check for undefined references in shared objects... yes
checking whether gcc supports -fno-strict-aliasing... yes
checking for setrlimit... yes
checking for strnlen... yes
checking for uselocale... yes
checking for newlocale... yes
checking for freelocale... yes
checking xlocale.h usability... yes
checking xlocale.h presence... yes
checking for xlocale.h... yes
checking host OS... Linux
checking for MinGW... no
checking for library containing inflateEnd... -lz
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for library containing sqrt... -lm
checking for library containing clock_gettime... -lrt
checking whether CLOCK_MONOTONIC is supported and works... yes
checking for library containing pthread_create... none required
checking for library containing pthread_sigmask... none required
checking for library containing pthread_attr_init... none required
checking for library containing pthread_attr_setstacksize... none required
checking for library containing pthread_attr_destroy... none required
checking for library containing pthread_cancel... none required
checking for library containing pthread_join... none required
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for library containing backtrace... none required
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_init... yes
checking mysql.h usability... yes
checking mysql.h presence... yes
checking for mysql.h... yes
checking MySQL library (required)... yes (5.1.73)
checking for pcre_study in -lpcre... yes
checking PCRE library (optional)... yes
checking for doxygen... no
checking for perl... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/common/Makefile
config.status: creating 3rdparty/mt19937ar/Makefile
config.status: creating 3rdparty/libconfig/Makefile
config.status: creating src/char/Makefile
config.status: creating src/login/Makefile
config.status: creating src/map/Makefile
config.status: creating src/plugins/Makefile
config.status: creating src/tool/Makefile
config.status: creating src/test/Makefile
config.status: creating tools/HPMHookGen/Makefile
[root@eAkbare]#

and this ./make sql

 

[root@eAkbare]# make sql
        MAKE    mt19937ar
make[1]: Entering directory `/root/eAkbare/3rdparty/mt19937ar'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/eAkbare/3rdparty/mt19937ar'
        MAKE    libconfig
make[1]: Entering directory `/root/eAkbare/3rdparty/libconfig'
        CC      libconfig.c
        CC      grammar.c
        CC      scanctx.c
        CC      scanner.c
        CC      strbuf.c
make[1]: Leaving directory `/root/eAkbare/3rdparty/libconfig'
        MAKE    common_sql
make[1]: Entering directory `/root/eAkbare/src/common'
        AR      obj_all/common.a
        AR      obj_sql/common_sql.a
        AR      obj_all/common_mini.a
make[1]: Leaving directory `/root/eAkbare/src/common'
        MAKE    login_sql
make[1]: Entering directory `/root/eAkbare/src/login'
        LD      login-server
make[1]: Leaving directory `/root/eAkbare/src/login'
        MAKE    char_sql
make[1]: Entering directory `/root/eAkbare/src/char'
        LD      char-server
make[1]: Leaving directory `/root/eAkbare/src/char'
        MAKE    map_sql
make[1]: Entering directory `/root/eAkbare/src/map'
        LD      map-server
obj_sql/npc_chat.o: In function `npc_chat_defaults':
/root/eAkbare/src/map/npc_chat.c:464: undefined reference to `pcre_free'
/root/eAkbare/src/map/npc_chat.c:461: undefined reference to `pcre_compile'
/root/eAkbare/src/map/npc_chat.c:462: undefined reference to `pcre_study'
/root/eAkbare/src/map/npc_chat.c:463: undefined reference to `pcre_exec'
/root/eAkbare/src/map/npc_chat.c:465: undefined reference to `pcre_copy_substring'
/root/eAkbare/src/map/npc_chat.c:466: undefined reference to `pcre_free_substring'
/root/eAkbare/src/map/npc_chat.c:467: undefined reference to `pcre_copy_named_substring'
/root/eAkbare/src/map/npc_chat.c:468: undefined reference to `pcre_get_substring'
collect2: ld returned 1 exit status
make[1]: *** [../../map-server] Error 1
make[1]: Leaving directory `/root/eAkbare/src/map'
make: *** [map_sql] Error 2
[root@eAkbare]#


In Topic: error libpcre

12 March 2016 - 07:03 AM

This error mean your system partially broken, look like it can find /bin/sh.

 

Try open configure with text editor and replace in first line /bin/sh into /bin/bash, then save.

and try run configure again.

 

 

dos2unix configure
./configure
 

This should solve configure error.

 

then recompile the server

 

 

oke thanks' compile not error

how about this

 

        CC      status.c
        CC      storage.c
        CC      trade.c
        CC      unit.c
        CC      vending.c
        LD      map-server
obj_sql/npc_chat.o: In function `npc_chat_defaults':
/root/eAkbare/src/map/npc_chat.c:464: undefined reference to `pcre_free'
/root/eAkbare/src/map/npc_chat.c:461: undefined reference to `pcre_compile'
/root/eAkbare/src/map/npc_chat.c:462: undefined reference to `pcre_study'
/root/eAkbare/src/map/npc_chat.c:463: undefined reference to `pcre_exec'
/root/eAkbare/src/map/npc_chat.c:465: undefined reference to `pcre_copy_substring'
/root/eAkbare/src/map/npc_chat.c:466: undefined reference to `pcre_free_substring'
/root/eAkbare/src/map/npc_chat.c:467: undefined reference to `pcre_copy_named_substring'
/root/eAkbare/src/map/npc_chat.c:468: undefined reference to `pcre_get_substring'
collect2: ld returned 1 exit status
make[1]: *** [../../map-server] Error 1
make[1]: Leaving directory `/root/eAkbare/src/map'
make: *** [map_sql] Error 2
[root@eAkbare]#


In Topic: error libpcre

11 March 2016 - 01:36 AM

configure show error?
it show you should fix this error.

i try move to other VPS

and this my error sir

 

 

vsc2vd.png

 

 

i try this command :

# yum install dos2unix
# dos2unix sysinfogen.sh
# chmod +x sysinfogen.sh

and same error

 

i try to use antoher file [configure] [hercules]

can compile

8x2zic.jpg

 

 

thanks for advance

 


In Topic: error libpcre

27 February 2016 - 04:12 PM

look like server cant find pcre.
You run configure? or only make?
Try start from ./configure
And if it show error, need fix it first, and only after run make.

yup,
i use
./configure --with-pcre && make clean && make sql

and try to
./configure
make clean
make sql

same for error