Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 238 Big Data Appliance
- 1.9K Data Science
- 450.2K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 544 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.8K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.5K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 154 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 436 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Issue : Could not open include file<threads.h>

We are in process of integrating new library to integrate with kafka.So downloaded librdkafka C++ library from GIT and trying to compile in our environment to generate the static library.
Our Environment Configuration
OS - Solaris 11 Sparc
Compiler - oracle developer studio 12.5.
Language : C++
Issue getting below error while compiling the source code.
Kindly help us to resolve the same
OracleDeveloperStudio12.5-solaris-sparc-bin/developerstudio12.5/bin/CC -m64 -mt -MD -MP -g -O2 -fPIC -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D__EXTENSIONS__ -DSIXTY_FOUR_BIT_LONGS -D_RWCONFIG_12s -DRW_MULTI_THREAD -DRWDB_ORACLE10X -D_RWSTD_MULTI_THREAD -D_REENTRANT -DIT_USE_STD_IOSTREAM -DWANT_ORBIX_FDS -DSYNCHRONIZATION_REQUIRED -I/usr/include -c rdkafka.c -o rdkafka.o -lpthread
"queue.h", line 688: Warning: parameter in inline asm statement unused: %0.
"tinycthread.h", line 36: Error: Could not open include file<threads.h>.
"tinycthread_extra.h", line 54: Error: thrd_t is not defined.
"tinycthread_extra.h", line 54: Error: thr is not defined.
"tinycthread_extra.h", line 54: Error: Badly formed expression.
"tinycthread_extra.h", line 62: Error: cnd_t is not defined.
"tinycthread_extra.h", line 62: Error: cnd is not defined.
"tinycthread_extra.h", line 62: Error: mtx_t is not defined.
"tinycthread_extra.h", line 62: Error: mtx is not defined.
"tinycthread_extra.h", line 62: Error: Badly formed expression.
"tinycthread_extra.h", line 67: Error: cnd_t is not defined.
"tinycthread_extra.h", line 67: Error: cnd is not defined.
"tinycthread_extra.h", line 67: Error: mtx_t is not defined.
"tinycthread_extra.h", line 67: Error: mtx is not defined.
"tinycthread_extra.h", line 67: Error: Badly formed expression.
"tinycthread_extra.h", line 76: Error: cnd_t is not defined.
"tinycthread_extra.h", line 76: Error: cnd is not defined.
"tinycthread_extra.h", line 76: Error: mtx_t is not defined.
"tinycthread_extra.h", line 76: Error: mtx is not defined.
"tinycthread_extra.h", line 76: Error: Expected an expression.
"rdposix.h", line 109: Warning: attribute unused is unsupported and will be skipped..
"rdatomic.h", line 52: Warning: attribute unused is unsupported and will be skipped..
"rdatomic.h", line 60: Warning: attribute unused is unsupported and will be skipped..
"rdatomic.h", line 77: Warning: attribute unused is unsupported and will be skipped..
"rdatomic.h", line 102: Warning: attribute unused is unsupported and will be skipped..
"rdatomic.h", line 116: Warning: attribute unused is unsupported and will be skipped..
"rdatomic.h", line 138: Warning: attribute unused is unsupported and will be skipped..
"rdatomic.h", line 145: Warning: attribute unused is unsupported and will be skipped..
"rdatomic.h", line 162: Warning: attribute unused is unsupported and will be skipped..
"rdatomic.h", line 188: Warning: attribute unused is unsupported and will be skipped..
"rdatomic.h", line 203: Warning: attribute unused is unsupported and will be skipped..
"rdposix.h", line 144: Warning: attribute unused is unsupported and will be skipped..
"rdposix.h", line 171: Warning: attribute unused is unsupported and will be skipped..
"rdposix.h", line 213: Warning: attribute unused is unsupported and will be skipped..
"rdposix.h", line 225: Warning: attribute unused is unsupported and will be skipped..
"rd.h", line 120: Warning: attribute unused is unsupported and will be skipped..
"rd.h", line 126: Warning: attribute unused is unsupported and will be skipped..
"rd.h", line 132: Warning: attribute unused is unsupported and will be skipped..
"rd.h", line 138: Warning: attribute unused is unsupported and will be skipped..
"rd.h", line 142: Warning: attribute unused is unsupported and will be skipped..
"rd.h", line 152: Warning: attribute unused is unsupported and will be skipped..
"rd.h", line 245: Warning: attribute unused is unsupported and will be skipped..
"rd.h", line 325: Warning: attribute unused is unsupported and will be skipped..
"rdtime.h", line 80: Warning: attribute unused is unsupported and will be skipped..
"rdtime.h", line 112: Warning: attribute unused is unsupported and will be skipped..
"rdtime.h", line 123: Warning: attribute unused is unsupported and will be skipped..
"rdtime.h", line 203: Error: TIME_UTC is not defined.
"rdtime.h", line 234: Error: TIME_UTC is not defined.
"rdaddr.h", line 107: Error: In this declaration "rsal_addr" is of an incomplete type "rd_sockaddr_inx_t[]".
"rdaddr.h", line 128: Warning: attribute unused is unsupported and will be skipped..
"rdaddr.h", line 175: Warning: attribute unused is unsupported and will be skipped..
"rdinterval.h", line 41: Warning: attribute unused is unsupported and will be skipped..
"rdinterval.h", line 66: Warning: attribute unused is unsupported and will be skipped..
"rdinterval.h", line 94: Warning: attribute unused is unsupported and will be skipped..
"rdinterval.h", line 103: Warning: attribute unused is unsupported and will be skipped..
"rdinterval.h", line 115: Warning: attribute unused is unsupported and will be skipped..
"rdinterval.h", line 125: Warning: attribute unused is unsupported and will be skipped..
"rdinterval.h", line 137: Warning: attribute unused is unsupported and will be skipped..
"rdinterval.h", line 147: Warning: attribute unused is unsupported and will be skipped..
"rdinterval.h", line 155: Warning: attribute unused is unsupported and will be skipped..
"rdavg.h", line 46: Error: mtx_t is not defined.
"rdavg.h", line 77: Warning: attribute unused is unsupported and will be skipped..
"rdavg.h", line 78: Error: ra_lock is not a member of rd_avg_s.
"rdavg.h", line 80: Error: ra_lock is not a member of rd_avg_s.
Compilation aborted, too many Error messages.
Answers
-
The <threads.h> header from C11 is only available on Solaris 11.4. Older versions of Solaris do not have C11 support and require using the POSIX threads API instead.