On 09/02/2011 06:34 PM, [email protected] wrote:
> CCLD cf-know
> cc: warning 983: The -lc library specified on the command line is also added
> automatically by the compiler driver.
> ld: Unsatisfied symbol "dirfd" in file ./.libs/libpromises.a
> This was with -Agcc.
So it compiles, but does not link due to missing dirfd. Please add the
following lines to pub/dirfd.c and try again:
#if defined(__hpux) || defined(_AIX)
int dirfd(DIR *dirp)
{
return dirp->dd_fd != -1 ? dirp->dd_fd : ENOTSUP;
}
#endif
Hence, the question is how to distinguish real gcc and cc -Agcc.
Could you try to compile and show the output of the following program
(using cc -Agcc)?
#include <stdio.h>
int main()
{
#if defined __HP_cc
printf("HP ANSI C\n");
#endif
}
--
Mikhail Gusarov
Software Engineer
CFEngine AS
Nydalsveien 33
0484 Oslo
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine