Jump to content
  • 0
akbare

error libpcre

Question

i found this error. maybe someone can help me :D

make[1]: Entering directory `/root/hercules/3rdparty/mt19937ar'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/hercules/3rdparty/mt19937ar'
        MAKE    libconfig
make[1]: Entering directory `/root/hercules/3rdparty/libconfig'
        CC      libconfig.c
        CC      grammar.c
        CC      scanctx.c
        CC      scanner.c
        CC      strbuf.c
make[1]: Leaving directory `/root/hercules/3rdparty/libconfig'
        MAKE    common_sql
make[1]: Entering directory `/root/hercules/src/common'
        AR      obj_all/common.a
        AR      obj_sql/common_sql.a
        AR      obj_all/common_mini.a
make[1]: Leaving directory `/root/hercules/src/common'
        MAKE    login_sql
make[1]: Entering directory `/root/hercules/src/login'
        LD      login-server
make[1]: Leaving directory `/root/hercules/src/login'
        MAKE    char_sql
make[1]: Entering directory `/root/hercules/src/char'
        LD      char-server
make[1]: Leaving directory `/root/hercules/src/char'
        MAKE    map_sql
make[1]: Entering directory `/root/hercules/src/map'
        LD      map-server
obj_sql/clif.o: In function `clif_parse_GlobalMessage':
/root/hercules/src/map/clif.c:9849: undefined reference to `npc_chat'
obj_sql/HPMmap.o: In function `HPM_shared_symbols':
/root/hercules/src/map/../common/HPMSymbols.inc.h:401: undefined reference to `npc_chat'
/root/hercules/src/map/../common/HPMSymbols.inc.h:422: undefined reference to `libpcre'
obj_sql/map.o: In function `map_load_defaults':
/root/hercules/src/map/map.c:5777: undefined reference to `npc_chat_defaults'
obj_sql/npc.o: In function `npc_unload':
/root/hercules/src/map/npc.c:2285: undefined reference to `npc_chat'
obj_sql/script.o: In function `op_2str':
/root/hercules/src/map/script.c:3774: undefined reference to `libpcre'
/root/hercules/src/map/script.c:3784: undefined reference to `libpcre'
/root/hercules/src/map/script.c:3787: undefined reference to `libpcre'
/root/hercules/src/map/script.c:3795: undefined reference to `libpcre'
/root/hercules/src/map/script.c:3823: undefined reference to `libpcre'
obj_sql/script.o:/root/hercules/src/map/script.c:3825: more undefined references to `libpcre' follow
obj_sql/script.o:(.rodata+0x37e0): undefined reference to `buildin_defpattern'
obj_sql/script.o:(.rodata+0x3800): undefined reference to `buildin_activatepset'
obj_sql/script.o:(.rodata+0x3820): undefined reference to `buildin_deactivatepset'
obj_sql/script.o:(.rodata+0x3840): undefined reference to `buildin_deletepset'
collect2: ld returned 1 exit status
make[1]: *** [../../map-server] Error 1
make[1]: Leaving directory `/root/hercules/src/map'
make: *** [map_sql] Error 2

yum -y install pcre pcre-devel httpd-devel subversion gcc make
error libpcre

OS: centos 6

fresh emu just edited define PACKETVER

 

 

thanks for advance :D

Edited by akbare

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

Edited by akbare

Share this post


Link to post
Share on other sites
  • 0

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

 

Edited by akbare

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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]#

Share this post


Link to post
Share on other sites
  • 0

Again, show error from configure.

Dont run make until configure will not show any errors.

Share this post


Link to post
Share on other sites
  • 0

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]#

Share this post


Link to post
Share on other sites
  • 0

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.

 

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

if you prefer centos, try centos 7 or newer versions.

Now you using centos 6. It was release in 2011 year.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.