What is wrong when clicking sound comes from glove box All lights work except headlights won't work 1998 S10 blazer?

97-98 Chevy blazer/S10 headlights on/off

I had the same problem on my 1997 s-10 blazer. Check the daytime running light modual under the dash,center,behind accessory outlets(cig.lighter).