While running ./configure, I got an error as below - " compiler cannot create executables" before this error , it declares that OFFSET is 64. I also found on rsync.samba.org, which explains my problem. Note that on some systems you will have to force configure not to use gcc because gcc may not support some features (such as 64 bit file offsets) that your system may support. Set the environment variable CC to the name of your native compiler before running configure in this case. Now my question is how to set OFFSET --> 32 ? Thanks. -------------- next part -------------- HTML attachment scrubbed and removed
I have two machine on which I am getting this error. Both machine is Solaris 7 and rsync version I am trying is 2.4.6. This is the error "checking whether the C compiler (gcc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables." when I saw the config.log file. Both have almost same error. Machine1/config.log==> configure:698: checking for gcc configure:811: checking whether the C compiler (gcc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ) works configure:827: gcc -o conftest -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c 1>&5 /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0/../../../../sparc-sun-solari s2.7/bin/ld: cannot open values-Xa. o: No such file or directory collect2: ld returned 1 exit status configure: failed program was: #line 822 "configure" #include "confdefs.h" main(){return(0);} Machine2/config.log ==> configure:698: checking for gcc configure:811: checking whether the C compiler (gcc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ) works configure:827: gcc -o conftest -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c 1>&5 /usr/local/sparc-sun-solaris2.7/bin/ld: cannot open values-Xa.o: No such file or directory collect2: ld returned 1 exit status configure: failed program was: #line 822 "configure" #include "confdefs.h" main(){return(0);} Thanks for any help here. -S ----- Original Message ----- From: "Dave Dykstra" <dwd@bell-labs.com> To: "SANJEEV" <jha_savi@hotmail.com> Sent: Wednesday, October 10, 2001 12:03 PM Subject: Re: compilation error> On Fri, Oct 05, 2001 at 03:50:46PM -0400, SANJEEV wrote: > > While running ./configure, I got an error as below - > > " compiler cannot create executables" > > before this error , it declares that OFFSET is 64. > > I also found on rsync.samba.org, which explains my problem. > > Note that on some systems you will have to force configure not to use > > gcc because gcc may not support some features (such as 64 bit file > > offsets) that your system may support. Set the environment variable CC > > to the name of your native compiler before running configure in this > > case. > > > > Now my question is how to set OFFSET --> 32 ? > > > > Thanks. > > You may get a better response if you post again listing your operating > system and rsync version number. > > - Dave Dykstra >
Sounds like your gcc is not installed properly. - Dave Dykstra On Mon, Oct 29, 2001 at 06:17:20PM -0500, SANJEEV wrote:> I have two machine on which I am getting this error. Both machine is Solaris > 7 and rsync version I am trying is 2.4.6. > This is the error > "checking whether the C compiler > (gcc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ) works... no > configure: error: installation or configuration problem: C compiler cannot > create executables." > > when I saw the config.log file. Both have almost same error. > > Machine1/config.log==> > configure:698: checking for gcc > configure:811: checking whether the C compiler > (gcc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ) works > configure:827: gcc -o conftest -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > conftest.c 1>&5 > /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0/../../../../sparc-sun-solari > s2.7/bin/ld: cannot open values-Xa. > o: No such file or directory > collect2: ld returned 1 exit status > configure: failed program was: > > #line 822 "configure" > #include "confdefs.h" > > main(){return(0);} > > Machine2/config.log ==> > configure:698: checking for gcc > configure:811: checking whether the C compiler > (gcc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ) works > configure:827: gcc -o conftest -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > conftest.c 1>&5 > /usr/local/sparc-sun-solaris2.7/bin/ld: cannot open values-Xa.o: No such > file or directory > collect2: ld returned 1 exit status > configure: failed program was: > > #line 822 "configure" > #include "confdefs.h" > > main(){return(0);} > > Thanks for any help here. > -S > > ----- Original Message ----- > From: "Dave Dykstra" <dwd@bell-labs.com> > To: "SANJEEV" <jha_savi@hotmail.com> > Sent: Wednesday, October 10, 2001 12:03 PM > Subject: Re: compilation error > > > > On Fri, Oct 05, 2001 at 03:50:46PM -0400, SANJEEV wrote: > > > While running ./configure, I got an error as below - > > > " compiler cannot create executables" > > > before this error , it declares that OFFSET is 64. > > > I also found on rsync.samba.org, which explains my problem. > > > Note that on some systems you will have to force configure not to use > > > gcc because gcc may not support some features (such as 64 bit file > > > offsets) that your system may support. Set the environment variable CC > > > to the name of your native compiler before running configure in this > > > case. > > > > > > Now my question is how to set OFFSET --> 32 ? > > > > > > Thanks. > > > > You may get a better response if you post again listing your operating > > system and rsync version number. > > > > - Dave Dykstra > >