Error Cannot Check Setpgrp When Cross Compiling
unreachable for an hour on June 27th Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hello, Rick Jones schrieb: >> #>./configure CC=arm-linux-gcc >> LDFLAGS=-L/usr/local/arm/3.4.1/arm-linux/lib --host arm --build >> i686-pc-linux-gnu > > Ah, cross compilation. Always a joy... and something for which I have > no opportunity to test myself :( > >> for netperf-2.4.1 & 2.4.2: >> >> It stops within the configure process with the error >> >> #> checking for sys/select.h... yes >> checking for sys/socket.h... (cached) yes >> checking types of arguments for select... int,fd_set *,struct timeval * >> checking whether setpgrp takes no argument... configure: error: cannot >> check setpgrp when cross compiling > > As a "workaround" you might try editing the configure script to > comment-out the checks for setpgrp. Apart from that I am at a loss and > will have to rely on the others on the list. I'm guessing the check for > the argument relies on actually running a setpgrp() call, which I > suppose one cannot really do when cross compiling. This was a good hint and worked. I commented-out the following lines (5930-5992) in netperf-2.4.2 configure script: #echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 #echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 #if test "${ac_cv_func_setpgrp_void+set}" = set; then # echo $ECHO_N "(cached) $ECHO_C" >&6 #else # if test "$cross_compiling" = yes; then # { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 #echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} # { (exit 1); exit 1; }; } #else # cat >conftest.$ac_ext <<_ACEOF #/* confdefs.h. */ #_ACEOF #cat confdefs.h >>conftest.$ac_ext #cat >>conftest.$ac_ext <<_ACEOF #/* end confdefs.h. */ ##if HAVE_UNISTD_H ## include
2009 2008 2007 2006 2005 2004 2003 2002 2001 2000 1999 1998 1997 1996 1995 1994 Core-talk Mailman Search 2016 QTi-talk Mailman Search 2016 Hw-talk Mailman Search 2016 Bugs Documents Links Licensing Format page for printing SearchTech-talk 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 <2010> 2011 2012 2013 2014 2015 2016 Index 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 http://www.netperf.org/pipermail/netperf-talk/2006-June/000120.html 2008 2009 <2010> 2011 2012 2013 2014 2015 2016 <== Date ==> <== Thread ==> Subject: Re: How to cross compile procServ? From: Ralph Lange
years ago #9006 closed defect (fixed) libdaemon broken in trunk Reported by: arokh
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Crosscompile libdaemon to ARM does not work? up vote 0 down vote favorite I tried to cross-compile the library libdaemon for an ARM architecture but I'm facing the problem that libdeamon is not being cross-compiled, and I cannot understand why. After cross-compiling (make the ./conf and make install) the library libdeamon, I have been able to check the library isn't crosscompiled for arm,since it's been "crosscomppiled" for the build a intel as it can be seen :~/libdaemon-0.14$ file -F usr/*/*.* usr/lib/libdaemon.lausr/lib/libdaemon.a libtool library file, usr/lib/libdaemon.sousr/lib/libdaemon.a symbolic link to `libdaemon.so.0.5.0' usr/lib/libdaemon.so.0usr/lib/libdaemon.a symbolic link to `libdaemon.so.0.5.0' usr/lib/libdaemon.so.0.5.0usr/lib/libdaemon.a ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=0xe4959941fb153e1dec5ec84f798dc32928219ae2, not stripped The configure for the libdaemon is this ~/libdaemon-0.14$ ./configure --build=i686-linux --host=arm-linux-gnueabi --enable-shared --prefix=/usr ~/libdaemon-0.14$ sudo make DESTDIR=/home/j/libdaemon-0.14 install Any tip of what I'm doing wrong? Thanks in advance! arm cross-compiling share|improve this question edited Feb 13 '13 at 7:49 asked Feb 12 '13 at 20:54 ndarkness 122214 check the configure log. –auselen Feb 13 '13 at 8:18 the configure log doesn't show an error further the lynx issue which I've read is normal –ndarkness Feb 13 '13 at 14:53 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answe