Hello !

to compile traceroute on Darwin, I had to tweak 2 files with a very short change (aclocal.m4 and findsaddr-socket.c). Something more heavy was needed, replace original config.sub and config.guess by the one provided by Apple (last update, 1999 whereas traceroute has 1996). Change is about 2000 lines ..

        running "aclocal ; autoconf ; configure ; make" works like a charm 
after this...

Are patches for Darwin accepted in current for openpkg ? If yes, what should I do about config.guess and config.sub ? Push patch for the moment, ask the upstream packager to update their version, and remove the patch when done ?



diff -Naur traceroute-1.4a12/aclocal.m4 traceroute-1.4a12.patched/aclocal.m4
--- traceroute-1.4a12/aclocal.m4        1999-08-15 01:50:09 +0200
+++ traceroute-1.4a12.patched/aclocal.m4        2007-07-19 00:42:08 +0200
@@ -677,7 +677,7 @@
 AC_TRY_LINK(dnl
 ifelse([$2], [main], , dnl Avoid conflicting decl of main.
 [/* Override any gcc2 internal prototype to avoid an error.  */
-]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
+]ifelse(_AC_LANG_CURRENT, CPLUSPLUS, [#ifdef __cplusplus
 extern "C"
 #endif
 ])dnl


(to fix configure.in:30: error: AC_LANG: unknown language: when running autoconf)


diff -Naur traceroute-1.4a12/findsaddr-socket.c traceroute-1.4a12.patched/findsaddr-socket.c
--- traceroute-1.4a12/findsaddr-socket.c        2000-11-23 21:17:21 +0100
+++ traceroute-1.4a12.patched/findsaddr-socket.c 2007-07-19 00:42:08 +0200
@@ -190,6 +190,7 @@

                        default:
                                /* empty */
+                               ;
                        }

                        if (SALEN(sa) == 0)


(to fix error: label at end of compound statement at line 193)



Best Regards,


Olivier Kaloudoff

______________________________________________________________________
OpenPKG                                             http://openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to