tcptrace can't cross compile as AC_TRY_RUN is used to check how to print unsigned long long without any fallback. >>> Configuring source in /usr/i586-geode-linux-gnu/tmp/portage/net-analyzer/tcptrace-6.6.7/work/tcptrace-6.6.7 ... * econf: updating tcptrace-6.6.7/config.guess with /usr/share/gnuconfig/config.guess * econf: updating tcptrace-6.6.7/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=i586-geode-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib configure: loading site script /usr/share/config.site configure: loading site script /usr/share/crossdev/include/site/linux checking build system type... x86_64-pc-linux-gnu checking host system type... i586-geode-linux-gnu checking target system type... i586-geode-linux-gnu checking for i586-geode-linux-gnu-gcc... i586-geode-linux-gnu-gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether i586-geode-linux-gnu-gcc accepts -g... yes checking gcc version... 4 checking for i586-geode-linux-gnu-gcc... (cached) i586-geode-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i586-geode-linux-gnu-gcc accepts -g... (cached) yes checking whether make sets ${MAKE}... yes checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking for main in -lm... yes checking how to run the C preprocessor... i586-geode-linux-gnu-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unsigned long long int... yes checking size of unsigned long long int... 8 checking for unsigned long int... yes checking size of unsigned long int... 4 checking for unsigned int... yes checking size of unsigned int... 4 checking for unsigned short... yes checking size of unsigned short... 2 checking for gethostbyname... yes checking for socket... yes checking for putmsg in -lstr... no checking for fpurge... no checking for mkstemp... yes checking for valloc... yes checking for memalign... yes checking for inet_pton... yes checking how to print unsigned long long... configure: error: can not run test program while cross compiling Here is a patch to handle this fallback by using AC_CACHE_CHECK. Users can define if this should be %llu or %qu by setting env variable ac_cv_unsigned_long_long_printf_format. This patch also introduce the usage of autoconf 2.6 that is smarter when cross compiling Reproducible: Always Steps to Reproduce: 1. i586-geode-linux-gnu-emerge -vat tcptrace 2. 3.
Created attachment 279115 [details, diff] files/tcptrace-6.6.7-BJA-cross.diff
(In reply to comment #1) > Created attachment 279115 [details, diff] > files/tcptrace-6.6.7-BJA-cross.diff This need eautoreconf
Fixed in -r1. Thanks for the patch! Sorry for the long time-out.
(In reply to Jeroen Roovers from comment #3) > Fixed in -r1. Thanks for the patch! Sorry for the long time-out. Thanks Jeroen ! I've send the patch upstream also.