xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Bertoni (JIRA)" <xalan-...@xml.apache.org>
Subject [jira] Commented: (XALANC-642) When building for Cygwin, the "install" target creates an invalid path from the prefix (-P | --prefix option) supplied to runConfigure
Date Fri, 16 Mar 2007 19:01:09 GMT

    [ https://issues.apache.org/jira/browse/XALANC-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481732
] 

David Bertoni commented on XALANC-642:
--------------------------------------

This is a fundamental flaw with how we install.  The Makefiles rely on the fact that a Unix
system is forgiving of things like "//" in a path.  Because we add a destination directory
(which is, by default, empty) to the prefix, the default behavior is to install to a path
that starts with "//".

We will need to figure something out as a special case for Cygwin, since "//" is interpreted
as a UNC path.

> When building for Cygwin, the "install" target creates an invalid path from the prefix
(-P | --prefix option) supplied to runConfigure
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XALANC-642
>                 URL: https://issues.apache.org/jira/browse/XALANC-642
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: 1.10
>         Environment: IBM ThinkPad, Windows XP Professional, Cygwin, latest update as
of 12/15/06, GNU bash, version 3.2.5(8)-release (i686-pc-cygwin), GNU Make 3.8
>            Reporter: Will Sappington
>
> while building Xalan 1.10.0 in the above environment, give the command 
> ./runConfigure -p cygwin -c gcc -x g++ -P /cygdrive/c/proj/3rdParty/libs/Xalan-c_1_10_0-C/package
> and run make.  After the build completes run make install (also does this if running
make install from the beginning).  get the make output below.  in summary, the "make -C XalanMsgLib
install" step prepends an additional '/' to the prefix path resulting in the command "mkdir
-p //cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/package/lib" being issued which generates
the error message "mkdir: cannot create directory `//cygdrive': No such host or network".
> Per Dave Bertoni, this is the work around, posted to the mail list on 3/14/07:
> 1. specify the prefix you want as a configure option to the runConfigure 
> script:
> ./runConfigure -p cygwin -c gcc -x g++ -C 
> --prefix=/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/package
> 2. Do the build (although you don't have to rebuild if you don't want to, 
> since this won't affect the binaries.
> 3. Open Makefile.incl and search for the prefix you specified.  You'll see 
> something like this:
> prefix = /cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/package/
> 4. Just remove the leading "/" from the definition:
> prefix = cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/package/
> ==============
> make output
> ==============
> $ make install
> make -C src/xalanc install
> make[1]: Entering directory
> `/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c/src/xalanc'
> Preparing the directory structure for a build ...
> mkdir -p ../../obj
> mkdir -p ../../lib
> mkdir -p ../../bin
> make -C Utils prepare
> make[2]: Entering directory
> `/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c/src/xalanc/
> Utils
> '
> mkdir -p ../../../nls
> mkdir -p ../../../nls/include
> make[2]: Leaving directory
> `/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c/src/xalanc/
> Utils'
> make -C Utils locale
> make[2]: Entering directory
> `/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c/src/xalanc/
> Utils
> '
> make[2]: Nothing to be done for `locale'.
> make[2]: Leaving directory
> `/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c/src/xalanc/
> Utils'
> make -C Utils install
> make[2]: Entering directory
> `/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c/src/xalanc/
> Utils
> '
> /usr/bin/install -c -m 644 ../../../nls/include/LocalMsgIndex.hpp
> /cygdrive/c/proj/3rdParty/libs/xalan-c_
> 1_10_0-C/xml-xalan/c//src/xalanc/PlatformSupport
> make -C XalanMsgLib install
> make[3]: Entering directory
> `/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c/src/xalanc/
> Utils
> /XalanMsgLib'
> mkdir -p //cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/package/lib
> mkdir: cannot create directory `//cygdrive': No such host or network
> path
> make[3]: *** [install] Error 1
> make[3]: Leaving directory
> `/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c/src/xalanc/
> Utils/
> XalanMsgLib'
> make[2]: *** [install] Error 2
> make[2]: Leaving directory
> `/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c/src/xalanc/
> Utils'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory
> `/cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c/src/xalanc'
> make: *** [install] Error 2
> wsappington@NDMA-WSappingto
> /cygdrive/c/proj/3rdParty/libs/xalan-c_1_10_0-C/xml-xalan/c
> $

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


Mime
View raw message