Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 May 2012 19:43:32 GMT
From:      Oleksii <oleksii.tsai@googlemail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/167843: devel/simgear 2.6.0_1 build fails due to missing include path
Message-ID:  <201205131943.q4DJhWUE003926@red.freebsd.org>
Resent-Message-ID: <201205131950.q4DJo3Ok077517@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167843
>Category:       ports
>Synopsis:       devel/simgear 2.6.0_1 build fails due to missing include path
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 13 19:50:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Oleksii
>Release:        9.0-RELEASE-p1
>Organization:
>Environment:
FreeBSD zirco.compal.nb 9.0-RELEASE-p1 FreeBSD 9.0-RELEASE-p1 #2: Mon May  7 20:37:35 UTC 2012     oleksii@zirco.compal.nb:/usr/obj/usr/src/sys/COMPAL  i386
>Description:
The compilation devel/simgear (version 2.6.0_1) fails with multiple errors. The reason for this is, according to my analysis, missing include path. Many includes are written as following:

#include <sigmear/io/raw_socket.hxx>

, whereas simgear directory is not specified as an include path, i.e. no corresponding -I flag is issued to the compiler. simgear directory is located in source top directory.

>How-To-Repeat:
# cd /usr/ports/devel/simgear
# make
>Fix:
Solved by making CMake pass simgear directory to the include paths. Modified SimGearComponent.cmake file to eliminate code duplication, because it is used by several modules that failed to compile.


--- SimGearComponent.cmake      2012-05-13 22:21:59.000000000 +0000
+++ SimGearComponent.cmake.new  2012-05-13 22:23:37.000000000 +0000
@@ -1,4 +1,6 @@
 
+include_directories(BEFORE ${PROJECT_SOURCE_DIR})
+
 macro(simgear_component_common name includePath sourcesList sources headers)
     if (SIMGEAR_SHARED)


Patch attached with submission follows:

--- SimGearComponent.cmake	2012-05-13 22:21:59.000000000 +0000
+++ SimGearComponent.cmake.new	2012-05-13 22:23:37.000000000 +0000
@@ -1,4 +1,6 @@
 
+include_directories(BEFORE ${PROJECT_SOURCE_DIR})
+
 macro(simgear_component_common name includePath sourcesList sources headers)
     if (SIMGEAR_SHARED)
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205131943.q4DJhWUE003926>