[MacPorts] #34981: Error compiling GRASS: project.h not found

MacPorts noreply at macports.org
Tue Jun 26 14:12:36 PDT 2012


#34981: Error compiling GRASS: project.h not found
--------------------------------+-------------------------------------------
 Reporter:  quantum7@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  2.1.1                                
 Keywords:                      |        Port:  grass                                
--------------------------------+-------------------------------------------
 I get the following error when trying to install grass:

 {{{
 --->  Cleaning grass
 ~ $ sudo port install grass
 --->  Computing dependencies for grass
 --->  Fetching archive for grass
 --->  Attempting to fetch grass-6.4.0_1.darwin_10.x86_64.tbz2 from
 http://packages.macports.org/grass
 --->  Fetching distfiles for grass
 --->  Verifying checksum(s) for grass
 --->  Extracting grass
 --->  Applying patches to grass
 --->  Configuring grass
 --->  Building grass
 Error: org.macports.build for port grass returned: command execution
 failed
 Please see the log file for port grass for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_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
 }}}

 The log suggests running make from the directory
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_grass/grass/work/grass-6.4.0/general/g.region

 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_grass/grass/work/grass-6.4.0/general/g.region
 $ make
 /usr/bin/gcc-4.2
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_grass/grass/work/grass-6.4.0/dist.i386
 -apple-darwin10.8.0/include -I/opt/local/include -O2 -arch x86_64
 -I/opt/local/include    -DPACKAGE=\""grassmods"\"  -I/opt/local/include
 -I/opt/local/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_grass/grass/work/grass-6.4.0/dist.i386
 -apple-darwin10.8.0/include -o OBJ.i386-apple-darwin10.8.0/printwindow.o
 -c printwindow.c
 printwindow.c:3:22: error: projects.h: No such file or directory
 printwindow.c: In function ‘print_window’:
 printwindow.c:485: error: storage size of ‘fact’ isn’t known
 printwindow.c:572: error: ‘LP’ undeclared (first use in this function)
 printwindow.c:572: error: (Each undeclared identifier is reported only
 once
 printwindow.c:572: error: for each function it appears in.)
 printwindow.c:572: error: expected ‘;’ before ‘lp’
 printwindow.c:573: error: ‘lp’ undeclared (first use in this function)
 make: *** [OBJ.i386-apple-darwin10.8.0/printwindow.o] Error 1
 }}}

 Some googling suggests that projects.h is a member of libproj4, but the
 error persists if I install the libproj4 package. So it's not a simple
 missing dependency, but a deeper build error.

 I am running MacPorts base version 2.1.1 on OS 10.6.8.

-- 
Ticket URL: <https://trac.macports.org/ticket/34981>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list