Paul D. Smith wrote:
> %% Regarding Re: support for IA64 HP-UX; you wrote:
> 
>   ms> I think I have it solved. Our aCC setup was causing a conflict
>   ms> with cc (that's probably an issue for our sysadmin). Removing aCC
>   ms> from my environment allowed me to use cc and configure and build
>   ms> the make 3.80.  It seems to work just fine so far :)
> 
> OK, that's good.
> 
> Don't you think CC='aCC -Ae' should work as well?  If so, if you send me
> the kinds of errors you're seeing I can see if anything jumps out at me.

It looks like -Ae prevents aCC from looking in /usr/include (see
below). Adding -I/usr/include lets me configure without all the
scary errors I get w/o it but the build fails due to the __P()
macro not being #defined. #defining it to expand to the function
prototype gets me a bit further but not all the way there. I might
be able to figure it out eventually but I'm afraid I don't have
the time or the motivation now that I got cc to work :)

Martin


$ cat t.c; aCC -Ae -v t.c
#include <stdio.h>
int main () { printf ("Hello, World\n!"); }

  /nfs/package/1/ia64/aCC/5.36/opt/aCC/lbin/ctcom -ia64abi all 
-architecture 32 -inst compiletime -diags 523 -ext on -lang c -exception 
off -inline_power 1 -link_type dynamic -fpeval float -tls_dyn on 
-I/opt/aCC/include -D_HP_IA64ABI -D__hpux -D__unix -D__ia64=1 
-D_BIG_ENDIAN=1 -D__STDCPP__ -D_ILP32 -D__HP_cc=53600 -D__STDC_EXT__ 
-D_HPUX_SOURCE -D_INCLUDE_LONGLONG -D_INLINE_ASM -D_BIND_LIBCALLS 
-D_Math_errhandling=MATH_ERREXCEPT -D_FLT_EVAL_METHOD=0 -plusolistoption 
-Ol04const! -plusolistoption -Ol11aggressive! -plusooption 
-Oq01,al,ag,cn,sz,ic,vo,Mf,Po,es,rs,sp,in,cl,om,vc,pi,fa,Pe,rr,pa,pv,nf,cp,lx,Pg,ug,lu,lb,uj,dn,sg,pt,kt,em,np,ar,rp,fs,bp,wp,pc,mp,lr,cx,cr,pi,so,Rc,fa,ft,fe,ap,st,lc,Bl,ib,sd,ll,rl,Lt,ol,fl,lm,ts,rd,dp,If!
 
t.c
Error 112: "t.c", line 1 # Include file <stdio.h> not found.
     #include <stdio.h>
              ^^^^^^^^^
  removing t.o


make-3.80rc2$ make
make  all-recursive
make[1]: Entering directory `/build/sebor/make-3.80rc2'
Making all in glob
make[2]: Entering directory `/build/sebor/make-3.80rc2/glob'
source='glob.c' object='glob.o' libtool=no \
depfile='.deps/glob.Po' tmpdepfile='.deps/glob.TPo' \
depmode=none /bin/sh ../config/depcomp \
aCC -Ae -I/usr/include -DHAVE_CONFIG_H -I. -I. -I..     -g -c `test -f 
'glob.c'
|| echo './'`glob.c
Error 173: "glob.c", line 287 # Redefined symbol 'getlogin'; previously
     defined at ["/usr/include/sys/unistd.h", line 148].
     extern char *getlogin __P ((void));
                  ^^^^^^^^
Warning 20: "glob.c", line 287 # ';' expected before '__P'.
     extern char *getlogin __P ((void));
                           ^^^
Error 19: "glob.c", line 287 # Unexpected ')'.
     extern char *getlogin __P ((void));
                                     ^
Error 19: "glob.c", line 287 # Unexpected '('.
     extern char *getlogin __P ((void));
                                ^
Warning 20: "glob.c", line 294 # ';' expected before '__P'.
     const char *next_brace_sub __P ((const char *begin));
                                ^^^
Error 21: "glob.c", line 294 # ')' expected before '*' to close scope.
     const char *next_brace_sub __P ((const char *begin));
                                                 ^
Error 24: "glob.c", line 294 # '<type name>' expected instead of ')'.
     const char *next_brace_sub __P ((const char *begin));
                                                        ^
Warning 263: "glob.c", line 294 # Object expected in declaration list.
     const char *next_brace_sub __P ((const char *begin));
                                                        ^^
