PB7, PD7 (on ATMega32) won't work when pull ups enabled. Also PC6 and PC7 don't show output
Check the Alternate Functions of Port B/C section in the datasheet. It shows that for Port C


  TOSC2 – Port C, Bit 7 TOSC2, Timer Oscillator pin 2: When the AS2 bit
  in ASSR is set (one) to enable asynchronous clocking of
  Timer/Counter2, pin PC7 is disconnected from the port, and becomes the
  inverting output of the Oscillator amplifier. In this mode, a Crystal
  Oscillator is connected to this pin, and the pin can not be used as an
  I/O pin.
  
  TOSC1 – Port C, Bit 6 TOSC1, Timer Oscillator pin 1: When
  the AS2 bit in ASSR is set (one) to enable asynchronous clocking of
  Timer/Counter2, pin PC6 is disconnected from the port, and becomes the
  input of the inverting Oscillator amplifier. In this mode, a Crystal
  Oscillator is connected to this pin, and the pin can not be used as an
  I/O pin


Which is likely why you can't output on those pins. There are similar sections for other ports, and a table that shows exactly which signals can override each pin (eg Overriding Signals for Alternate Functions in PB7..PB4).

Take a look through those entries, then if you're still having trouble post your full program including initialisation code.