pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: update devel/cppcheck with qt option



On Thu, 21 Apr 2011, Thomas Klausner wrote:

> Attached is much nicer than the current pkgsrc version, and it works
> fine for me both with qt enabled and disabled. Please use it when you
> update the package.

But now build depends on cmake. So I moved that PKG_OPTIONS.cppcheck 
directly into the qt part in options.mk. But since not using cmake I had 
to change that do-install target to not copy from "cli" directory.
That worked for the non-qt.

I had cmake build failures when I attempted to do the qt step. Problem 
in cmake build not in cppcheck. This is unrelated to cppcheck, but here 
was the beginning of the errors:

Scanning dependencies of target cmForm
[ 17%] Building C object 
Source/CursesDialog/form/CMakeFiles/cmForm.dir/fld_arg.o
In file included from 
/usr/pkgsrc/devel/cmake/work/.buildlink/include/unctrl.h:54,
                 from /usr/include/curses.h:209,
                 from 
/usr/pkgsrc/devel/cmake/work/cmake-2.8.4/Source/CursesDialog/form/form.h:50,
                 from 
/usr/pkgsrc/devel/cmake/work/cmake-2.8.4/Source/CursesDialog/form/form.priv.h:34,
                 from 
/usr/pkgsrc/devel/cmake/work/cmake-2.8.4/Source/CursesDialog/form/fld_arg.c:33:
/usr/pkgsrc/devel/cmake/work/.buildlink/include/ncurses.h:129: error: 
conflicting types for 'chtype'
/usr/include/curses.h:54: error: previous declaration of 'chtype' was 
here
In file included from 
/usr/pkgsrc/devel/cmake/work/.buildlink/include/unctrl.h:54,
                 from /usr/include/curses.h:209,
                 from 
/usr/pkgsrc/devel/cmake/work/cmake-2.8.4/Source/CursesDialog/form/form.h:50,
                 from 
/usr/pkgsrc/devel/cmake/work/cmake-2.8.4/Source/CursesDialog/form/form.priv.h:34,
                 from 
/usr/pkgsrc/devel/cmake/work/cmake-2.8.4/Source/CursesDialog/form/fld_arg.c:33:
/usr/pkgsrc/devel/cmake/work/.buildlink/include/ncurses.h:320: error: 
conflicting types for 'attr_t'
/usr/include/curses.h:55: error: previous declaration of 'attr_t' was 
here
In file included from 
/usr/pkgsrc/devel/cmake/work/cmake-2.8.4/Source/CursesDialog/form/form.h:50,
                 from 
/usr/pkgsrc/devel/cmake/work/cmake-2.8.4/Source/CursesDialog/form/form.priv.h:34,
                 from 
/usr/pkgsrc/devel/cmake/work/cmake-2.8.4/Source/CursesDialog/form/fld_arg.c:33:
/usr/include/curses.h:239: error: conflicting types for 'WINDOW'
/usr/pkgsrc/devel/cmake/work/.buildlink/include/ncurses.h:318: error: 
previous declaration of 'WINDOW' was here
...

(followed by about 200 more lines of errors.)


Home | Main Index | Thread Index | Old Index