Warning 20: "glob.c", line 295 # ',' expected before '__P'.
     static int glob_in_dir __P ((const char *pattern, const char 
*directory,
                            ^^^ 

Error 19: "glob.c", line 295 # Unexpected '('.
     static int glob_in_dir __P ((const char *pattern, const char 
*directory,
                                 ^ 

Warning 623: "glob.c", line 295 # Block-scope function declaration "int
     __P(const char *,const char *,int,int (*)(const char *,int),glob_t *)"
     must not be explicitly 'static'.
     static int glob_in_dir __P ((const char *pattern, const char 
*directory,
                            ^^^ 

Error 42: "glob.c", line 295 # ANSI C requires same function declarations to
     have compatible types. Previous function declaration was "int __P()"
     ["glob.c", line 287].
     static int glob_in_dir __P ((const char *pattern, const char 
*directory,
                            ^^^ 

Error 19: "glob.c", line 298 # Unexpected ')'.
                                  glob_t *pglob));
                                                ^
Warning 20: "glob.c", line 299 # ',' expected before '__P'.
     static int prefix_array __P ((const char *prefix, char **array, 
size_t n));
                             ^^^ 

Error 19: "glob.c", line 299 # Unexpected '('.
     static int prefix_array __P ((const char *prefix, char **array, 
size_t n));
                                  ^ 

Error 42: "glob.c", line 299 # ANSI C requires same function declarations to
     have compatible types. Previous function declaration was "int __P(const
     char *,const char *,int,int (*)(const char *,int),glob_t *)" ["glob.c",
     line 295].
     static int prefix_array __P ((const char *prefix, char **array, 
size_t n));
                             ^^^ 

Error 266: "glob.c", line 299 # Bad linkage declaration; static function
     declaration in block scope.
     static int prefix_array __P ((const char *prefix, char **array, 
size_t n));
                             ^^^ 

Error 19: "glob.c", line 299 # Unexpected ')'.
     t prefix_array __P ((const char *prefix, char **array, size_t n));
                                                                     ^
Error 699: "glob.c", line 299 # Error limit reached; halting compilation.
     t prefix_array __P ((const char *prefix, char **array, size_t n));
                                                                     ^
make[2]: *** [glob.o] Error 2
make[2]: Leaving directory `/build/sebor/make-3.80rc2/glob'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/sebor/make-3.80rc2'
make: *** [all] Error 2


$ aCC -Ae -I/usr/include -DHAVE_CONFIG_H -I. -I. -I..     -g -c glob.c 
-D"__P(a)=a"
Error 269: "glob.c", line 300 # Illegal storage class specifier in 
parameter declaration.
     static int collated_compare __P ((const __ptr_t, const __ptr_t));
                                 ^^^
Error 172: "glob.c", line 375 # Undeclared variable '__GLOB_FLAGS'.
       if (pattern == NULL || pglob == NULL || (flags & ~__GLOB_FLAGS) != 0)
                                                         ^^^^^^^^^^^^
Error 172: "glob.c", line 381 # Undeclared variable 'GLOB_BRACE'.
       if (flags & GLOB_BRACE)
                   ^^^^^^^^^^
Error 172: "glob.c", line 423 # Undeclared variable 'GLOB_BRACE'.
                   return glob (pattern, flags & ~GLOB_BRACE, errfunc, 
pglob);
                                                  ^^^^^^^^^^ 

Error 172: "glob.c", line 437 # Undeclared variable 'GLOB_BRACE'.
                       return glob (pattern, flags & ~GLOB_BRACE, 
errfunc, pglob);
                                                      ^^^^^^^^^^ 

Error 172: "glob.c", line 473 # Undeclared variable 'GLOB_NOMAGIC'.
                                  ((flags & ~(GLOB_NOCHECK|GLOB_NOMAGIC))
                                                           ^^^^^^^^^^^^
Error 172: "glob.c", line 503 # Undeclared variable 'GLOB_NOMAGIC'.
               else if (!(flags & (GLOB_NOCHECK|GLOB_NOMAGIC)))
                                                ^^^^^^^^^^^^
Error 172: "glob.c", line 522 # Undeclared variable 'GLOB_TILDE'.
           if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && pattern[0] == '~')
                         ^^^^^^^^^^
Error 187: "glob.c", line 598 # Referenced object 'gl_flags' is not a 
member of struct glob_t ["/usr/include/glob.h", line 17].
                 pglob->gl_flags = ((pglob->gl_flags & ~GLOB_MARK)
                        ^^^^^^^^
Error 172: "glob.c", line 613 # Undeclared variable 'GLOB_TILDE'.
       if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && dirname[0] == '~')
                     ^^^^^^^^^^
Error 172: "glob.c", line 690 # Undeclared variable 'GLOB_TILDE_CHECK'.
                   if (flags & GLOB_TILDE_CHECK)
                               ^^^^^^^^^^^^^^^^
Error 172: "glob.c", line 791 # Undeclared variable 'GLOB_TILDE_CHECK'.
                 if (flags & GLOB_TILDE_CHECK)
                             ^^^^^^^^^^^^^^^^
Error 699: "glob.c", line 791 # Error limit reached; halting compilation.
                 if (flags & GLOB_TILDE_CHECK)
                             ^^^^^^^^^^^^^^^^



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to