Giter VIP home page Giter VIP logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Finally I resolved the issue,
Checking the config.log I realized that libproto uses pthread and test program 
does
not  try to link against it, so I exported this variable:
"export LDFLAGS=-lpthread" 
before executing configure and all went right.
But, where is the problem?, in configure script or in protobuf library?.

Original comment by [email protected] on 14 May 2009 at 3:19

from protobuf-c.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
This is a bug in the configure script. This was recently raised on the protobuf
mailing list: basically pthreads was always required, but until recently you 
could
get by, just by chance, without it.

Original comment by [email protected] on 1 Jun 2009 at 8:44

from protobuf-c.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
ok, i've added -lpthread unconditionally to the build...  leaving open since 
i'm too
lazy to verify that that's the right thing to do... (e.g. on windows)

Original comment by [email protected] on 11 Jun 2009 at 1:02

from protobuf-c.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
I saw the same problem on Leopard (10.5.8) and I had to add the lib directory 
path when compiling for 64-bit 
with the libraries in a non standard location.

Original comment by [email protected] on 29 Sep 2009 at 8:38

from protobuf-c.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
i think you are supposed to add -pthread to CFLAGS if using gcc.


       -pthread
           Adds support for multithreading with the pthreads library.  This option 
sets flags for both the preprocessor and linker.

Original comment by [email protected] on 11 Nov 2009 at 5:45

from protobuf-c.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
fixed a long time ago

Original comment by [email protected] on 18 Mar 2010 at 2:25

  • Changed state: Fixed

from protobuf-c.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
[deleted comment]

from protobuf-c.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
[deleted comment]

from protobuf-c.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
execute ./configure LDFLAGS=-lpthread

ERROR:
protobuf test program failed to link:
perhaps you need to add -Llibdir to your LDFLAGS.

why?

Original comment by [email protected] on 8 Aug 2010 at 3:29

from protobuf-c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.