ports/159727: last.fm doesn't compile using clang

Norberto Lopes nlopes.ml at gmail.com
Fri Aug 12 19:00:20 UTC 2011


>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 at 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:



More information about the freebsd-ports-bugs mailing list