[ 
https://issues.apache.org/jira/browse/IGNITE-6261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16156294#comment-16156294
 ] 

Pranas Baliuka commented on IGNITE-6261:
----------------------------------------

It's {{pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)}}

{quote}
Imin:odbc pranas$ glibtoolize && aclocal && autoheader && automake 
--add-missing && autoreconf
glibtoolize: putting auxiliary files in '.'.
glibtoolize: linking file './ltmain.sh'
glibtoolize: putting macros in 'm4'.
glibtoolize: linking file 'm4/libtool.m4'
glibtoolize: linking file 'm4/ltoptions.m4'
glibtoolize: linking file 'm4/ltsugar.m4'
glibtoolize: linking file 'm4/ltversion.m4'
glibtoolize: linking file 'm4/lt~obsolete.m4'
aclocal: error: 'configure.ac' is required
Imin:odbc pranas$ pwd
/Users/pranas/Downloads/ignite-ignite-2.1/modules/platforms/cpp/odbc
Imin:odbc pranas$ cd ..
Imin:cpp pranas$ glibtoolize && aclocal && autoheader && automake --add-missing 
&& autoreconf
glibtoolize: putting auxiliary files in '.'.
glibtoolize: linking file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: linking file 'm4/libtool.m4'
glibtoolize: linking file 'm4/ltoptions.m4'
glibtoolize: linking file 'm4/ltsugar.m4'
glibtoolize: linking file 'm4/ltversion.m4'
glibtoolize: linking file 'm4/lt~obsolete.m4'
configure.ac:36: installing './ar-lib'
configure.ac:35: installing './compile'
configure.ac:24: installing './config.guess'
configure.ac:24: installing './config.sub'
configure.ac:28: installing './install-sh'
configure.ac:28: installing './missing'
binary/Makefile.am: installing './depcomp'
Imin:cpp pranas$ ./configure --enable-odbc --disable-node --disable-core
checking build system type... x86_64-apple-darwin16.7.0
checking host system type... x86_64-apple-darwin16.7.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... rm: core: is a directory
yes
checking whether gcc accepts -g... rm: core: is a directory
yes
checking for gcc option to accept ISO C89... rm: core: is a directory
none needed
checking whether gcc understands -c and -o together... rm: core: is a directory
yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for ar... ar
checking the archiver (ar) interface... rm: core: is a directory
ar
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
 is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin16.7.0 file names to 
x86_64-apple-darwin16.7.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin16.7.0 file names to toolchain 
format... func_convert_file_noop
checking for 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
 option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for g++... g++
checking whether we are using the GNU C++ compiler... rm: core: is a directory
yes
checking whether g++ accepts -g... rm: core: is a directory
yes
checking dependency style of g++... gcc3
checking for archiver @FILE support... rm: core: is a directory
no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... rm: core: is a directory
yes
checking for -force_load linker flag... yes
checking for ANSI C header files... rm: core: is a directory
no
checking for sys/types.h... rm: core: is a directory
yes
checking for sys/stat.h... rm: core: is a directory
yes
checking for stdlib.h... rm: core: is a directory
yes
checking for string.h... rm: core: is a directory
yes
checking for memory.h... rm: core: is a directory
yes
checking for strings.h... rm: core: is a directory
yes
checking for inttypes.h... rm: core: is a directory
yes
checking for stdint.h... rm: core: is a directory
yes
checking for unistd.h... rm: core: is a directory
yes
checking for dlfcn.h... rm: core: is a directory
yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
 supports shared libraries... yes
checking dynamic linker characteristics... darwin16.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
 is GNU ld... no
checking whether the g++ linker 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
 supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker 
(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
 supports shared libraries... yes
checking dynamic linker characteristics... darwin16.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating core-test/include/Makefile
config.status: creating core-test/Makefile
config.status: creating common/os/linux/include/Makefile
config.status: creating common/include/Makefile
config.status: creating common/Makefile
config.status: creating binary/include/Makefile
config.status: creating binary/Makefile
config.status: creating odbc/include/Makefile
config.status: creating odbc/Makefile
config.status: creating odbc-test/include/Makefile
config.status: creating odbc-test/Makefile
config.status: creating core/include/Makefile
config.status: creating core/Makefile
config.status: creating core/ignite.pc
config.status: creating jni/include/Makefile
config.status: creating jni/Makefile
config.status: creating ignite/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: core: is a directory
Imin:cpp pranas$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in common
Making all in include
make[3]: Nothing to be done for `all'.
Making all in os/linux/include
make[3]: Nothing to be done for `all'.
  CXX      os/linux/src/common/concurrent_os.lo
In file included from os/linux/src/common/concurrent_os.cpp:18:
./os/linux/include/ignite/common/concurrent_os.h:414:27: error: use of 
undeclared identifier 'pthread_condattr_setclock'; did you mean 
'pthread_condattr_setpshared'?
                    err = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~
                          pthread_condattr_setpshared
/usr/include/pthread.h:322:5: note: 'pthread_condattr_setpshared' declared here
int pthread_condattr_setpshared(pthread_condattr_t *, int);
    ^
In file included from os/linux/src/common/concurrent_os.cpp:18:
./os/linux/include/ignite/common/concurrent_os.h:505:27: error: use of 
undeclared identifier 'pthread_condattr_setclock'; did you mean 
'pthread_condattr_setpshared'?
                    err = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~
                          pthread_condattr_setpshared
/usr/include/pthread.h:322:5: note: 'pthread_condattr_setpshared' declared here
int pthread_condattr_setpshared(pthread_condattr_t *, int);
    ^
2 errors generated.
make[3]: *** [os/linux/src/common/concurrent_os.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
{qoute}

> ODBC support for Mac OSX
> ------------------------
>
>                 Key: IGNITE-6261
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6261
>             Project: Ignite
>          Issue Type: Wish
>          Components: odbc
>    Affects Versions: 2.1
>         Environment: Analytics
>            Reporter: Pranas Baliuka
>            Assignee: Igor Sapego
>             Fix For: 2.3
>
>
> In order for Ignite to be useful in analytics environment (accessing data via 
> R / Most reporting engines), the ODBC access is required.
> Analyst do use Mac OSX (not only Linux/Windows).
> The current ODBC driver is not compilable on OSX due to 1-2 different kernel 
> API functions.
> Similar incompatibility issues are already resolved in similar projects using 
> conditional macros in C language. i.e. it may not be a big challenge to make 
> it work.
> Thanks for planning and considerations!
> PS:
> For my use case the issue is a Blocker, because rJAVA is dead (requires Java 
> 6 installation on Mac OSX) and even with rJAVA , the JDBC implementation is 
> not working for R (class cast exceptions).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to