Issue information

Issue ID
#6016
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jun 14, 2012 20:41
Last Post
Ind
Apr 16, 2013 7:26
Confirmation
N/A

Hercules Elf Bot - Jun 14, 2012 20:41

Originally posted by [b]Igniz[/b]
Compiled with CMake on CentOS with a clean copy or rathena (16299)
[CODE]
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
[/CODE]

Under Visual studio 2010 goes ok, so, cmake failure, my libraries failure or rathena's cmake files failure?

This post has been edited by Igniz on Jun 14, 2012 21:58

Hercules Elf Bot - Jun 15, 2012 0:46

Originally posted by [b]Sirius_Black[/b]
Hi,

what Centos version and what Arch?

And -> are you using another compiler than native gcc? (probably llvm gcc...?)


Thanks :D
Florian

Hercules Elf Bot - Jun 15, 2012 1:01

Originally posted by [b]Igniz[/b]
Nope

Centos 5.8 on arch 32b

Also i tried with the make sql method and everything goes ok, so, it's cmake i think ~

Hercules Elf Bot - Jun 15, 2012 1:07

Originally posted by [b]Sirius_Black[/b]
Okay, ill create a 32b centos 5.8 environment tomorrow to test / fix :)

Thanks for the info ^^

Additionally you can reach me the most time @ IRC :D

Hercules Elf Bot - Jun 15, 2012 1:09

Originally posted by [b]Igniz[/b]
Oh thanks a lot. Have a nice day dude.

Hercules Elf Bot - Jul 1, 2012 11:48

Originally posted by [b]Ind[/b]
updated status so it doesn't appear in the filter, i'm not the one who 'started' working on it (i assume sirius is since he mentioned so)

Ind - Apr 16, 2013 7:26

fixed some time ago.