Opened 8 years ago

Last modified 8 years ago

#36006 closed defect

GRASS fails to compile — at Initial Version

Reported by: aaschwanden (Andy Aschwanden) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: grass

Description

Upgrading GRASS fails for me during compilation, see error message below. Cleaning the port and re-installing leads to the same error:

GRASS GIS compilation log


Started compilation: Wed Sep 5 10:48:48 AKDT 2012 -- Errors in: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.0/raster/r.out.png -- In case of errors please change into the directory with error and run 'make'. If you get multiple errors, you need to deal with them in the order they appear in the error log. If you get an error building a library, you will also get errors from anything which uses the library. -- Finished compilation: Wed Sep 5 10:49:19 AKDT 2012 make: * [default] Error 1 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.0' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.0" && /usr/bin/make -j4 -w default Exit code: 2 Error: org.macports.build for port grass returned: command execution failed Warning: targets not executed for grass: org.macports.activate org.macports.build org.macports.destroot org.macports.install Please see the log file for port grass for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/main.log

To report a bug, follow the instructions in the guide:

http://guide.macports.org/#project.tickets

Error: Processing of port grass failed

As suggest above, I tried:

$ cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.0/raster/ $ sudo make

and it worked without breaking. Then I did:

$ cd .. $ sudo make

and compilation failed with (again):

build_html_index.sh Generating HTML manual pages index (help system)... Generated HTML docs in ../dist.i386-apple-darwin12.1.0/docs/html/index.html


Following modules are missing the 'description.html' file in src code:


GRASS GIS compilation log


Started compilation: Wed Sep 5 14:40:02 AKDT 2012 -- Errors in: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.0/raster/r.out.png -- In case of errors please change into the directory with error and run 'make'. If you get multiple errors, you need to deal with them in the order they appear in the error log. If you get an error building a library, you will also get errors from anything which uses the library. -- Finished compilation: Wed Sep 5 14:40:43 AKDT 2012 make: * [default] Error 1

--

Now upon closer inspection of the log file, I find:

make -C r.out.png
echo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.0/raster/r.out.png >> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.0/error.log

/usr/bin/llvm-gcc-4.2 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.0/dist.i386-apple-darwin12.1.0/include -I/opt/local/include -pipe -O2 -arch x86_64 -I/opt/local/include -DPACKAGE=\""grassmods"\" -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.0/dist.i386-apple-darwin12.1.0/include -o OBJ.i386-apple-darwin12.1.0/r.out.png.o -c r.out.png.c r.out.png.c: In function ‘main’: r.out.png.c:238: error: dereferencing pointer to incomplete type r.out.png.c:239: error: dereferencing pointer to incomplete type r.out.png.c:240: error: dereferencing pointer to incomplete type r.out.png.c:250: error: ‘Z_DEFAULT_COMPRESSION’ undeclared (first use in this function) r.out.png.c:250: error: (Each undeclared identifier is reported only once r.out.png.c:250: error: for each function it appears in.) r.out.png.c:274: error: dereferencing pointer to incomplete type make[2]: * [OBJ.i386-apple-darwin12.1.0/r.out.png.o] Error 1

Any suggestions?

Thanks in advance,

Andy

Change History (0)

Note: See TracTickets for help on using tickets.