# Texmaker build problem. Can't generate new pdf

I have installed texmaker (version:4.0.3) and it worked for some test file. But when I tried to run a predefined template, texmaker can't generate the changed pdf (it shows the old pdf). So I checked out the log and found an error

Package epstopdf Warning: Drivers other than pdftex.def' are not supported.

)) (/usr/share/texlive/texmf-dist/tex/latex/subfigure/subfigure.sty
****************************************
* Local config file subfigure.cfg used *
****************************************
(/usr/share/texlive/texmf-dist/tex/latex/subfigure/subfigure.cfg))
(./booktabs.sty) (./rotating.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)) (./listings.sty
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty

***
*** This file requires listings.sty' version 1.5.
*** You have a serious problem, so I'm exiting ...
***


texlive-latex-recommended and texlive-latex-extra both packages are already installed. Also /usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty file is available.

System:

Ubuntu 13.10 64bit


What is the problem? What am I missing?

-
What version is your listings.sty? Does running pdflatex on the file directly work? – bombcar Mar 26 '14 at 19:57
@bombcar Thanks for quick reply. listings.sty version is 1.5 [\def\fileversion{1.5} from file], and pdflatex file.tex is showing the same error. – shantanu Mar 26 '14 at 20:02
I think its subfigure.sty problem. Is it? – shantanu Mar 26 '14 at 20:28
Why is it loading listings from current dir? Along with booktabs and rotating. That lstmisc is probably not right for the local listings version. – daleif Mar 26 '14 at 20:41
@daleif You are right, I found a local listing.sty. Which version is 1.4(older). Removing this file works for me. Please post the comment as answer. I will mark it as accepted answer – shantanu Mar 26 '14 at 20:44