unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* ./configure with CC="ccache gcc" doesn't work
@ 2011-01-19 16:24 Andy Wingo
  2011-01-20  9:50 ` Michal Sojka
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Wingo @ 2011-01-19 16:24 UTC (permalink / raw)
  To: notmuch

Hello,

On my Fedora 13 x86-64 system,

    $ env | grep CC
    CC=ccache gcc
    $ ./configure --prefix=/usr --libdir=/usr/lib64
    [...]
    Checking for getline... No (will use our own instead).
    Checking for strcasestr... No (will use our own instead).
    Checking for rpath support... No (nothing to worry about).
    Checking for -Wl,--as-needed... No (nothing to worry about).
    [... success ...]

The replacement strcasestr later causes build errors:

    CXX -O2 lib/directory.o
    In file included from lib/notmuch-private.h:41,
                     from lib/directory.cc:22:
    /usr/include/string.h:371: error: new declaration ‘const char* strcasestr(const char*, const char*)’
    compat/compat.h:46: error: ambiguates old declaration ‘char* strcasestr(const char*, const char*)’

But if I export CC=gcc, things succeed:

    Checking for getline... Yes.
    Checking for strcasestr... Yes.
    Checking for rpath support... Yes.

And the build goes fine.

I think the problem occurs due to the IFS setting in configure.  Not
sure what the right solution is; I am not married to having ccache in the
environment.  It's simply that this is what has worked in the past.  If
there is a better option for using ccache I'm happy to switch, as long
as it's globally applicable.

Happy hacking,

Andy

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-26 13:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-19 16:24 ./configure with CC="ccache gcc" doesn't work Andy Wingo
2011-01-20  9:50 ` Michal Sojka
2011-01-20 12:40   ` Andy Wingo
2011-01-20 14:38     ` Michal Sojka
2011-01-26 13:38       ` Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).