Comments (6)
From [email protected] on April 20, 2012 13:49:35
Trying to build 0.15 version in recent mingw (4.6.2 gcc)
and have this :
sh.exe"-3.1$ make LDFLAGS=-no-undefined
Making all in src
make[1]: Entering directory C:/progs/mingw/src/protobuf-c-0.15/src' make[2]: Entering directory
C:/progs/mingw/src/protobuf-c-0.15/src'
C:/progs/mingw/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME="protobuf-c" -DPACKAGE_TARNAME="protobuf-c" -DPACKAGE_VERSION="0.15" -DPACKAGE_STRING="protobuf-c\ 0.15" -DPACKAGE_
BUGREPORT="" -DPACKAGE="protobuf-c" -DVERSION="0.15" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES
_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DLT_OBJDIR=".libs/" -DHAVE_INTTYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_WINSOCK_H=1 -DHAVE_IO_H=1 -DHAVE_UNISTD_H=1 -DIS_LITTLE_ENDIAN=1 -I. -g -O2 -MT protobuf-c-d
ispatch.lo -MD -MP -MF .deps/protobuf-c-dispatch.Tpo -c -o protobuf-c-dispatch.lo test -f 'google/protobuf-c/protobuf-c-dispatch.c' || echo './'
google/protobuf-c/protobuf-c-dispatch.c
libtool: compile: gcc "-DPACKAGE_NAME=\protobuf-c\ -DPACKAGE_TARNAME=\protobuf-c\ -DPACKAGE_VERSION=\0.15\ -DPACKAGE_STRING=\protobuf-c 0.15\ -DPACKAGE_BUGREPORT=\" "-DPACKAGE=\protobuf-c
-DVERSION=\0.15\ -DSTDC_HEADERS=1" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=
1 "-DLT_OBJDIR=.libs/\ -DHAVE_INTTYPES_H=1" -DHAVE_MALLOC_H=1 -DHAVE_WINSOCK_H=1 -DHAVE_IO_H=1 -DHAVE_UNISTD_H=1 -DIS_LITTLE_ENDIAN=1 -I. -g -O2 -MT protobuf-c-dispatch.lo -MD -MP -MF .deps/protobuf-c-d
ispatch.Tpo -c google/protobuf-c/protobuf-c-dispatch.c -o protobuf-c-dispatch.o
google/protobuf-c/protobuf-c-dispatch.c: In function 'protobuf_c_dispatch_new':
google/protobuf-c/protobuf-c-dispatch.c:200:11: error: 'SIGPIPE' undeclared (first use in this function)
google/protobuf-c/protobuf-c-dispatch.c:200:11: note: each undeclared identifier is reported only once for each function it appears in
google/protobuf-c/protobuf-c-dispatch.c: In function 'protobuf_c_dispatch_dispatch':
google/protobuf-c/protobuf-c-dispatch.c:532:20: error: 'RealDispatch' has no member named 'fd_map'
google/protobuf-c/protobuf-c-dispatch.c:556:6: error: 'RealDispatch' has no member named 'fd_map'
google/protobuf-c/protobuf-c-dispatch.c: In function 'events_to_pollfd_events':
google/protobuf-c/protobuf-c-dispatch.c:626:47: error: 'POLLIN' undeclared (first use in this function)
google/protobuf-c/protobuf-c-dispatch.c:627:47: error: 'POLLOUT' undeclared (first use in this function)
google/protobuf-c/protobuf-c-dispatch.c: In function 'pollfd_events_to_events':
google/protobuf-c/protobuf-c-dispatch.c:633:18: error: 'POLLIN' undeclared (first use in this function)
google/protobuf-c/protobuf-c-dispatch.c:634:18: error: 'POLLOUT' undeclared (first use in this function)
google/protobuf-c/protobuf-c-dispatch.c: In function 'protobuf_c_dispatch_run':
google/protobuf-c/protobuf-c-dispatch.c:650:11: error: invalid application of 'sizeof' to incomplete type 'struct pollfd'
google/protobuf-c/protobuf-c-dispatch.c:652:21: error: invalid application of 'sizeof' to incomplete type 'struct pollfd'
google/protobuf-c/protobuf-c-dispatch.c:655:7: error: invalid use of undefined type 'struct pollfd'
google/protobuf-c/protobuf-c-dispatch.c:655:10: error: dereferencing pointer to incomplete type
google/protobuf-c/protobuf-c-dispatch.c:656:7: error: invalid use of undefined type 'struct pollfd'
google/protobuf-c/protobuf-c-dispatch.c:656:10: error: dereferencing pointer to incomplete type
google/protobuf-c/protobuf-c-dispatch.c:657:7: error: invalid use of undefined type 'struct pollfd'
google/protobuf-c/protobuf-c-dispatch.c:657:10: error: dereferencing pointer to incomplete type
google/protobuf-c/protobuf-c-dispatch.c:702:5: error: invalid use of undefined type 'struct pollfd'
google/protobuf-c/protobuf-c-dispatch.c:702:12: error: dereferencing pointer to incomplete type
google/protobuf-c/protobuf-c-dispatch.c:710:5: error: invalid use of undefined type 'struct pollfd'
google/protobuf-c/protobuf-c-dispatch.c:710:12: error: dereferencing pointer to incomplete type
google/protobuf-c/protobuf-c-dispatch.c:712:9: error: invalid use of undefined type 'struct pollfd'
google/protobuf-c/protobuf-c-dispatch.c:712:34: error: dereferencing pointer to incomplete type
google/protobuf-c/protobuf-c-dispatch.c:713:9: error: invalid use of undefined type 'struct pollfd'
google/protobuf-c/protobuf-c-dispatch.c:713:63: error: dereferencing pointer to incomplete type
make[2]: *** [protobuf-c-dispatch.lo] Error 1
make[2]: Leaving directory C:/progs/mingw/src/protobuf-c-0.15/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
C:/progs/mingw/src/protobuf-c-0.15/src'
make: *** [all-recursive] Error 1
from protobuf-c.
From [email protected] on July 31, 2012 02:36:23
confirm the issue, is it needed for structs encoding/decoding? Not interested in services/RPC
from protobuf-c.
From [email protected] on January 18, 2013 02:35:43
Confirm the issue, but you still can build protoc-c compliler with "make protoc-c.exe"
from protobuf-c.
From [email protected] on September 13, 2013 06:52:20
Iam trying to compile this on a redhat linux with gcc, and facing the same issue.
Do we have a workaround?
from protobuf-c.
From [email protected] on September 27, 2013 05:30:26
I have managed to build it for mingw with a patches attached and configure switches:
--enable-shared --disable-static --disable-protoc --disable-services --with-endianness=little
This makes win32 API a bit different from linux one (it doesn't contain protobuf-c-dispatch.h and protobuf-c-rpc.h parts), but I don't think it's a real problem.
Attachment: protobuf-c-disable-services.patch autogen.sh
from protobuf-c.
RPC support has been split out into a separate build target, and disabled by default, so i believe this is mostly fixed, at least so far as being able to build protoc-c and libprotobuf-c without building the RPC code.
from protobuf-c.
Related Issues (20)
- uninitialized variable compile error with GCC 10.3 HOT 1
- import in protobuf-c.proto causes 'file not found' error with Visual Studio 2019 HOT 3
- unsigned integer overflow HOT 5
- UndefinedBehaviorSanitizer: invalid left shift in protobuf-c.c:2086 HOT 1
- 1.4.0: build faiuls with latest gcc HOT 3
- error: ‘const class google::protobuf::OneofDescriptor’ has no member named ‘file’ HOT 4
- Fix a clang analyzer 14 warning about a possible NULL deref.
- support proto3 optional HOT 1
- cppcheck 2.8 lints HOT 2
- protobuf-c 1.4.x cygwin (win10pro) build fails HOT 4
- Does not compile under Debian 11.5 HOT 7
- Undefined reference when linking protobuf-c statically HOT 1
- protobuf-c 1.4.1 won't build against protobuf 22.1 HOT 18
- Memory corruption in protobuf_c_message_free_unpacked HOT 6
- The libprotobuf-c.so.1.0.0 gets generated instead of a libprotobuf-c.so.1.4.0, why is that? HOT 2
- Integrate with schema registry
- Missing Config.cmake.in in 1.5.0 protobuf-c-1.5.0.tar.gz archive
- cannot compile in V1.5.0 HOT 1
- build fiailed,error: cmake -E env: unknown option '--'
- Cannot compile protobuf-c HOT 6
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.