[OpenAFS-win32-devel] afs_config manifest error while compliling openafs under visual studio 2008

Gautam U Raut gautraut@in.ibm.com
Mon, 28 Mar 2011 12:26:03 +0530


This is a multipart message in MIME format.
--=_alternative 002635F765257861_=
Content-Type: text/plain; charset="US-ASCII"

Hi All,

While compiling openafs 1.5.78 under MS Visual studio 2008 for 64 bit,
we get manifest error as 

C:\gautam\openafs-1.5.78\dest\amd64_w2k\free\root.client\usr\vice\etc\afs_config.exe.manifest 
: manifest authoring error
ttribute "level" not equal in different manifest snippets.
NMAKE : fatal error U1077: 'if' : return code '0x1f'

afs_config.exe.manifest has 

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level='asInvoker' uiAccess='false' />
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type='win32' name='Microsoft.VC90.CRT' 
version='9.0.21022.8' processorArchitecture='amd64' 
publicKeyToken='1fc8b3b9a1e18e3b' />
    </dependentAssembly>
  </dependency>
</assembly>


If I change the level attribute to 'requireAdministrator', and then again 
fire "nmake /f NTMakefile install" command then build finishes 
successfully.
But afs_config.exe fails to execute and shows errors such as MSVCR90.dll 
is missing.

Let me know possible solution.

Regards,
Gautam

--=_alternative 002635F765257861_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Hi All,</font>
<br>
<br><font size=2 face="sans-serif">While compiling openafs 1.5.78 under
MS Visual studio 2008 for 64 bit,</font>
<br><font size=2 face="sans-serif">we get manifest error as &nbsp; </font>
<br>
<br><font size=2 face="sans-serif">C:\gautam\openafs-1.5.78\dest\amd64_w2k\free\root.client\usr\vice\etc\afs_config.exe.manifest
: manifest authoring error</font>
<br><font size=2 face="sans-serif">ttribute &quot;level&quot; not equal
in different manifest snippets.</font>
<br><font size=2 face="sans-serif">NMAKE : fatal error U1077: 'if' : return
code '0x1f'</font>
<br>
<br><font size=2 face="sans-serif">afs_config.exe.manifest has </font>
<br>
<br><font size=2 face="Courier New">&lt;?xml version='1.0' encoding='UTF-8'
standalone='yes'?&gt;</font>
<br><font size=2 face="Courier New">&lt;assembly xmlns='urn:schemas-microsoft-com:asm.v1'
manifestVersion='1.0'&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;trustInfo xmlns=&quot;urn:schemas-microsoft-com:asm.v3&quot;&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &lt;security&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &lt;requestedPrivileges&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &lt;requestedExecutionLevel
level='asInvoker' uiAccess='false' /&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &lt;/requestedPrivileges&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &lt;/security&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;/trustInfo&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;dependency&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &lt;dependentAssembly&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &lt;assemblyIdentity
type='win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='amd64'
publicKeyToken='1fc8b3b9a1e18e3b' /&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &lt;/dependentAssembly&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &lt;/dependency&gt;</font>
<br><font size=2 face="Courier New">&lt;/assembly&gt;</font>
<br>
<br>
<br><font size=2 face="sans-serif">If I change the level attribute to 'requireAdministrator',
and then again fire &quot;nmake /f NTMakefile install&quot; command then
build finishes successfully.</font>
<br><font size=2 face="sans-serif">But afs_config.exe fails to execute
and shows errors such as MSVCR90.dll is missing.</font>
<br>
<br><font size=2 face="sans-serif">Let me know possible solution.</font>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 face="sans-serif">Gautam</font>
<br>
--=_alternative 002635F765257861_=--