Re: GCC flaw in FreeBSD5? Cone 0.58 does not compile (was: Cone 0.58 released.)

Sam Varshavchik <[email protected]>
Newsgroups gmane.mail.cone
Message-ID <[email protected]>
Matthias Andree writes:

> 0.58 - without any patches - does not compile on FreeBSD 5-CURRENT:
> 
> gmake[2]: Entering directory `/tmp/root/ports/mail/cone/work/cone-0.58/libmail'
> gmake  all-am
> gmake[3]: Entering directory `/tmp/root/ports/mail/cone/work/cone-0.58/libmail'
> Compiling mbox.C
> mbox.C: In member function `bool mail::mbox::scan(mail::file&, mail::file*, 
>    bool, std::set<std::string, std::less<std::string>, 
>    std::allocator<std::string> >*, bool, mail::callback*)':
> mbox.C:1246: error: base operand of `->' has non-pointer type `mail::file'
> mbox.C:1283: error: base operand of `->' has non-pointer type `mail::file'
> gmake[3]: *** [mbox.o] Error 1
> gmake[3]: Leaving directory `/tmp/root/ports/mail/cone/work/cone-0.58/libmail'
> gmake[2]: *** [all] Error 2
> 
> The code looks fine and compiles fine on SuSE Linux 8.2 with an updated
> vanilla GCC 3.3.3. Given that mail::file has an operator FILE *() that
> returns the FILE* pointer, I don't see what the compiler wants to tell
> me. Cc:'ing FreeBSD-current.

Perhaps fileno() is a macro?

Try inserting an explicit cast to FILE *.
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAgF3tx9p3GYHlUOIRAnZNAJ9AwxvRWzkumV9yKofrF0CgrZz02QCfdAq3
WCBRgB0cCv0gLHfdC2ViDKA=
=Px7o
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.