shiyilei / protobuf-c

Automatically exported from code.google.com/p/protobuf-c
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Installed library is not versioned #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

  ./configure; make; sudo make install
  ls /usr/local/lib/libprotobuf-c.so.*.*.* 

What is the expected output?

  /usr/local/lib/libprotobuf-c.so.x.y.z

  with different x.y.z for e.g. protobuf-c-0.13 and 0.14 
  as the libraries API changed between these two versions

What do you see instead?

  /usr/local/lib/libprotobuf-c.so.0.0.0

  no matter whether i have 0.12, 0.13 or 0.14 installed

What version of the product are you using? On what operating system?

  protobuf-c-0.(12|13|14) on Linux (Ubuntu 10.10 on x86_64)

Original issue reported on code.google.com by hartmut....@gmail.com on 31 Oct 2010 at 10:27

GoogleCodeExporter commented 8 years ago
I was just bitten by this one. I compiled a binary on my development machine, 
which is using libprotobuf-c 0.14 compiled from source, and moved it to another 
machine where libprotof-c is installed from the ubuntu repositories (which is 
apparently 0.11-4). I get a segfault inside libprotobuf-c.so.0 when calling a 
generated _pack function.

It'd be far preferable if the library was versioned so that the binary refuses 
to run due to the version mismatch, instead of segfaulting.

Original comment by jdnews...@gmail.com on 10 Sep 2011 at 1:44