<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: troubles building librdkafka in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650816#M495940</link>
    <description>&lt;P&gt;&amp;gt;aCC ... -mt -lpthread -lrt -bdynamic -o librdkafka.so.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change -bdynamic to just -b.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Oct 2014 04:08:46 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2014-10-20T04:08:46Z</dc:date>
    <item>
      <title>troubles building librdkafka</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650698#M495939</link>
      <description>&lt;P&gt;hi, All:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm try to compile the 3rd opensource library: librdkafka, and &amp;nbsp;then solve some compile problems. but can't handle the last problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the first step, compile librdkafka library, and no errror happen.&lt;/P&gt;&lt;P&gt;echo "uname is HP-UX;"&lt;BR /&gt;uname is HP-UX;&lt;BR /&gt;Creating shared library librdkafka.so.1&lt;BR /&gt;aCC rdqueue.o rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_defaultconf.o rdkafka_timer.o rdkafka_offset.o rdcrc32.o rdgz.o rdaddr.o rdrand.o rdthread.o rdlog.o -mt -lpthread -lrt -bdynamic -o librdkafka.so.1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Creating static library librdkafka.a&lt;BR /&gt;ar rcs librdkafka.a rdqueue.o rdkafka.o rdkafka_broker.o rdkafka_msg.o rdkafka_topic.o rdkafka_defaultconf.o rdkafka_timer.o rdkafka_offset.o rdcrc32.o rdgz.o rdaddr.o rdrand.o rdthread.o rdlog.o&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checking librdkafka integrity&lt;BR /&gt;librdkafka.so.1 OK&lt;BR /&gt;librdkafka.a OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when compile the example, and occur the link error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;aCC -I../src rdkafka_example.c -mt -lpthread -lrt -o rdkafka_example \ &amp;nbsp;&amp;nbsp;../src/librdkafka.a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ld: Unsatisfied symbol "spinlock(lock*)" in file ../src/librdkafka.a[rdkafka.o]&lt;BR /&gt;ld: Unsatisfied symbol "atomic_lock_in_use" in file ../src/librdkafka.a[rdkafka.o]&lt;BR /&gt;ld: Unsatisfied symbol "spinunlock(lock*)" in file ../src/librdkafka.a[rdkafka.o]&lt;BR /&gt;ld: Unsatisfied symbol "atomic_op_lock" in file ../src/librdkafka.a[rdkafka.o]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was brathered this problem some day.hope some help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thinks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2014 03:10:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650698#M495939</guid>
      <dc:creator>dongfang</dc:creator>
      <dc:date>2014-10-20T03:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: troubles building librdkafka</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650816#M495940</link>
      <description>&lt;P&gt;&amp;gt;aCC ... -mt -lpthread -lrt -bdynamic -o librdkafka.so.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change -bdynamic to just -b.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2014 04:08:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650816#M495940</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-10-20T04:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: troubles building librdkafka</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650880#M495941</link>
      <description>&lt;P&gt;change to -b, but no effect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for test, I create a simple test code, like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//-------------------------------------Test code begin ------------------------------------------&lt;BR /&gt;#ifndef _KERNEL&lt;BR /&gt;#define _KERNEL&lt;BR /&gt;#endif&lt;BR /&gt;#include &amp;lt;sys/spinlock.h&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main (int argc, char **argv)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf("spinlock test\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; int kk = 0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lock_t t;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; spinlock(&amp;amp;t);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//-------------------------------------Test code end ------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and compile, the same thing is occur:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------------------------------------- compile begin -----------------------------------------------------&lt;/P&gt;&lt;P&gt;aCC -I../src -mt -D_INCLUDE__STDC__ -D_INCLUDE_POSIX4_SOURCE -D__HP_NO_STRING_OVERLOADS -D_INCLUDE_POSIX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_INCLUDE_HPUX_SOURCE -D_HPUX_SOURCE -D__STDC__ -D_PROTOTYPES rdkafka_example.c -o rdkafka_example \&lt;BR /&gt;-mt -lpthread -lrt&lt;BR /&gt;ld: Unsatisfied symbol "spinlock(lock*)" in file rdkafka_example.o&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------------- compile end -----------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here whether we need linke some library about spinlock?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2014 06:42:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650880#M495941</guid>
      <dc:creator>dongfang</dc:creator>
      <dc:date>2014-10-20T06:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: troubles building librdkafka, no spinlocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650896#M495942</link>
      <description>&lt;P&gt;&amp;gt;ld: Unsatisfied symbol "spinlock(lock*)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ah, these are C++ mangled names.&amp;nbsp; Why are you developing with aC++?&lt;/P&gt;&lt;P&gt;The header file &amp;lt;sys/spinlock.h&amp;gt; hasn't been C++ified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try doing:&lt;/P&gt;&lt;P&gt;#ifdef __cplusplus&lt;/P&gt;&lt;P&gt;extern "C" {&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;#include &amp;lt;sys/spinlock.h&amp;gt;&lt;/P&gt;&lt;P&gt;#ifdef __cplusplus&lt;BR /&gt;}&amp;nbsp;&amp;nbsp; // extern "C"&lt;BR /&gt;#endif&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 06:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650896#M495942</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-10-21T06:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: troubles building librdkafka</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650974#M495943</link>
      <description>&lt;P&gt;here likely exist some &amp;nbsp;conflict define, when I use the&amp;nbsp;&lt;SPAN&gt;extern "C" define, some happen!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code:&lt;BR /&gt;#ifdef __cplusplus&lt;BR /&gt;extern "C" {&lt;BR /&gt;#endif&lt;BR /&gt;#include &amp;lt;sys/spinlock.h&amp;gt;&lt;/P&gt;&lt;P&gt;#ifdef __cplusplus&lt;BR /&gt;} // extern "C"&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compile error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"/usr/include/sys/kern_svcs.h", line 58: error #2338: more than one instance&lt;BR /&gt;of overloaded function "strtol" has "C" linkage&lt;BR /&gt;extern long strtol __((const char *));&lt;BR /&gt;^&lt;/P&gt;&lt;P&gt;"/usr/include/sys/kern_svcs.h", line 80: error #2338: more than one instance&lt;BR /&gt;of overloaded function "sleep" has "C" linkage&lt;BR /&gt;extern int sleep __((void *, int));&lt;BR /&gt;^&lt;/P&gt;&lt;P&gt;"/usr/include/sys/kern_svcs.h", line 93: error #2338: more than one instance&lt;BR /&gt;of overloaded function "sprintf" has "C" linkage&lt;BR /&gt;extern int sprintf __((char *str,int len,const char *fmt, ...));&lt;BR /&gt;^&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oh, for schedule pressure, I replace spinlock with pthread_mutex, and it's work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2014 09:04:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6650974#M495943</guid>
      <dc:creator>dongfang</dc:creator>
      <dc:date>2014-10-20T09:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: troubles building librdkafka, no spinlocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6651036#M495944</link>
      <description>&lt;P&gt;&amp;gt;here likely exist some &amp;nbsp;conflict define, when I use the&amp;nbsp;&lt;SPAN&gt;extern "C" define, some happen!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;#define _KERNEL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most likely it is illegal for you to define _KERNEL when you are developing for user space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 06:22:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6651036#M495944</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-10-21T06:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: troubles building librdkafka</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6651132#M495945</link>
      <description>&lt;P&gt;if don't define _KERNEL, then can't refer spinlock struct.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2014 13:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6651132#M495945</guid>
      <dc:creator>dongfang</dc:creator>
      <dc:date>2014-10-20T13:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: troubles building librdkafka, no spinlocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6651352#M495946</link>
      <description>&lt;P&gt;&amp;gt;if don't define _KERNEL, then can't refer spinlock struct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then it isn't available for user space.&lt;/P&gt;&lt;P&gt;I just took a look and there are no man pages nor are there any library routines to support this.&lt;/P&gt;&lt;P&gt;Just some internal ones for libpthread.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 06:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/6651352#M495946</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-10-21T06:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: troubles building librdkafka</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/7165826#M495947</link>
      <description>&lt;P&gt;I know this topic would be a bit old for you. However, if you can help would be very appreciated.&lt;/P&gt;&lt;P&gt;I am currently building the librdkafka for my HPUX as well, however, I am not even able to rebuild the library. My system does not have bash, mklove, cmake, so I can not generated the required config.h &amp;amp; Makefile.config.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering how did you generate the config.h &amp;amp; Makefile.config? are you able to share your config.h &amp;amp; Makefile.config?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 02:59:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/troubles-building-librdkafka/m-p/7165826#M495947</guid>
      <dc:creator>damienwei</dc:creator>
      <dc:date>2022-05-09T02:59:53Z</dc:date>
    </item>
  </channel>
</rss>

