gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] Re: error when compiling OC from a directory with


From: Jose Vilmar Estacio de Souza
Subject: Re: [open-cobol-list] Re: error when compiling OC from a directory with spaces in its name
Date: Fri Jan 13 23:12:01 2006

Hi Roger.

No problems  to compile after apply the suggested changes.
However, as expected by you,  I got some errors in the check procedure.

I'm attaching the messages.
Thanks.

././syntax: line 744: test: /home/Jose: binary operator expected
././syntax: line 744: test: /home/Jose: binary operator expected
././syntax: line 744: test: /home/Jose: binary operator expected
././syntax: line 744: test: /home/Jose: binary operator expected
././syntax: line 779: test: /home/Jose: binary operator expected
mkdir: cannot create directory `Vilmar/open-cobol-0.33/tests/syntax.dir': No such file or directory syntax: error: cannot create /home/Jose Vilmar/open-cobol-0.33/tests/syntax.dir
././run: line 806: test: /home/Jose: binary operator expected
././run: line 806: test: /home/Jose: binary operator expected
././run: line 806: test: /home/Jose: binary operator expected
././run: line 806: test: /home/Jose: binary operator expected
././run: line 841: test: /home/Jose: binary operator expected
mkdir: cannot create directory `/home/Jose': File exists
mkdir: cannot create directory `Vilmar/open-cobol-0.33/tests/run.dir': No such file or directory
run: error: cannot create /home/Jose Vilmar/open-cobol-0.33/tests/run.dir
././run-O: line 6: /home/Jose: is a directory
././data-rep: line 688: test: /home/Jose: binary operator expected
././data-rep: line 688: test: /home/Jose: binary operator expected
././data-rep: line 688: test: /home/Jose: binary operator expected
././data-rep: line 688: test: /home/Jose: binary operator expected
././data-rep: line 723: test: /home/Jose: binary operator expected
mkdir: cannot create directory `/home/Jose': File exists
mkdir: cannot create directory `Vilmar/open-cobol-0.33/tests/data-rep.dir': No such file or directory data-rep: error: cannot create /home/Jose Vilmar/open-cobol-0.33/tests/data-rep.dir
././data-rep-O: line 6: /home/Jose: is a directory
make[4]: *** [check-TESTS] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2


----- Original Message ----- From: "Roger While" <address@hidden>
To: <address@hidden>
Cc: <address@hidden>
Sent: Thursday, January 12, 2006 6:17 PM
Subject: [open-cobol-list] Re: error when compiling OC from a directory with spaces in its name


I wrote :
> Yes, this is a problem with autoconf/libtool.
> As my Cygwin installations are all under
> one-word user names, I did not hit this.
> Work around under Cygwin (I think) :
> cygpath $(cygpath -d "$*")
> You can put this command into your Cygwin
> startup/login script.
> There may be other problems; I will check this
> out in the next couple of days.

> Naa, that doesn't seem too work.
> Anyway, started a discussion on the libtool mailing list.
> Result is "too difficult - not planned".
> So, cannot see anything we can do from the OC side.
> Alternatives :
> a) Install Cygwin in it's own directory directly under a
> windows partion eg. C.\cygwin
> Under this there will be a "home" directory.
> Create the (no included spaces!) user under "home".
>(This is how I always have done Cygwin/user installs)
> b) Use the Cygwin mount facility to map the directories.
> Install using the mapped drives.

Actually, I think I have found a libtool fix -
First do a "make clean"
Then edit "ltmain.sh"
At about line 1514, you should find the following lines :
      -L*)
        dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
        # We need an absolute path.
        case $dir in
        [\\/]* | [A-Za-z]:[\\/]*) ;;
        *)
          absdir=`cd "$dir" && pwd`

Problem appears to be this last line.
Replace with
          absdir="$dir"

Then the usual configure, etc.
This should get you through the make.
It however, needs further checking.
At least, if the make is successful, run a "make check".
Problems may arise after a make install, as the absolute path name
may be required somewhere in the installed libs/progs.
I need to check this.
(Posted also to the libtool list)

Roger

Roger




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
open-cobol-list mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/open-cobol-list



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.17/226 - Release Date: 1/10/2006





reply via email to

[Prev in Thread] Current Thread [Next in Thread]