[GRASS-dev] Build errors for GRASS 7.1 on Ubuntu?

Markus Metz markus.metz.giswork at gmail.com
Thu Jan 29 03:31:31 PST 2015


On Thu, Jan 29, 2015 at 11:51 AM, Blumentrath, Stefan
<Stefan.Blumentrath at nina.no> wrote:
> Thanks for the hint. I should have known that (as it also is written in the make output), sorry.
>
> Seems to be my self-compiled GDAL/OGR which is making problems...
> First error is in "grass7_trunk/db/drivers/ogr":
>
> /usr/local/lib/libgdal.so: undefined reference to `G__setenv'
> collect2: error: ld returned 1 exit status

That means that you have compiled GDAL with GRASS support. gdalinfo
--formats should also fail. This is relatively easy to fix. You need
to tell the system where the GRASS libraries are located that you used
to build GDAL with GRASS support, should be some GRASS 6.4.x version.
You can create a file named grass64.conf in the directory
/etc/ld.so.conf.d/ the contents being the /path/to/GRASS64/lib. If the
directory /etc/ld.so.conf.d/ does not exist, have a look at
/etc/ld.so.conf to find out where to put the file grass64.conf. After
that run ldconfig. All as root (sudo on Ubuntu). See also 'man
ldconfig'.

Markus M

>
> I suspect I have to update GDAL/OGR, but that I will do only on my private computer as I do not want to interfere with our production environment for testing purposes...
>
> Thanks for helping so far. I shall try to test t.what.rast tonight then.
>
> Kind regards,
> Stefan
>
> -----Original Message-----
> From: Markus Metz [mailto:markus.metz.giswork at gmail.com]
> Sent: 29. januar 2015 11:33
> To: Blumentrath, Stefan
> Cc: Markus Neteler; GRASS developers list
> Subject: Re: [GRASS-dev] Build errors for GRASS 7.1 on Ubuntu?
>
> On Thu, Jan 29, 2015 at 11:13 AM, Blumentrath, Stefan <Stefan.Blumentrath at nina.no> wrote:
>> Hi,
>>
>> and thanks for looking at this.
>>
>>
>>
>> The first error which occurs is here (line 3080):
>
> You need to report the first error in the list of directories with errors, i.e. the first entry after "Errors in:".
>
> Then you need to deal with the errors in the order they appear in this
> list: go to the first directory, run make and report.
>
> I suspect you need to make distclean, check svn status, solve conflicts, configure anew and make again.
>
> Markus M
>
>>
>> Status: Parsing /tmp/tmp0RJahD.h
>>
>> Status: Processing description list.
>>
>> Warning: Could not load library "grass_vedit.7.1.svn". Okay, I'll try
>> to load it at runtime instead.
>>
>> Status: Writing to OBJ.x86_64-unknown-linux-gnu/vedit.py.
>>
>> Status: Wrapping complete.
>>
>> sed -f fix.sed OBJ.x86_64-unknown-linux-gnu/vedit.py >
>> /data/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/
>> lib/vedit.py
>>
>> python -t -3 -m py_compile
>> /data/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/
>> lib/vedit.py
>>
>> Status: Preprocessing /tmp/tmpmQgkHh.h
>>
>> Status: gcc -E
>> -I/data/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
>> -I/data/src/grass7_trunk/dist.x86_64-unknown-linux-gnu/include
>> -D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD "-Dinline=" "-D__inline__="
>> "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)="
>> "-D__asm(x)=" "-DCTYPESGEN=1" /tmp/tmpmQgkHh.h
>>
>> Status: Parsing /tmp/tmpmQgkHh.h
>>
>> Error: /usr/include/GL/gl.h:90: Syntax error at '\n'
>>
>> Error: /usr/include/GL/gl.h:93: Syntax error at '\n'
>>
>> Status: Processing description list.
>>
>> Warning: Could not load library "grass_ogsf.7.1.svn". Okay, I'll try
>> to load it at runtime instead.
>>
>>
>>
>> Does that help to identify the issue?
>>
>>
>>
>> Cheers
>>
>> Stefan
>>
>>
>>
>> From: neteler.osgeo at gmail.com [mailto:neteler.osgeo at gmail.com] On
>> Behalf Of Markus Neteler
>> Sent: 29. januar 2015 09:40
>> To: Blumentrath, Stefan
>> Cc: GRASS developers list
>> Subject: Re: [GRASS-dev] Build errors for GRASS 7.1 on Ubuntu?
>>
>>
>>
>>
>> On Jan 29, 2015 9:30 AM, "Blumentrath, Stefan"
>> <Stefan.Blumentrath at nina.no>
>> wrote:
>>>
>>> Dear all,
>>>
>>>
>>>
>>> I was just about to test Sörens new t.rast.what module but it seems
>>> that I have to update my installation of GRASS 7 (trunk) first.
>>>
>>>
>>>
>>> Unfortunately, I get a lot of build errors with r64351 on Ubuntu
>>> 14.04…
>>>
>>>
>>>
>>> This is how I configure:
>>>
>>> CFLAGS="-O2 -msse -msse2 -mfpmath=sse -minline-all-stringops -g -Wall"
>>> LDFLAGS="-s" ./configure --with-cxx --with-sqlite --with-postgres
>>> --with-postgres-includes=/usr/include/postgresql --with-odbc
>>> --with-cairo --with-proj-share=/usr/local/share/proj
>>> --with-tcltk-includes=/usr/include/tcl8.4/ --with-freetype
>>> --with-freetype-includes=/usr/include/freetype2 --with-fftw
>>> --with-nls --with-python --with-tiff --with-geos --enable-largefile
>>> --with-readline --with-blas --with-glw --with-motif --with-openmp
>>> --with-wxwidgets --with-pthread --with-liblas --with-netcdf
>>> --with-lapack
>>>
>>>
>>>
>>> ./configure runs without issues, but on make I get errors in more
>>> than
>>> 40/50 modules (gui, raster, vector, temporal, db).
>>
>> The first error in the list is relevant. The rest may depend on it.
>>
>>> One of the error messages is a syntax error in a header file:
>>>
>>> /usr/include/GL/gl.h:90: Syntax error at '\n'
>>
>> That's normal. Please check for the first listed lib or module in the
>> error file, cd into it and run make to see the error.
>>
>> Markus
>>
>>
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list