Code Monkey home page Code Monkey logo

Comments (10)

edenhill avatar edenhill commented on September 13, 2024

I dont have access to Visual Studio so I cant verify this, but a quick search suggests that pthreads-win32 could be used.

from librdkafka.

edenhill avatar edenhill commented on September 13, 2024

http://web.cs.du.edu/~sturtevant/pthread.html

from librdkafka.

winbatch avatar winbatch commented on September 13, 2024

Did a quick attempt to build. There are lots of includes to 'unix only' header files like 'unistd.h', 'sys/socket.h', etc which fail the build (before even getting to the pthread stuff).

from librdkafka.

edenhill avatar edenhill commented on September 13, 2024

I suggest you use cygwin, it should be easier to get going.

2014/1/2 winbatch [email protected]

Did a quick attempt to build. There are lots of includes to 'unix only'
header files like 'unistd.h', 'sys/socket.h', etc which fail the build
(before even getting to the pthread stuff).


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-31449073
.

from librdkafka.

winbatch avatar winbatch commented on September 13, 2024

Yeah, was hoping to avoid that (in a corporate environment with many
thousands of desktops). If that's my only option hopefully I can
statically link with Cygwin.

On Thursday, January 2, 2014, Magnus Edenhill wrote:

I suggest you use cygwin, it should be easier to get going.

2014/1/2 winbatch <[email protected] <javascript:_e({}, 'cvml',
'[email protected]');>>

Did a quick attempt to build. There are lots of includes to 'unix only'
header files like 'unistd.h', 'sys/socket.h', etc which fail the build
(before even getting to the pthread stuff).


Reply to this email directly or view it on GitHub<
https://github.com/edenhill/librdkafka/issues/45#issuecomment-31449073>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-31449512
.

from librdkafka.

winbatch avatar winbatch commented on September 13, 2024

Trying cygwin per your suggestion but running into warnings (I had more but removed -Wall and -Werror for now)
$ make
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdkafka.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdkafka_broker.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdkafka_msg.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdkafka_topic.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdkafka_defaultconf.c
rdkafka_defaultconf.c: In function ‘rd_kafka_anyconf_set_prop0’:
rdkafka_defaultconf.c:242:0: warning: "_PTR" redefined [enabled by default]
#define _PTR(TYPE,BASE,OFFSET) (TYPE)(((char *)(BASE))+(OFFSET))
^
In file included from /usr/include/string.h:10:0,
from rdkafka_defaultconf.c:29:
/usr/include/_ansi.h:50:0: note: this is the location of the previous definition
#define _PTR void *
^
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdcrc32.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdgz.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdaddr.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdrand.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdthread.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdqueue.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdlog.c
rdlog.c: In function ‘rdputs0’:
rdlog.c:100:5: warning: cast from pointer to integer of different size -Wpointer-to-int-castpthread_self());

from librdkafka.

edenhill avatar edenhill commented on September 13, 2024

librdkafka now builds and operates correctly under Cygwin

from librdkafka.

winbatch avatar winbatch commented on September 13, 2024

Apparently there is a free version of visual studio express. If you could get it to build there that would help immensely. I tried here but there are lots of unix specific includes (unistd.h, etc)

from librdkafka.

edenhill avatar edenhill commented on September 13, 2024

This is unfortunately not something I'm likely to do in my free time, but I could do it as a contracting job.

from librdkafka.

winbatch avatar winbatch commented on September 13, 2024

Fair enough

from librdkafka.

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.