RE: [xml] libxml compilation problem



Do you have multiple versions of MSVC installed?  A quick google for
LNK1103 reveals that this error often occurs because newer modules
(compiled with VS.NET) are linked with an older linker, because the
format of the debugging information has changed.  You're running a
really old version of nmake, perhaps unintentionally, and you may be
running old versions of the compiler and linker as well, but you're
linking against new libraries.  You might want to check your PATH. 

-----Original Message-----
From: xml-admin gnome org [mailto:xml-admin gnome org] On 
Behalf Of uttam rao
Sent: Tuesday, April 06, 2004 8:56 AM
To: xml-admin gnome org; xml gnome org
Subject: [xml] libxml compilation problem

Hello Daniel,

I did further research and found that when I modify  some 
parameters in 
'config.msvc' then it did recognize paths and did compiled.
I modified manually
INCPREFIX
and
LIBPREFIX

It has generated 'libxml2.lib' but also spitted some errors. 
But I think 
that is something related to system files. Please find the 
compile traces 
message on the end.

config.msvc file
-------------------
# .\config.msvc
# This file is generated automatically by configure.js.

LIBXML_MAJOR_VERSION=2
LIBXML_MINOR_VERSION=6
LIBXML_MICRO_VERSION=8
LIBXML_MICRO_VERSION_SUFFIX=
XML_SRCDIR=..
UTILS_SRCDIR=..
WITH_TRIO=0
WITH_THREADS=native
WITH_FTP=1
WITH_HTTP=1
WITH_HTML=1
WITH_C14N=1
WITH_CATALOG=1
WITH_DOCB=1
WITH_XPATH=1
WITH_XPTR=1
WITH_XINCLUDE=1
WITH_ICONV=0
WITH_ISO8859X=0
WITH_ZLIB=0
WITH_DEBUG=1
WITH_MEM_DEBUG=0
WITH_SCHEMAS=1
WITH_REGEXPS=1
WITH_TREE=1
WITH_READER=1
WITH_WRITER=1
WITH_WALKER=1
WITH_PATTERN=1
WITH_PUSH=1
WITH_VALID=1
WITH_SAX1=1
WITH_LEGACY=1
WITH_OUTPUT=1
WITH_PYTHON=0
DEBUG=1
STATIC=0
PREFIX=.
BINPREFIX=$(PREFIX)\bin
INCPREFIX="C:\Programme\Microsoft\Visual Studio .NET\Vc7\include" 
/I"C:\Programme\Microsoft\Visual Studio .NET\Vc7\PlatformSDK\include"
LIBPREFIX="C:\Programme\Microsoft\Visual Studio 
.NET\Vc7\PlatformSDK\lib" 
/LIBPATH:"C:\Programme\Microsoft\Visual Studio .NET\Vc7\lib"
SOPREFIX=$(PREFIX)\lib
INCLUDE=$(INCLUDE);.
LIB=$(LIB);C:\downloads\xml\xslt\libxml2-2.6.8
CRUNTIME=/MD
---------------------------------------------------------------

C:\downloads\xml\xslt\libxml2-2.6.8\win32>nmake /f Makefile.msvc clean

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        if exist int.msvc rmdir /S /Q int.msvc
        if exist int.a.msvc rmdir /S /Q int.a.msvc
        if exist int.utils.msvc rmdir /S /Q int.utils.msvc
        if exist bin.msvc rmdir /S /Q bin.msvc

C:\downloads\xml\xslt\libxml2-2.6.8\win32>nmake /f Makefile.msvc

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        if not exist bin.msvc mkdir bin.msvc
        if not exist int.msvc mkdir int.msvc
        cl.exe /EP /nologo /I..\include /D "_REENTRANT" 
libxml2.def.src > 
int.msvc\libxml2.def
libxml2.def.src
        cl.exe /nologo /D "WIN32" /D "_WINDOWS" /D "_MBCS" 
