Jump to content
  • 0

Compiling Error


Lige

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   2
  • Joined:  02/07/12
  • Last Seen:  

Wasn't really sure what to name the topic... Anyway, I'm running CentOS 6.2 64-bit, I did ./configure with --enable-64bit. No problems there. However, when I run 'make' to compile, I get the following erorr:

make[1]: Entering directory `/home/ro/rAthena/src/plugins'
gcc -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fno-strict-aliasing -DHAVE_SETRLIMIT -DHAVE_STRNLEN -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK  -I../common -I/usr/include  -L/usr/lib -shared -o ../../plugins/sample.so sample.c
/usr/bin/ld: /tmp/ccuMott8.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/tmp/ccuMott8.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [sample.so] Error 1
make[1]: Leaving directory `/home/ro/rAthena/src/plugins'
make: *** [plugins] Error 2

I've compiled before, but never on a 64-bit machine (not sure if that has anything to do with it or what, but I'm in the dark either way, it's working fine on my other machine (I'm in process of moving to a new hardware server)

Do I need to install something or run some other command? Any help'd be appreciated. I only have a few days left before my old server payment is due, and I'd really like to migrate over to the new host so I don't have to pay for both p.q

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   37
  • Joined:  12/30/11
  • Last Seen:  

did you make the commands in this order

./configure --enable-64bit

make clean

make sql

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   2
  • Joined:  02/07/12
  • Last Seen:  

I did it in that order, but I ran 'make' instead of 'make sql'... I've never had to specify sql before, odd. Is that a 64bit thing? ;x

Either way, appears to be working now, thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

I always use make sql as oppose to make all, always had problems with compiling other things like plugins.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Just do 'make sql' instead of 'make all' (or 'make').

Currently, the console.c plugin is not compatible on 64-bit systems.

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...