In the truss trace I see this:

        28535:   0.3057 
execve("/u04/opt/csw/gcc4/bin/../libexec/gcc/sparc-sun-solaris2.8/4.0.2/cc1", 
0x00042370, 0x000454B8)  argc = 8
        28535:   argv:
        28535:    
/u04/opt/csw/gcc4/bin/../libexec/gcc/sparc-sun-solaris2.8/4.0.2/cc1
        28535:    -E -quiet -iprefix
        28535:    /u04/opt/csw/gcc4/bin/../lib/gcc/sparc-sun-solaris2.8/4.0.2/
        28535:    -MM warnings.c -mcpu=v7
        28535:   envp: COLLECT_GCC_OPTIONS='-MM' '-mcpu=v7'
        28535:    GCC_EXEC_PREFIX=/u04/opt/csw/gcc4/bin/../lib/gcc/
        28535:    COLLECT_GCC=/opt/csw/gcc4/bin/gcc CC=/opt/csw/gcc4/bin/gcc
        28535:    CPP=/opt/csw/gcc4/bin/cpp
        28535:    CPPFLAGS=-I/opt/csw/include -I/opt/csw/apache2/include 
-I/opt/csw/include/subversion-1

So a C compiler is called, and it gets the -I options.
But later it tries to find apr_md5, and fails:

        28535:   0.3685 
open("/u04/opt/csw/gcc4/bin/../lib/gcc/sparc-sun-solaris2.8/4.0.2/include/apr_md5.h",
 O_RDONLY|O_NOCTTY) Err#2 ENOENT
        28535:   0.3686 open("/opt/csw/include/apr_md5.h", O_RDONLY|O_NOCTTY) 
Err#2 ENOENT
        28535:   0.3687 open("/opt/csw/gcc4/include/apr_md5.h", 
O_RDONLY|O_NOCTTY) Err#2 ENOENT
        28535:   0.3687 open("/usr/include/apr_md5.h", O_RDONLY|O_NOCTTY) Err#2 
ENOENT

And this happens if you use CFLAGS, too.
The Makefile has

        %.o:  %.c
          @echo "     CC $<"
          @$(CC) $(CFLAGS) -c -o $@ $<

so the CFLAGS should be given as parameters, not as environment ... why doesn't 
that work?
Please stick an echo in front of the CC, and send me the output:

          @echo $(CC) $(CFLAGS) -c -o $@ $<

Can I take a look at the situation? Is there some (reasonably small) 
image for qemu you can send me?


Regards,

Phil


-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to