Patch for the configure script to build strace
Alex Semenyaka
alexs at snark.rinet.ru
Tue Feb 25 04:34:07 UTC 2003
Hello,
I tried to compile the latest version of strace on my FreeBSD and encountered
some problems. I investigated them and found that they come from the mistypes
and mistakes in the ``configure'' script. Mistypes are the unmatched bracket
parentheses in #include's:
#include <netinet/in.h
And at least for FreeBSD including of netinet/in.h or sys/socket.h requires
including of sys/types.h, so it is necessary to add #include <sys/types.h>
to several places of the ``configure'' script (well, may be with some
precautions - I mean, #ifdef's). There is a patch with workaround for those who
want to fix the script for own and for the developers to specify how
to fix the prototype of ``configure''. One again, it is just _workaround_ since
I am not sure if it is safe to always include sys/types.h for all platforms
(should be, though) or on some of them it can lead to the errorneous results.
Nevertheless it works for FreeBSD.
*** configure Thu Feb 20 05:55:30 2003
--- /tmp/w/configure Tue Feb 25 14:47:53 2003
***************
*** 5602,5606 ****
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
! #include <netinet/in.h
int
--- 5602,5607 ----
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
! #include <sys/types.h>
! #include <netinet/in.h>
int
***************
*** 5638,5642 ****
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
! #include <netinet/in.h
int
--- 5639,5644 ----
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
! #include <sys/types.h>
! #include <netinet/in.h>
int
***************
*** 6490,6493 ****
--- 6492,6496 ----
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+ #include <sys/types.h>
#include <netinet/in.h>
***************
*** 6749,6752 ****
--- 6752,6756 ----
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+ #include <sys/types.h>
#include <sys/socket.h>
Sincerely yours,
Alex Semenyaka.
More information about the Strace-devel
mailing list