I'm running into a compile-time error on Wheezy on x86-64.  My C++ foo
is somewhere between weak and non-existent, so it could be something
really simple like an unmet dependency, but all my attempts to do web
searches for anything related to the error message have failed, and so
I'm pretty well stumped at this point.  Is there a library I need to
install (or install the dev package for) to get this ReverseFind?  Much
of what shows up on Google for it seems to be aimed at application
developers in terms of how to call the function, and all the rest seems
to be directly Microsoft-related, which obviously can't be right.

Here's a little more context on the error message:
g++ -DHAVE_CONFIG_H -I.     -Wall -I./.. -I.. -I./../afx -I./../rfc822 -I./libs 
-g -O2 -MT submit.o -MD -MP -MF .deps/submit.Tpo -c -o submit.o submit.C
In file included from ./../dbobj.h:6:0,
                 from submit.C:18:
./../gdbmobj/gdbmobj.h:19:8: warning: ‘gdbmobj’ has a field ‘gdbmobj::dbf’ 
whose type uses the anonymous namespace [enabled by default]
mv -f .deps/submit.Tpo .deps/submit.Po
g++ -DHAVE_CONFIG_H -I.     -Wall -I./.. -I.. -I./../afx -I./../rfc822 -I./libs 
-g -O2 -MT submit2.o -MD -MP -MF .deps/submit2.Tpo -c -o submit2.o submit2.C
In file included from ./../dbobj.h:6:0,
                 from submit.h:10,
                 from submit2.C:7:
./../gdbmobj/gdbmobj.h:19:8: warning: ‘gdbmobj’ has a field ‘gdbmobj::dbf’ 
whose type uses the anonymous namespace [enabled by default]
submit2.C: In member function ‘int SubmitFile::MessageEnd(unsigned int, int, 
int)’:
submit2.C:797:15: error: ‘std::string’ has no member named ‘ReverseFind’
make[3]: *** [submit2.o] Error 1
make[3]: Leaving directory `/home/jonadab/build/courier-0.70.20130305/courier'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jonadab/build/courier-0.70.20130305/courier'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jonadab/build/courier-0.70.20130305/courier'
make: *** [all-recursive] Error 1
jonadab@lysimachus:~/build/courier-0.70.20130305$

I've used apt to install the following packages (some of which may be
redundant): gcc, gpp, build-essential, libpcre3-dev, idn, make,
libgdbm-dev, libgnutls-dev, libtool, expect, libltdl-dev, ispell,
makepatch, libyaml-perl, libperl-dev, and libstdc++-dev.  (I had
to do a bit of web searching to figure out that that last one was
needed, but in that case the error message had enough information
to allow me to figure it out.)

Then I downloaded and built the Courier Authentication Library as per
the instructions, and it _appeared_ to build and install without a
hitch, although I don't know how to actually test it without succesfully
building and installing Courier itself.  Just in case, I should probably
mention that I built the auth lib as root, because unlike the main
Courier package its INSTALL file did not say anything about that being a
problem.  That *seems* completely unrelated to the error I'm getting...

The configure scripts were run as follows:
For the auth library:
./configure --with-mailuser=mlog --with-mailgroup=mlog --prefix=/usr
For Courier itself (which is where I'm having the problem):
./configure --with-db=gdbm --datadir=/usr/share/courier \
            --sysconfdir=/etc/courier --localstatedir=/var/mlog \
            --with-dirsync --without-ipv6

I just threw dirsync in because I don't know enough about it to be
confident that it isn't needed; I can take it out if it has anything to
do with the problem.  Ditto without-ipv6 (we don't use IPv6 here at all,
and our ISP does not provide it, so I just figured turning it off might
simplify things).  Most of the other options are directly related to
reproducing a similar installation to what we currently have on our old
server (which is 32-bit...  I'm hoping the data formats are text-based
and/or designed to be hardware agnostic).

Other information that may or may not be pertinent:
jonadab@lysimachus:~/build/courier-0.70.20130305$ uname -a
Linux lysimachus 2.6.32-5-amd64 #1 SMP Mon Feb 25 00:26:11 UTC 2013 x86_64 
GNU/Linux

Any ideas?  What obvious thing am I missing?

Thanks in advance,

-- 
Nathan Eady
Galion Public Library

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to