Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374085 - net-analyzer/tcptrace - checking how to print unsigned long long... configure: error: can not run test program while cross compiling
Summary: net-analyzer/tcptrace - checking how to print unsigned long long... configure...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2011-07-04 23:45 UTC by Bertrand Jacquin
Modified: 2013-06-09 15:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
files/tcptrace-6.6.7-BJA-cross.diff (tcptrace-6.6.7-BJA-cross.diff,1.40 KB, patch)
2011-07-04 23:45 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2011-07-04 23:45:10 UTC
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.
Comment 1 Bertrand Jacquin 2011-07-04 23:45:41 UTC
Created attachment 279115 [details, diff]
files/tcptrace-6.6.7-BJA-cross.diff
Comment 2 Bertrand Jacquin 2011-07-04 23:46:48 UTC
(In reply to comment #1)
> Created attachment 279115 [details, diff]
> files/tcptrace-6.6.7-BJA-cross.diff

This need eautoreconf
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-09 14:40:24 UTC
Fixed in -r1. Thanks for the patch! Sorry for the long time-out.
Comment 4 Bertrand Jacquin 2013-06-09 15:48:29 UTC
(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.