Jump to content
  • 0

Error compiling server


Question

Posted (edited)

Hello, could you help me with the following error?
I'm trying to compile on a hosting and am getting the following errors while completing:

/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc

thanks in advance :(

 

server.png

Edited by bewfbi

18 answers to this question

Recommended Posts

  • 0
Posted
53 minutes ago, Anacondaqq said:

Install Windows 8.1 SDK at Visual Studio Installer and the problem will be fixed.

already install Windows 8.1 SDK and try again to recompile, but got more error

2.thumb.jpg.165bf940980377e278bbf0990b91316f.jpg

  • 0
Posted (edited)

This could help you.

Open VS > Tools > Get tools and features > Develop Desktop c#

1visual.png

2vs.PNG

3vs.PNG

SDK Windows 8.1.

oh nvm. xd

Edited by Scanty
  • 0
Posted (edited)
7 hours ago, Jey said:

@bewfbi are you on a 32 bit system? Then you should rerun configure with the --disable-64bit flag

I just bought with this command, but I still get the same incompatibility error.

useri the command: ./configure --disable-64bit
But the error arises when I use make clean

 

server2.png

Edited by bewfbi
  • 0
Posted
23 minutes ago, bewfbi said:

But the error arises when I use make clean

Are you sure? make clean just removes the compilation. Please provide more informations. What system are you on, how do you actually compile, etc. Thanks

  • 0
Posted

I'm using:
  the centos6.9 version of linux
COLLECT_LTO_WRAPPER = / usr / local / libexec / gcc / x86_64-unknown-linux-gnu / 5.1.0 / lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc_5_1_0_release/configure
Thread model: posix
gcc version 5.1.0 (GCC)

but only this error when compiling with make server.

  • 0
Posted
9 minutes ago, bewfbi said:

x86_64-unknown-linux-gnu

Still not sure if you're on a 64 bit system. That looks more like 64 bit; then you should run configure without the disable-64bit flag

  • 0
Posted

I'm really not sure about that. Are you getting any other issues besides these warnings?

Maybe you downloaded wrong dependencies but also got the right ones? Hard to tell.

  • 0
Posted
21 hours ago, bewfbi said:

does not save the changes made to the src folde

This statement and the fact that you're able to clean and recompile your project doesn't make any sense together... I assume something else is wrong here.

  • 0
Posted (edited)

O problema real da era do problema do serviço de hospedagem hospedagem. Mudei para um serviço mais atual e tudo funcionou. Obrigado pela ajuda ...

:D:lol:

[SOLUÇÃO]

 

Edited by bewfbi
  • 0
Posted (edited)

@bewfbi, I'm not sure @Jey explained clearly or is following another resolution path but the error you have

"skipping incompatible foo.so is usually cause the DSO (dll for win terminology) is in another arch (x86) then the binary produced (x64).

Now those are only warning that doesn't man the link was badly performed.

1) Since you using configure attach the "config.log" so we could trace result.

2) I don't remember exacly about centos 6 but do you have a /usr/lib64 folder ? for me you should link against this and ./configure may fail at doing best resolution here.

3) Check the link with ldd like this example.
 

[lighta@fedo27 rathena]$ ldd ./map-server 
	linux-vdso.so.1 (0x00007ffee0355000)
	libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f323e410000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f323e1f1000)
	libz.so.1 => /lib64/libz.so.1 (0x00007f323dfda000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f323ddd6000)
	libmysqlclient.so.1020 => /usr/lib64/mysql/libmysqlclient.so.1020 (0x00007f323d81f000)
	librt.so.1 => /lib64/librt.so.1 (0x00007f323d617000)
	libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007f323d3ab000)
	libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007f323cf24000)
	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f323cb9e000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f323c849000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f323c632000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f323c24d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f323e683000)
	libssl.so.10 => /lib64/libssl.so.10 (0x00007f323bfe1000)
	libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f323bb83000)

If the adresse are below 16char then you linking against an x86 lib.

Edited by Lighta
  • Upvote 1
  • Like 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...