/W1 /MD /I.. 
/I..\include /I"C:\Programme\Microsoft\Visual Studio 
.NET\Vc7\include" 
/I"C:\Programme\Microsoft\Visual Studio 
.NET\Vc7\PlatformSDK\include" /D 
"_REENTRANT" /D "HAVE_WIN32_THREADS" /D
"_DEBUG" /Od /Z7 /Foint.msvc\ /c ..\c14n.c ..\catalog.c ..\chvalid.c 
..\debugXML.c ..\dict.c ..\DOCBparser.c ..\encoding.c ..\entities.c 
..\error.c ..\globals.c ..\hash.c ..\HTMLparser.c 
..\HTMLtree.c ..\legacy.c 
..\list.c ..\nanoftp.c ..\nanohttp.c ..\par
ser.c ..\parserInternals.c ..\pattern.c ..\relaxng.c 
..\SAX2.c ..\SAX.c 
..\threads.c ..\tree.c ..\uri.c ..\valid.c ..\xinclude.c ..\xlink.c 
..\xmlIO.c ..\xmlmemory.c ..\xmlreader.c ..\xmlregexp.c ..\xmlsave.c 
..\xmlschemas.c ..\xmlschemastypes.c ..\xmlunic
ode.c ..\xmlwriter.c ..\xpath.c ..\xpointer.c ..\xmlstring.c
c14n.c
catalog.c
chvalid.c
debugXML.c
dict.c
DOCBparser.c
encoding.c
entities.c
error.c
globals.c
hash.c
HTMLparser.c
HTMLtree.c
legacy.c
list.c
nanoftp.c
nanohttp.c
parser.c
parserInternals.c
pattern.c
Generating Code...
Compiling...
relaxng.c
SAX2.c
SAX.c
threads.c
tree.c
uri.c
valid.c
xinclude.c
xlink.c
xmlIO.c
xmlmemory.c
xmlreader.c
xmlregexp.c
xmlsave.c
xmlschemas.c
xmlschemastypes.c
xmlunicode.c
xmlwriter.c
xpath.c
xpointer.c
Generating Code...
Compiling...
xmlstring.c
Generating Code...
        link.exe /nologo /VERSION:2.6 /LIBPATH:bin.msvc 
/LIBPATH:"C:\Programme\Microsoft\Visual Studio 
.NET\Vc7\PlatformSDK\lib" 
/LIBPATH:"C:\Programme\Microsoft\Visual Studio .NET\Vc7\lib" 
/DEBUG /DLL  
/IMPLIB:bin.msvc\libxml2.lib /OUT:bin.msvc\libxml2.dl
l int.msvc\c14n.obj int.msvc\catalog.obj int.msvc\chvalid.obj 
int.msvc\debugXML.obj int.msvc\dict.obj int.msvc\DOCBparser.obj 
int.msvc\encoding.obj int.msvc\entities.obj int.msvc\error.obj 
int.msvc\globals.obj int.msvc\hash.obj int.msvc\HTMLparser.obj int.
msvc\HTMLtree.obj int.msvc\legacy.obj int.msvc\list.obj 
int.msvc\nanoftp.obj 
int.msvc\nanohttp.obj int.msvc\parser.obj 
int.msvc\parserInternals.obj 
int.msvc\pattern.obj int.msvc\relaxng.obj int.msvc\SAX2.obj 
int.msvc\SAX.obj 
int.msvc\threads.obj int.msvc\t
ree.obj int.msvc\uri.obj int.msvc\valid.obj int.msvc\xinclude.obj 
int.msvc\xlink.obj int.msvc\xmlIO.obj int.msvc\xmlmemory.obj 
int.msvc\xmlreader.obj int.msvc\xmlregexp.obj int.msvc\xmlsave.obj 
int.msvc\xmlschemas.obj int.msvc\xmlschemastypes.obj int.msvc\
xmlunicode.obj int.msvc\xmlwriter.obj int.msvc\xpath.obj 
int.msvc\xpointer.obj int.msvc\xmlstring.obj  wsock32.lib
   Creating library bin.msvc\libxml2.lib and object 
bin.msvc\libxml2.exp
MSVCRT.lib(sehprolg.obj) : fatal error LNK1103: debugging information 
corrupt; recompile module
NMAKE : fatal error U1077: 'link.exe' : return code '0x44f'
Stop.

--------------

Regards
Uttam


From: xml-admin gnome org
To: auttamrao hotmail com
Subject: Your message to xml awaits moderator approval
Date: Tue, 06 Apr 2004 08:22:03 -0400

Your mail to 'xml' with the subject

    Compile problem libxml2-2.6.8 on  MSVC .NET /  WinXP

Is being held until the list moderator can review it for approval.

The reason it is being held:

    Post by non-member to a members-only list

Either the message will get posted to the list, or you will receive
notification of the moderator's decision.

_________________________________________________________________
News, views and gossip. Hot downloads 'n previews. 
http://www.msn.co.in/Cinema/ Get it all at MSN Cinema!

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml





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