tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
603 stars 102 forks source link

libtool: link: unsupported hardcode properties [ubuntu 12.10] #55

Closed ant0ine closed 11 years ago

ant0ine commented 11 years ago

I got the following error during compilation on ubuntu 12.10:

libtool: link: unsupported hardcode properties

which I solved by installing the following package:

g++-mingw-w64-i686

It may help other people to update the README file.

tatsuhiro-t commented 11 years ago

Is it cross-compiling windows binary? Or did it happen when compiling Linux native binary?

ant0ine commented 11 years ago

I'm not sure, I've just run ./configure without options. Does it cross-compile for windows by default ? Also, it seems to be just a dependency issue on ubuntu: http://stackoverflow.com/questions/11964466/why-is-libtool-is-throwing-unsupported-hardcode-properties-errors-and-what-do

tatsuhiro-t commented 11 years ago

No, it defaults to the native binary. I'm not totally understand the situation in the article in stackoverflow, but I'm under impression that it is ubuntu packaging bug. I'll add some notes on this in README.rst so that people stucked in the same issue can find the solution.

tatsuhiro-t commented 11 years ago

I upgrade my old ubuntu 12.04 to 12.10. Compile went fine without the libtool error. No g++-mingw-w64-i686 installed. Very strange.

ant0ine commented 11 years ago

Alright, maybe that was just my setup. Thanks to have looked into it!

tatsuhiro-t commented 11 years ago

OK, close for now.

jamescorbett commented 10 years ago

Just getting it to build on a brand new vm with ubuntu server 13.04 and I had to install the additional package, same error. Reopen?

irrenhaus commented 10 years ago

Me, too. A fresh installed Linux Mint 17 (based on Ubuntu 14.04 LTS) - same error. However, installed the above mentioned package did not fix it for me. Still have no idea how to fix it.

Edit: OK, I could fix it by re-configuring without parameters. For the failing build I was using ./configure --prefix=/usr When the prefix is the default (/usr/local) it's working. Seems to be an issue with some LD paths.

Edit2: However, libspdylay.so.7 cannot be found when compiled that way (on x86_64). /usr/local/lib is within the LD_LIBRARY_PATH.

tatsuhiro-t commented 10 years ago

I use Ubuntu 14.04 LTS amd64 and have not experienced this issue. I have no idea how to debug this.

tjdett commented 9 years ago

Hit this too. ./configure --enable-static failed, but ./configure (where static is enabled by default) succeeded. Very strange.

lutoma commented 8 years ago

Had the same issue on Debian 8.2 right now. g++ was missing, but ./configure still worked. Trying to compile after that using make failed, and continued to fail after installing g++. I had to actually ./configure again after installing g++ for it to compile.