Git Product home page Git Product logo

Comments (6)

lipnitsk avatar lipnitsk commented on June 9, 2024

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 directoryC:/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 directoryC:/progs/mingw/src/protobuf-c-0.15/src'
make: *** [all-recursive] Error 1

from protobuf-c.

lipnitsk avatar lipnitsk commented on June 9, 2024

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.

lipnitsk avatar lipnitsk commented on June 9, 2024

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.

lipnitsk avatar lipnitsk commented on June 9, 2024

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.

lipnitsk avatar lipnitsk commented on June 9, 2024

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.

edmonds avatar edmonds commented on June 9, 2024

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)

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.