Comments (8)
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
Original comment by [email protected]
on 20 Apr 2012 at 8:49
from protobuf-c.
confirm the issue, is it needed for structs encoding/decoding? Not interested
in services/RPC
Original comment by [email protected]
on 31 Jul 2012 at 9:36
from protobuf-c.
Confirm the issue, but you still can build protoc-c compliler with "make
protoc-c.exe"
Original comment by [email protected]
on 18 Jan 2013 at 10:35
from protobuf-c.
Iam trying to compile this on a redhat linux with gcc, and facing the same
issue.
Do we have a workaround?
Original comment by [email protected]
on 13 Sep 2013 at 1:52
from protobuf-c.
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.
Original comment by [email protected]
on 27 Sep 2013 at 12:30
Attachments:
from protobuf-c.
Hi,
In what order patch & .sh should be used?
For wich version of protobuf-c are done?
I use the autogen.sh first then when I apply the patch I have :
$ patch < protobuf-c-disable-services.patch
patching file configure.ac
patching file Makefile.am
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 60.
2 out of 2 hunks FAILED -- saving rejects to file Makefile.am.rej
I use protobuf-c-0.15.
Original comment by [email protected]
on 13 Feb 2014 at 10:42
from protobuf-c.
[deleted comment]
from protobuf-c.
Compiled using 332 svn rev and Cmake 2.8.12.2
without additional switches \ turned off options
Original comment by [email protected]
on 13 Feb 2014 at 7:41
from protobuf-c.
Related Issues (20)
- 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
- 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.
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.