Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 59606 invoked from network); 27 Jan 2010 01:04:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2010 01:04:56 -0000 Received: (qmail 70272 invoked by uid 500); 27 Jan 2010 01:04:56 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 70251 invoked by uid 500); 27 Jan 2010 01:04:56 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 70241 invoked by uid 99); 27 Jan 2010 01:04:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 01:04:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 01:04:55 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB080234C1F2 for ; Tue, 26 Jan 2010 17:04:34 -0800 (PST) Message-ID: <2009665454.53991264554274699.JavaMail.jira@brutus.apache.org> Date: Wed, 27 Jan 2010 01:04:34 +0000 (UTC) From: "Ning Zhang (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-898) Hive ODBC build fails on OSX In-Reply-To: <219137170.1256337481226.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-898?page=3Dcom.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 compilati= on 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 de= fault include directory, compilation error since boost/include cannot be fo= und. I modified the odbc/build.xml and odbc/Makefile to add a variable boos= t.home so that you can pointing it to the boost's the install directory. Sa= y if you install boost and thrift in /opt/local, you can compile the ODBC c= lient by=20 {code} $ ant compile-cpp -Dthrift.home=3D/opt/local -Dboost.home=3D/opt/local -D= word.size=3D32 {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/bui= ld/service/fb303/objs/FacebookService.o /Users/carl/src/SVN/hive-trunk2/bui= ld/service/fb303/objs/fb303_constants.o /Users/carl/src/SVN/hive-trunk2/bui= ld/service/fb303/objs/fb303_types.o /Users/carl/src/SVN/hive-trunk2/build/m= etastore/objs/ThriftHiveMetastore.o /Users/carl/src/SVN/hive-trunk2/build/m= etastore/objs/hive_metastore_constants.o /Users/carl/src/SVN/hive-trunk2/bu= ild/metastore/objs/hive_metastore_types.o /Users/carl/src/SVN/hive-trunk2/b= uild/service/objs/ThriftHive.o /Users/carl/src/SVN/hive-trunk2/build/servic= e/objs/hive_service_constants.o /Users/carl/src/SVN/hive-trunk2/build/servi= ce/objs/hive_service_types.o /Users/carl/src/SVN/hive-trunk2/build/odbc/obj= s/hiveclient.o /Users/carl/src/SVN/hive-trunk2/build/odbc/objs/HiveResultSe= t.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-ins= tall/lib -lthrift -o /Users/carl/src/SVN/hive-trunk2/build/odbc/lib/libhive= client.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/lib= hiveclient.so.1.0.0] Error 1 > BUILD FAILED > /Users/carl/src/SVN/hive-trunk2/build.xml:126: The following error occurr= ed while executing this line: > /Users/carl/src/SVN/hive-trunk2/build.xml:69: The following error occurre= d 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. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.