LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Compile error regexxer on current (http://www.linuxquestions.org/questions/slackware-14/compile-error-regexxer-on-current-4175427969/)

SergMarkov 09-19-2012 06:44 AM

Compile error regexxer on current
 
regexxer is a nifty GUI search/replace tool featuring Perl-style regular expressions
http://regexxer.sourceforge.net
Compiling in current is in error
Code:

In file included from src/globalstrings.h:24:0,
                from src/filebuffer.cc:23:
/usr/include/glib-2.0/glib/gutils.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from src/translation.h:24:0,
                from src/filebuffer.cc:26:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from src/filebuffer.h:24:0,
                from src/filebuffer.cc:21:
src/fileshared.h:80:19: error: 'Glib::MatchInfo' has not been declared
src/filebuffer.cc: In member function 'int Regexxer::FileBuffer::find_matches(const Glib::RefPtr<Glib::Regex>&, bool, const sigc::slot<void, int, const Glib::ustring&>&)':
src/filebuffer.cc:327:53: error: no matching function for call to 'Regexxer::MatchData::MatchData(int&, const Glib::ustring&, Glib::MatchInfo&)'
src/filebuffer.cc:327:53: note: candidates are:
In file included from src/filebuffer.h:24:0,
                from src/filebuffer.cc:21:
src/fileshared.h:89:3: note: Regexxer::MatchData::MatchData(const Regexxer::MatchData&)
src/fileshared.h:89:3: note:  candidate expects 1 argument, 3 provided
src/fileshared.h:79:3: note: Regexxer::MatchData::MatchData(int, const Glib::ustring&, int&)
src/fileshared.h:79:3: note:  no known conversion for argument 3 from 'Glib::MatchInfo' to 'int&'
make[2]: *** [src/filebuffer.o] Error 1
make[2]: Leaving directory `/mnt/sda9/Slackware/1-MySlackBuilds/CheckList/regexxer-no-compile/5/regexxer-0.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/sda9/Slackware/1-MySlackBuilds/CheckList/regexxer-no-compile/5/regexxer-0.10'
make: *** [all] Error 2

How can fix a compile error?

pan64 09-19-2012 07:11 AM

probably you included gutils.h, but as it is stated only glib.h allowed

larryhaja 09-19-2012 10:14 PM

I haven't tried building this package but the following patch looks like it might work.

https://projects.archlinux.org/svnto...kages/regexxer

Edit: looks like they already have a patch for it on SBo.
http://slackbuilds.org/cgit/slackbui...d29816fc167cc1

SergMarkov 09-20-2012 06:25 AM

Quote:

Originally Posted by larryhaja (Post 4784687)
I haven't tried building this package but the following patch looks like it might work.
https://projects.archlinux.org/svnto...kages/regexxer
Edit: looks like they already have a patch for it on SBo.
http://slackbuilds.org/cgit/slackbui...d29816fc167cc1

Thanks !


All times are GMT -5. The time now is 02:41 PM.