Jump to content
  • 0

Compile warnings after update


Dark Lunacy

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  02/12/17
  • Last Seen:  

After I have updated the emulator and the database, I proceed to compile and get the following errors, after using the make server command:

script.c: In function script_getitem_randomoption’:
script.c:6730:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   it->option[i].id = (short)__64BPRTSIZE(get_val2(st,reference_uid(opt_id_id,opt_id_idx+i),opt_id_ref));
                      ^
script.c:6732:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   it->option[i].value = (short)__64BPRTSIZE(get_val2(st,reference_uid(opt_val_id,opt_val_idx+i),opt_val_ref));
                         ^
script.c:6734:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   it->option[i].param = (char)__64BPRTSIZE(get_val2(st,reference_uid(opt_param_id,opt_param_idx+i),opt_param_ref));



I compiled using the following command line:
 

./configure --enable-packetver=20150513 --disable-64bit
make clean
make server


I installed g ++, solved conflicts after update...

Ubuntu 16.04 lts 32 bits

Renewal

Please help :c

Regards!

Edited by Bucle
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

2 hours ago, Bucle said:

After I have updated the emulator and the database, I proceed to compile and get the following errors, after using the make server command:


script.c: In function script_getitem_randomoption’:
script.c:6730:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   it->option[i].id = (short)__64BPRTSIZE(get_val2(st,reference_uid(opt_id_id,opt_id_idx+i),opt_id_ref));
                      ^
script.c:6732:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   it->option[i].value = (short)__64BPRTSIZE(get_val2(st,reference_uid(opt_val_id,opt_val_idx+i),opt_val_ref));
                         ^
script.c:6734:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   it->option[i].param = (char)__64BPRTSIZE(get_val2(st,reference_uid(opt_param_id,opt_param_idx+i),opt_param_ref));



I compiled using the following command line:
 


./configure --enable-packetver=20150513 --disable-64bit
make clean
make server


I installed g ++, solved conflicts after update...

Ubuntu 16.04 lts 32 bits

Renewal

Please help :c

Regards!

since u are using ubuntu, this might help u

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  02/12/17
  • Last Seen:  

On 5/19/2017 at 0:15 PM, hazimjauhari90 said:

since u are using ubuntu, this might help u

 

Yes, i know that, im using g++...thats not the problem :(

 

More information:

This issue is a 32 bit system related. I tested on a 64 bit and 32 system (Ubuntu 16.04), but only on 32 bit the error appears.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

On 20/05/2017 at 6:49 AM, Bucle said:

More information:

This issue is a 32 bit system related. I tested on a 64 bit and 32 system (Ubuntu 16.04), but only on 32 bit the error appears.

well.. no wonder i'm not encounter this issue on my server as i'm using Ubuntu 14.04.5 64-bit.. i think if this issue is genuine & pure, u should report it at rAthena github repository...

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  02/12/17
  • Last Seen:  

13 hours ago, hazimjauhari90 said:

well.. no wonder i'm not encounter this issue on my server as i'm using Ubuntu 14.04.5 64-bit.. i think if this issue is genuine & pure, u should report it at rAthena github repository...

Yes, its here, i reported this issue a weekend ago, but has no response yet :(

https://github.com/rathena/rathena/issues/2142

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

6 minutes ago, Bucle said:

Yes, its here, i reported this issue a weekend ago, but has no response yet :(

https://github.com/rathena/rathena/issues/2142

Perhaps coz not complete detail? I just viewed ur reported issue.. seems to be git hash is missing..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  02/12/17
  • Last Seen:  

Just now, hazimjauhari90 said:

Perhaps coz not complete detail? I just viewed ur reported issue.. seems to be git hash is missing..

I dont know how to do it, sorry im new using github. 

How can i create a hash?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

9 hours ago, Bucle said:

I dont know how to do it, sorry im new using github. 

How can i create a hash?

this might help u anyway.

git hash ver.png

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  02/12/17
  • Last Seen:  

On 2017-5-22 at 1:06 AM, hazimjauhari90 said:

this might help u anyway.

git hash ver.png

Since I changed to Ubuntu 64bits and deleted everything I cant determine the Hash Version. But i got the error this day after the update: 12-05-2017.

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