[MacPorts] #36004: root: error: token is not a valid binary operator in a preprocessor subexpression

MacPorts noreply at macports.org
Fri Sep 7 12:14:09 PDT 2012


#36004: root: error: token is not a valid binary operator in a preprocessor
subexpression
---------------------------------+------------------------------------------
 Reporter:  jfcaron@…            |       Owner:  mattiafrancescomoro@…        
     Type:  defect               |      Status:  new                          
 Priority:  Normal               |   Milestone:                               
Component:  ports                |     Version:  2.1.2                        
 Keywords:                       |        Port:  root                         
---------------------------------+------------------------------------------

Comment(by jonesc@…):

 In your original post you said you where using the cocoa variant. When
 using this, you use the native OS X Quartx graphics, and not X11.  In that
 case, the above link you provide is not really relevant at all.

 So which is it, are you using the cocoa variant or not ? Note that the
 cocoa variant is (very) experimental. If you are using it, and having
 issues, I suggest try running without it first and make sure everything
 works fine there first...

 The link also refers to OS X 10.8, whereas you said you where using 10.7.
 Which is it ?

 With 10.7, you could either be using the stock X11 provided by Apple, or
 Xquartz. With 10.8, Apple has removed their own X11, so XQuartz is the
 only option.

 I just tried myself using OS X 10.8 and Xcode 4.4.1, and I was not able to
 reproduce the issue discussed above, creating a new TCanvas using either
 X11 (XQuartz 2.7.3) or native OS X graphics....

 what do you get if you run

  > echo $DISPLAY

 at the command line ?

 If should look something line

 {{{
 Chris-Jones-Macbook-Pro ~ > echo $DISPLAY
 /tmp/launch-B7yZDP/org.macosforge.xquartz:0
 }}}

 Does it ?

 if you see anything like "localhost:0.0" then most likely you are
 incorrectly overriding your DISPLAY settings in one of your ~/.* config
 files which you should then remove.

 I personally only have 10.8 machines now, so if the issue is specific to
 10.7, I'm not going to be able to reproduce it I'm afraid....

 Chris

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


More information about the macports-tickets mailing list