Jump to content
  • 0

Error while using the command "make install" using Unix


Xephyras

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  06/16/12
  • Last Seen:  

Hey guys,

I am using Centos 5 and tried to compile and install rAthena Rev. 16311. I followed all the instructions on rAthena Wiki > Compiling. Until I got at the step "make install", it showed the following error.

Sidenote: I did NOT change anything except adding configurations in /conf/import-tmpl.

Linking C executable login-server_sql
../../common/libcommon_base.a(mempool.c.o): In function `mempool_async_allocator':
mempool.c:(.text+0x51): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x87): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0xa8): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x106): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x126): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x1d8): undefined reference to `__sync_add_and_fetch_8'
mempool.c:(.text+0x22d): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x263): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x284): undefined reference to `__sync_sub_and_fetch_4'
../../common/libcommon_base.a(mempool.c.o): In function `mempool_final':
mempool.c:(.text+0x3c7): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x442): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x478): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x499): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x4f7): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x517): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x5b3): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x5e9): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x60a): undefined reference to `__sync_sub_and_fetch_4'
../../common/libcommon_base.a(mempool.c.o): In function `segment_allocate_add':
mempool.c:(.text+0x93a): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x98b): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x9b8): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0xa4f): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0xa78): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0xafe): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0xb4f): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0xb7c): undefined reference to `__sync_sub_and_fetch_4'
mempool.c:(.text+0xc27): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0xc78): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0xca5): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0xd21): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0xd44): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0xdae): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0xde4): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0xe05): undefined reference to `__sync_sub_and_fetch_4'
mempool.c:(.text+0xe6c): undefined reference to `__sync_fetch_and_add_8'
mempool.c:(.text+0xea2): undefined reference to `__sync_fetch_and_add_8'
mempool.c:(.text+0xec8): undefined reference to `__sync_add_and_fetch_8'
mempool.c:(.text+0xefd): undefined reference to `__sync_fetch_and_add_8'
../../common/libcommon_base.a(mempool.c.o): In function `mempool_create':
mempool.c:(.text+0x1281): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x12b7): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x12d8): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x1336): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1356): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x13bb): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x13f1): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1412): undefined reference to `__sync_sub_and_fetch_4'
../../common/libcommon_base.a(mempool.c.o): In function `mempool_destroy':
mempool.c:(.text+0x14b8): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1509): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1536): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x15cd): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x15f6): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x16e4): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1735): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1762): undefined reference to `__sync_sub_and_fetch_4'
mempool.c:(.text+0x180d): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x185e): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x188b): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x1922): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x194b): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x19b0): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1a01): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1a2e): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x1ac5): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1aee): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x1d23): undefined reference to `__sync_lock_test_and_set_8'
mempool.c:(.text+0x1d67): undefined reference to `__sync_lock_test_and_set_8'
mempool.c:(.text+0x1dab): undefined reference to `__sync_lock_test_and_set_8'
mempool.c:(.text+0x1de9): undefined reference to `__sync_lock_test_and_set_8'
mempool.c:(.text+0x1e2a): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1e60): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1e81): undefined reference to `__sync_sub_and_fetch_4'
mempool.c:(.text+0x1ef3): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1f29): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x1f4a): undefined reference to `__sync_sub_and_fetch_4'
../../common/libcommon_base.a(mempool.c.o): In function `mempool_node_get':
mempool.c:(.text+0x209d): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x20e8): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x210f): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x2179): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x219c): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x2211): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x2247): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x2268): undefined reference to `__sync_sub_and_fetch_4'
mempool.c:(.text+0x22d2): undefined reference to `__sync_sub_and_fetch_8'
mempool.c:(.text+0x2383): undefined reference to `__sync_lock_test_and_set_8'
../../common/libcommon_base.a(mempool.c.o): In function `mempool_node_put':
mempool.c:(.text+0x2481): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x24b7): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x24d8): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x2536): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x2556): undefined reference to `__sync_add_and_fetch_4'
mempool.c:(.text+0x25c0): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x25f6): undefined reference to `__sync_val_compare_and_swap_4'
mempool.c:(.text+0x2617): undefined reference to `__sync_sub_and_fetch_4'
mempool.c:(.text+0x266e): undefined reference to `__sync_add_and_fetch_8'
collect2: ld returned 1 exit status
make[2]: *** [src/login/sql/login-server_sql] Error 1
make[1]: *** [src/login/sql/CMakeFiles/login-server_sql.dir/all] Error 2
make: *** [all] Error 2

I appreciate your help!

/hmm I guess no one knows how to fix this?

Edited by Xephyras
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi Xephyras,

I would recommend upgrading to the latest SVN again; then check if the ./configure has anything it's missing and install the missing ite,s. Finally after that, try to compile again.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  06/16/12
  • Last Seen:  

Sorry for my late reply, and thank you for your answer.

This is the full report of ./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... yes
checking whether gcc supports __thread specifier (TLS)... yes
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -flto... no
checking whether gcc supports -Wno-pointer-sign... yes
checking whether gcc can actually use -Wno-pointer-sign... yes
checking whether gcc supports -Wno-switch... yes
checking whether gcc supports -fPIC... 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 for inflateEnd in -lz... yes
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 pthread_create in -lpthread... yes
checking for pthread_sigmask in -lpthread... yes
checking for pthread_attr_init in -lpthread... yes
checking for pthread_attr_setstacksize in -lpthread... yes
checking for pthread_attr_destroy in -lpthread... yes
checking for pthread_cancel in -lpthread... yes
checking for pthread_join in -lpthread... yes
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_init in -lmysqlclient... yes
checking mysql.h usability... yes
checking mysql.h presence... yes
checking for mysql.h... yes
checking MySQL library (required)... yes (5.1.61)
checking for pcre_study in -lpcre... no
checking PCRE library (optional)... no
configure: disabling PCRE (optional)
checking host OS... Linux
checking for MinGW... no
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/tool/Makefile
config.status: creating src/test/Makefile

I am not sure what I am missing here, so if one of the expert could tell me what it is and tell me what I have to install/configure, I would appreciate it very much!

Thanks in advance.

Sidenote: I am using Rev.16328 now.

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...