[GRASS-dev] trying to compile GRASS 7 on Mavericks

Anna Petrášová kratochanna at gmail.com
Tue Dec 3 11:43:56 PST 2013


Hi all,

I am still having problems to compile GRASS on Maverick, it cannot find
GDAL, I already reinstalled the frameworks and Xcode, too. I tried to
compile the simple code which seems to be compiled during configure:
#include <gdal.h>


int main(int argc, const char* argv[])
{
    GDALOpen("foo", GA_ReadOnly);
}

which gives me:

gis-imac:Desktop akratoc$ gcc test.c

test.c:14:5: warning: ignoring return value of function declared with
warn_unused_result attribute [-Wunused-result]

    GDALOpen("foo", GA_ReadOnly);

    ^~~~~~~~ ~~~~~~~~~~~~~~~~~~

1 warning generated.

Undefined symbols for architecture x86_64:

  "_GDALOpen", referenced from:

      _main in test-sew0gz.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see
invocation)

I am having the same problem also on another computer. Any help appreciated.

Thanks,
Anna





On Fri, Nov 29, 2013 at 3:27 PM, Markus Neteler <neteler at osgeo.org> wrote:

> On Fri, Nov 29, 2013 at 9:02 PM, Michael Barton <Michael.Barton at asu.edu>
> wrote:
> > I've been chilling out after Thanksgiving and thought I'd try compiling
> > GRASS on Mavericks.
> >
> > I had a couple of configure issues.
> >
> > --with-odbc failed. Is this not included with Mavericks or do I need to
> > reference it in some other way?
> > --with nls also failed. I wonder if I have to update the version of
> gettext
> > that I compiled on Lion?
> >
> > When I dropped these out, I got it to compile. But it errors out with the
> > following:
> >
> > Undefined symbols for architecture x86_64:
> >   "___sincos_stret", referenced from:
>
> I found these "random" links:
>
> http://trac.macports.org/ticket/40961
>
>
> http://stackoverflow.com/questions/19015780/sincos-stret-undefined-symbol-when-linking
>
> Perhaps giving the right idea..
> Markus
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20131203/aaa9e8ae/attachment.html>


More information about the grass-dev mailing list