Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Aug 2011 18:53:33 GMT
From:      Norberto Lopes <nlopes.ml@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/159727: last.fm doesn't compile using clang
Message-ID:  <201108121853.p7CIrXdE059361@red.freebsd.org>
Resent-Message-ID: <201108121900.p7CJ0Kfp027147@freefall.freebsd.org>

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

>Number:         159727
>Category:       ports
>Synopsis:       last.fm doesn't compile using clang
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 12 19:00:19 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Norberto Lopes
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD danny 9.0-CURRENT FreeBSD 9.0-CURRENT #5: Tue Jul 12 17:37:10 PDT 2011     root@danny:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
When trying to compile last.fm using clang it errors out.

>How-To-Repeat:
Define compiler variables in order to compile in clang:

.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang -E
.endif
NO_WERROR=
WERROR=


cd /usr/ports/audio/last.fm && make clean && make
>Fix:
Patch attached


Patch attached with submission follows:

--- Settings.hI2011-08-11 17:01:04.654050218 -0700
+++ /tmp/Settings.hI2011-08-11 17:18:13.009047990 -0700
@@ -105,7 +105,7 @@ protected:
      public:
          MyQSettings( const UserSettings* const s )
          {
 -            beginGroup( s->username() );
 +            T::beginGroup( s->username() );
          }
      };


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



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