Comments (9)
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.
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.
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.
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.
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.
fixed a long time ago
Original comment by [email protected]
on 18 Mar 2010 at 2:25
- Changed state: Fixed
from protobuf-c.
[deleted comment]
from protobuf-c.
[deleted comment]
from protobuf-c.
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)
- Don't include names to save space [patch]
- The last version cann't support string now? HOT 2
- VS 2008 compilation issue 0.15 HOT 1
- AF_LOCAL does not exists on Solaris, AIX and HPUX HOT 1
- Choose a build system, and get rid of the unchosen one
- compilation error HOT 3
- autoreconf 2.68 warnings
- optional missing in sub-message HOT 1
- unpack don't merge sub-messages
- giving static ip address to protobuf-c rpc server
- protobuf-c does not compile on 64bit Solaris 11
- structure with 64-bit field is decoded wrong
- ByteSize() doesn't return right value
- protobuf-c build with vc6
- free(): invalid next size (fast) at google/protobuf-c/protobuf-c.c:127
- C++: add a sub-element to a repeated element
- Reopening issue #38.
- protobuf-c requires AF_LOCAL
- protobuf-c does not compile on Solaris 10, as bind/connect/etc. are in libsocket
- Does not compile on Solaris 10, hstrerror in libresolv
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf-c.