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
[EMAIL PROTECTED]
/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]