Bug 863463

Summary: generated configure script breaks for path containing spaces
Product: [Fedora] Fedora Reporter: Abhay <abhaykadam88>
Component: autoconfAssignee: Pavel Raiskup <praiskup>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-16 11:08:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
the log of configure script none

Description Abhay 2012-10-05 14:10:43 UTC
Created attachment 622238 [details]
the log of configure script

Description of problem:
I was trying to run a ./configure script in my source folder located at /run/media/abhay/New Volume/abhay/progs/autotools/tut_prog. The script exits saying,

checking whether we are cross compiling... configure: error: in `/run/media/abhay/New Volume/abhay/progs/autotools/tut_prog':

But when i try to run the same script upon copying the source code at location /home/abhay/tut_prog it works fine.


Version-Release number of selected component (if applicable):
$ rpm -qa autoconf
autoconf-2.69-3.fc18.noarch


How reproducible:
always


Steps to Reproduce:
1. create a source code in folder whose descendant name contains space
2. run autoconf
3. run configure script 
  
Actual results:
$ sh configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/run/media/abhay/New Volume/abhay/progs/autotools/tut_prog':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details



Expected results:
The script should run successfully without any error


Additional info:
attaching the confige.log

Comment 1 Pavel Raiskup 2013-01-08 15:28:30 UTC
(In reply to comment #0)
> Created attachment 622238 [details]
> the log of configure script
>
> Description of problem:
> I was trying to run a ./configure script in my source folder located at
> /run/media/abhay/New Volume/abhay/progs/autotools/tut_prog. The script exits
> saying,
> 
> checking whether we are cross compiling... configure: error: in
> `/run/media/abhay/New Volume/abhay/progs/autotools/tut_prog':
> 
> But when i try to run the same script upon copying the source code at
> location /home/abhay/tut_prog it works fine.

According to 'error.log' it seems like permission problem, not a 'white-space'
related one.

Look at these lines:

   95 configure:2783: checking whether we are cross compiling
   96 configure:2791: gcc -o conftest    conftest.c  >&5
   97 configure:2795: $? = 0
   98 configure:2802: ./conftest
   99 configure: line 2804: ./conftest: Permission denied
  100 configure:2806: $? = 126

Could you observe details please?  Seems like this is some weird file system
setting (considering that in your home directory it just works).

I have the same symptoms when I set some weird umask, like:

  $ umask 0113

Thanks,
Pavel

Comment 2 Red Hat Bugzilla 2023-09-14 01:37:51 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days