From nobody@FreeBSD.org  Tue Oct 16 02:53:06 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id A1FD5C7F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Oct 2012 02:53:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 7278B8FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Oct 2012 02:53:06 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9G2r6Pw097210
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Oct 2012 02:53:06 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9G2r6v6097209;
	Tue, 16 Oct 2012 02:53:06 GMT
	(envelope-from nobody)
Message-Id: <201210160253.q9G2r6v6097209@red.freebsd.org>
Date: Tue, 16 Oct 2012 02:53:06 GMT
From: Joo Rocha Braga Filho <goffredo@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: graphics/luminance does not compile if graphics/libraw is using OpenMP
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: h2+fbsdports@fsfe.org

>Number:         172750
>Category:       ports
>Synopsis:       graphics/luminance does not compile if graphics/libraw is using OpenMP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 16 03:00:00 UTC 2012
>Closed-Date:    Mon Nov 18 15:57:30 UTC 2013
>Last-Modified:  Mon Nov 18 15:57:30 UTC 2013
>Originator:     Joo Rocha Braga Filho
>Release:        9.1-PRERELEASE #23
>Organization:
>Environment:
FreeBSD 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #23: Sat Oct 13 18:35:35 BRT 2012 goffredo@:/usr/obj/usr/src/sys/SUPER amd64
>Description:
I compiled graphics/libraw with OpenMP option turned on, then compiled graphics/luminance, and got these errors:

"
[ 87%] Built target viewers
Linking CXX executable luminance-hdr
Linking CXX executable luminance-hdr-cli
/usr/local/lib/libraw_r.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_parallel_start'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_loop_dynamic_start'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_parallel_end'
/usr/local/lib/libraw_r.so: undefined reference to `omp_get_num_threads'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_loop_end'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_barrier'
/usr/local/lib/libraw_r.so: undefined reference to `omp_get_thread_num'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_loop_dynamic_next'
*** [luminance-hdr-cli] Error code 1
1 error
*** [CMakeFiles/luminance-hdr-cli.dir/all] Error code 2
/usr/local/lib/libraw_r.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_parallel_start'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_loop_dynamic_start'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_parallel_end'
/usr/local/lib/libraw_r.so: undefined reference to `omp_get_num_threads'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_loop_end'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_barrier'
/usr/local/lib/libraw_r.so: undefined reference to `omp_get_thread_num'
/usr/local/lib/libraw_r.so: undefined reference to `GOMP_loop_dynamic_next'
*** [luminance-hdr] Error code 1
1 error
*** [CMakeFiles/luminance-hdr.dir/all] Error code 2
2 errors
*** [all] Error code 2
1 error
*** [do-build] Error code 1

Stop in /usr/ports/graphics/luminance.
"

Recompiled graphics/libraw with OpenMP off, and compiled graphics/luminance Ok.

Note, I don't support this port anymore.
>How-To-Repeat:
Follow steps show in "Full Description".
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Oct 16 03:00:08 UTC 2012 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172750 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: h2+fbsdports@fsfe.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/172750: graphics/luminance does not compile if graphics/libraw is using OpenMP
Date: Tue, 16 Oct 2012 03:00:08 UT

 Maintainer of graphics/luminance,
 
 Please note that PR ports/172750 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/172750
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: h2+fbsdports@fsfe.org
To: bug-followup@FreeBSD.org
Cc: Edwin Groothuis <edwin@FreeBSD.org>, Alexey Dokuchaev <danfe@FreeBSD.org>
Subject: Re: ports/172750: graphics/luminance does not compile if graphics/libraw
 is using OpenMP
Date: Fri, 19 Oct 2012 22:34:34 +0200

 On 16.10.2012 05:00, Edwin Groothuis wrote:
 > Maintainer of graphics/luminance,
 > 
 > Please note that PR ports/172750 has just been submitted.
 > 
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 > 
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/172750
 > 
 
 (danfe@ in CC since he committed the other stuff)
 
 I have preliminary support for OpenMP in the luminance port which should
 work with libraw (both if libraw has OpenMP enabled and not), but I am
 waiting for upstream to accept patches and release a new minor version.
 Maybe we can add magic, to default to the OpenMP-Option, if the OpenMP
 option is set on installed libraw.
 
 Note, that since OpenMP support on libraw is not default, I don't think
 we need to do anything until then.
 
 What do you think?
 -- 
 Best,
 Hannes
State-Changed-From-To: feedback->closed 
State-Changed-By: jadawin 
State-Changed-When: Mon Nov 18 15:57:21 UTC 2013 
State-Changed-Why:  
Inactive since 19 Oct 2012. Please submit a new PR if still needed. 
Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172750 
>Unformatted:
