hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ning Zhang (JIRA)" <>
Subject [jira] Updated: (HIVE-898) Hive ODBC build fails on OSX
Date Wed, 27 Jan 2010 01:04:34 GMT


Ning Zhang updated HIVE-898:

    Attachment: HIVE-898_2.patch

I found the patch stopped working the trunk now. I'm uploading a new patch based on Carl's
previous patch. This patches solves the following compilation errors:
 1) assert.h should be included in hiveclienthelper.cpp
 2) if boost is included other than the /usr/include or the C compiler's default include directory,
compilation error since boost/include cannot be found. I modified the odbc/build.xml and odbc/Makefile
to add a variable boost.home so that you can pointing it to the boost's the install directory.
Say if you install boost and thrift in /opt/local, you can compile the ODBC client by 

  $ ant compile-cpp -Dthrift.home=/opt/local -Dboost.home=/opt/local -Dword.size=32

> Hive ODBC build fails on OSX
> ----------------------------
>                 Key: HIVE-898
>                 URL:
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Build Infrastructure
>    Affects Versions: 0.4.1
>         Environment: OS X 10.5.8
>            Reporter: Carl Steinbach
>             Fix For: 0.4.2
>         Attachments: HIVE-898.patch, HIVE-898_2.patch
> Building the Hive ODBC library on OS X fails with the following error:
>      [exec] g++ -m32 -DARCH32 -shared /Users/carl/src/SVN/hive-trunk2/build/service/fb303/objs/FacebookService.o
/Users/carl/src/SVN/hive-trunk2/build/service/fb303/objs/fb303_constants.o /Users/carl/src/SVN/hive-trunk2/build/service/fb303/objs/fb303_types.o
/Users/carl/src/SVN/hive-trunk2/build/metastore/objs/ThriftHiveMetastore.o /Users/carl/src/SVN/hive-trunk2/build/metastore/objs/hive_metastore_constants.o
/Users/carl/src/SVN/hive-trunk2/build/metastore/objs/hive_metastore_types.o /Users/carl/src/SVN/hive-trunk2/build/service/objs/ThriftHive.o
/Users/carl/src/SVN/hive-trunk2/build/service/objs/hive_service_constants.o /Users/carl/src/SVN/hive-trunk2/build/service/objs/hive_service_types.o
/Users/carl/src/SVN/hive-trunk2/build/odbc/objs/hiveclient.o /Users/carl/src/SVN/hive-trunk2/build/odbc/objs/HiveResultSet.o
/Users/carl/src/SVN/hive-trunk2/build/odbc/objs/HiveColumnDesc.o /Users/carl/src/SVN/hive-trunk2/build/odbc/objs/HiveRowSet.o
/Users/carl/src/SVN/hive-trunk2/build/odbc/objs/hiveclienthelper.o -L/Users/carl/tmp/thrift-install/lib
-lthrift -o /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/ \
>      [exec]         && ln -sf /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/
>      [exec] Undefined symbols:
>      [exec]   "_main", referenced from:
>      [exec]       start in crt1.10.5.o
>      [exec] ld: symbol(s) not found
>      [exec] collect2: ld returned 1 exit status
>      [exec] make: *** [/Users/carl/src/SVN/hive-trunk2/build/odbc/lib/]
Error 1
> /Users/carl/src/SVN/hive-trunk2/build.xml:126: The following error occurred while executing
this line:
> /Users/carl/src/SVN/hive-trunk2/build.xml:69: The following error occurred while executing
this line:
> /Users/carl/src/SVN/hive-trunk2/odbc/build.xml:62: exec returned: 2
> The problem is that OSX does not support -shared. You need to either use -dynamiclib
or -bundle when making dynamic libraries.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message