[ 
http://issues.apache.org/jira/browse/XALANC-620?page=comments#action_12379066 ] 

Spencer E. Chastain commented on XALANC-620:
--------------------------------------------


To follow up on my initial report yesterday:

I have attempted to use cygwin as the specified platform even though I'm using 
mingw.  I get the following output/error message when I run the configure 
script:

-----------------------------------------------------------
>sh runConfigure -p cygwin -c gcc -x g++
Generating makefiles with the following options ...
Platform: cygwin
C Compiler: gcc
C++ Compiler: g++
Extra compile options:
Extra link options:
Transcoder: default
Localization system: inmem
Locale: en_US
Thread option:
bitsToBuild option: 32
Extra configure options:
Debug is OFF

checking for gcc... gcc
checking for C compiler default output file name... configure: error: C 
compiler  cannot create executables
See `config.log' for more details.
-----------------------------------------------------------

I can copy the config.log file if it will be useful, but it ends with 
'configure: exit 77'

So, after that, everytime I ran configure, I found where the script was dying, 
and I commented out the exit condition.
The lines affected were: 
line 1668, exit 77 -- above error
line 1699, exit 1 -- related to cross compile
line 1741, exit 1 -- related to suffix

I then have to edit the created Makefile.incl to change the PLATFORM variable 
from UNKNOWN to CYGWIN.

Make will then run until I get to compiling my shared object libxalanMsg.dll

-----------------------------------------------------------
g++ -DCYGWIN  -O -DNDEBUG     -fno-elide-constructors  -shared -Wl,--warn-once 
-Wl,--out-implib -Wl,../../../../lib/libxalanMsg.dll.110.0  
../../../../obj/XalanMsgLib.o -o ../../../../lib/cygxalanMsg110.dll
Creating library file: ../../../../lib/libxalanMsg.dll.110.0
rm -f ../../../../lib/libxalanMsg.dll && \
        ln -fs libxalanMsg.dll.110.0 ../../../../lib/libxalanMsg.dll
ln: creating symbolic link `../../../../lib/libxalanMsg.dll' to 
`libxalanMsg.dll.110.0': No such file or directory
-----------------------------------------------------------

As I reported in my first comment, I then tried modifying the configure scripts 
to support a MinGW platform, and I got about as far as this.  Probably because 
I haven't sat down to figure out what it is that script is doing, how it is 
doing it, and why mingw is different.

Per above comment, I'll create a thread on the users list related to this.  I 
had seen a few similar threads in the archives, but I had not seen anyone 
report any kind of success.  That's why I decided to open the bug report.  It 
should be easier than this.


> Cannot Build with MinGW
> -----------------------
>
>          Key: XALANC-620
>          URL: http://issues.apache.org/jira/browse/XALANC-620
>      Project: XalanC
>         Type: Bug

>   Components: XalanC
>     Versions: 1.10
>  Environment: Win32 with MinGW
>     Reporter: Spencer E. Chastain

>
> I'm having major difficulties getting Xalan to compile with MinGW whereas the 
> process with Xerces was painless.
> I have attempted to modify the runConfigure and configure scripts to generate 
> a makefile for my mingw configuration.  In doing so, I have run across 
> problems during configure in which configure thinks that the compiler is 
> broken.  I have not had the time to debug the file, so instead, I commented 
> out the offending exit conditions.
> Getting past configure, a surprising amount of code will actually compile.  I 
> will have to follow up with another comment to detail how far I have 
> progressed (that information as at work).
> In any case, I really need to get this resolved.  I'll provide more feedback 
> and testing if need be.  Otherwise, I will have to seek another alternative 
> to Xalan.  Xalan seemed like such a good choice because of its compatability 
> with xerces and (I was thinking its) cross platform support.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to