You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Carl Steinbach (JIRA)" <ji...@apache.org> on 2009/10/24 00:38:01 UTC
[jira] Created: (HIVE-898) Hive ODBC build fails on OSX
Hive ODBC build fails on OSX
----------------------------
Key: HIVE-898
URL: https://issues.apache.org/jira/browse/HIVE-898
Project: Hadoop Hive
Issue Type: Bug
Components: Build Infrastructure
Affects Versions: 0.4.0
Environment: OS X 10.5.8
Reporter: Carl Steinbach
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/libhiveclient.so.1.0.0 \
[exec] && ln -sf libhiveclient.so.1.0.0 /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhiveclient.so
[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/libhiveclient.so.1.0.0] Error 1
BUILD FAILED
/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.
[jira] Updated: (HIVE-898) Hive ODBC build fails on OSX
Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zheng Shao updated HIVE-898:
----------------------------
Resolution: Fixed
Fix Version/s: 0.6.0
0.5.0
Release Note: HIVE-898. Hive ODBC build fails on OSX. (Carl Steinbach and Ning Zhang via zshao)
Hadoop Flags: [Reviewed]
Status: Resolved (was: Patch Available)
Committed to branch-0.4, 0,5 and trunk. Thanks Carl and Ning!
> Hive ODBC build fails on OSX
> ----------------------------
>
> Key: HIVE-898
> URL: https://issues.apache.org/jira/browse/HIVE-898
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Build Infrastructure
> Affects Versions: 0.4.1
> Environment: OS X 10.5.8
> Reporter: Carl Steinbach
> Assignee: Ning Zhang
> Fix For: 0.4.2, 0.5.0, 0.6.0
>
> 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/libhiveclient.so.1.0.0 \
> [exec] && ln -sf libhiveclient.so.1.0.0 /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhiveclient.so
> [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/libhiveclient.so.1.0.0] Error 1
> BUILD FAILED
> /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.
[jira] Assigned: (HIVE-898) Hive ODBC build fails on OSX
Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zheng Shao reassigned HIVE-898:
-------------------------------
Assignee: Ning Zhang
> Hive ODBC build fails on OSX
> ----------------------------
>
> Key: HIVE-898
> URL: https://issues.apache.org/jira/browse/HIVE-898
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Build Infrastructure
> Affects Versions: 0.4.1
> Environment: OS X 10.5.8
> Reporter: Carl Steinbach
> Assignee: Ning Zhang
> 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/libhiveclient.so.1.0.0 \
> [exec] && ln -sf libhiveclient.so.1.0.0 /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhiveclient.so
> [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/libhiveclient.so.1.0.0] Error 1
> BUILD FAILED
> /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.
[jira] Updated: (HIVE-898) Hive ODBC build fails on OSX
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carl Steinbach updated HIVE-898:
--------------------------------
Tags: ODBC OSX
Fix Version/s: 0.4.0
Status: Patch Available (was: Open)
> Hive ODBC build fails on OSX
> ----------------------------
>
> Key: HIVE-898
> URL: https://issues.apache.org/jira/browse/HIVE-898
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Build Infrastructure
> Affects Versions: 0.4.0
> Environment: OS X 10.5.8
> Reporter: Carl Steinbach
> Fix For: 0.4.0
>
> Attachments: HIVE-898.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/libhiveclient.so.1.0.0 \
> [exec] && ln -sf libhiveclient.so.1.0.0 /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhiveclient.so
> [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/libhiveclient.so.1.0.0] Error 1
> BUILD FAILED
> /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.
[jira] Commented: (HIVE-898) Hive ODBC build fails on OSX
Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12769601#action_12769601 ]
Ning Zhang commented on HIVE-898:
---------------------------------
+1
thanks for making this work on Mac.
> Hive ODBC build fails on OSX
> ----------------------------
>
> Key: HIVE-898
> URL: https://issues.apache.org/jira/browse/HIVE-898
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Build Infrastructure
> Affects Versions: 0.4.0
> Environment: OS X 10.5.8
> Reporter: Carl Steinbach
> Fix For: 0.4.0
>
> Attachments: HIVE-898.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/libhiveclient.so.1.0.0 \
> [exec] && ln -sf libhiveclient.so.1.0.0 /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhiveclient.so
> [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/libhiveclient.so.1.0.0] Error 1
> BUILD FAILED
> /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.
[jira] Commented: (HIVE-898) Hive ODBC build fails on OSX
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805312#action_12805312 ]
Carl Steinbach commented on HIVE-898:
-------------------------------------
+1 works for me!
> Hive ODBC build fails on OSX
> ----------------------------
>
> Key: HIVE-898
> URL: https://issues.apache.org/jira/browse/HIVE-898
> 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/libhiveclient.so.1.0.0 \
> [exec] && ln -sf libhiveclient.so.1.0.0 /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhiveclient.so
> [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/libhiveclient.so.1.0.0] Error 1
> BUILD FAILED
> /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.
[jira] Updated: (HIVE-898) Hive ODBC build fails on OSX
Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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
{code}
$ ant compile-cpp -Dthrift.home=/opt/local -Dboost.home=/opt/local -Dword.size=32
{code}
> Hive ODBC build fails on OSX
> ----------------------------
>
> Key: HIVE-898
> URL: https://issues.apache.org/jira/browse/HIVE-898
> 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/libhiveclient.so.1.0.0 \
> [exec] && ln -sf libhiveclient.so.1.0.0 /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhiveclient.so
> [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/libhiveclient.so.1.0.0] Error 1
> BUILD FAILED
> /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.
[jira] Updated: (HIVE-898) Hive ODBC build fails on OSX
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carl Steinbach updated HIVE-898:
--------------------------------
Attachment: HIVE-898.patch
> Hive ODBC build fails on OSX
> ----------------------------
>
> Key: HIVE-898
> URL: https://issues.apache.org/jira/browse/HIVE-898
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Build Infrastructure
> Affects Versions: 0.4.0
> Environment: OS X 10.5.8
> Reporter: Carl Steinbach
> Attachments: HIVE-898.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/libhiveclient.so.1.0.0 \
> [exec] && ln -sf libhiveclient.so.1.0.0 /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhiveclient.so
> [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/libhiveclient.so.1.0.0] Error 1
> BUILD FAILED
> /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.
[jira] Updated: (HIVE-898) Hive ODBC build fails on OSX
Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zheng Shao updated HIVE-898:
----------------------------
Affects Version/s: (was: 0.4.0)
0.4.1
Fix Version/s: (was: 0.4.0)
0.4.2
> Hive ODBC build fails on OSX
> ----------------------------
>
> Key: HIVE-898
> URL: https://issues.apache.org/jira/browse/HIVE-898
> 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
>
>
> 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/libhiveclient.so.1.0.0 \
> [exec] && ln -sf libhiveclient.so.1.0.0 /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhiveclient.so
> [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/libhiveclient.so.1.0.0] Error 1
> BUILD FAILED
> /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.
[jira] Updated: (HIVE-898) Hive ODBC build fails on OSX
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carl Steinbach updated HIVE-898:
--------------------------------
Fix Version/s: (was: 0.4.2)
(was: 0.6.0)
Affects Version/s: (was: 0.4.1)
> Hive ODBC build fails on OSX
> ----------------------------
>
> Key: HIVE-898
> URL: https://issues.apache.org/jira/browse/HIVE-898
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Build Infrastructure
> Environment: OS X 10.5.8
> Reporter: Carl Steinbach
> Assignee: Ning Zhang
> Fix For: 0.5.0
>
> 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/libhiveclient.so.1.0.0 \
> [exec] && ln -sf libhiveclient.so.1.0.0 /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhiveclient.so
> [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/libhiveclient.so.1.0.0] Error 1
> BUILD FAILED
> /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.