[xmlsec] Success Building xmlsec on OS X

David Mundie mundie at anthus.com
Mon Jan 12 13:59:19 PST 2004


I have tested this change. I'm delighted to report that it does indeed  
fix the .dylib/.so problem for me. However, I still get the *second*  
problem, same as with the Fink version:

examples>  !269
$x verify --pubkey rsapub.pem sign1.xml
OK
SignedInfo References (ok/all): 1/1
Manifests References (ok/all): 0/0
func=xmlSecCryptoDLLibraryDestroy:file=dl.c:line=200: 
obj=xmlsec_lt_dlclose:subj=unknown:error=7:io function failed:

Admittedly, this seems to be just a cosmetic failure, but still...

I have attached a trace of the execution.

  - dam

-------------- next part --------------
  1263 ktrace   RET   ktrace 0
  1263 ktrace   CALL  execve(0xbffffa19,0xbffff914,0xbffff92c)
  1263 ktrace   NAMI  "/usr/local/bin/xmlsec1"
  1263 ktrace   NAMI  "/usr/lib/dyld"
  1263 xmlsec1  RET   execve 0
  1263 xmlsec1  CALL  open(0x141c,0,0)
  1263 xmlsec1  NAMI  "/usr/local/lib/libxmlsec1.1.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff690)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  open(0x1458,0,0)
  1263 xmlsec1  NAMI  "/sw/lib/libxslt.1.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff690)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  open(0x1488,0,0)
  1263 xmlsec1  NAMI  "/sw/lib/libxml2.2.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff690)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  open(0x14b8,0,0)
  1263 xmlsec1  NAMI  "/usr/lib/libSystem.B.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff690)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  load_shared_file(0x14b8,0x23e000,0x1798fc,0xbffff4a0,0x4,0xbffff430,0xbffff4a4)
  1263 xmlsec1  NAMI  "/usr/lib/libSystem.B.dylib"
  1263 xmlsec1  RET   load_shared_file 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  open(0x14ec,0,0)
  1263 xmlsec1  NAMI  "/usr/lib/libz.1.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff690)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  load_shared_file(0x14ec,0x1f000,0xdb88,0xbffff4a0,0x3,0xbffff430,0xbffff4a4)
  1263 xmlsec1  NAMI  "/usr/lib/libz.1.dylib"
  1263 xmlsec1  RET   load_shared_file 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  open(0x151c,0,0)
  1263 xmlsec1  NAMI  "/sw/lib/libiconv.2.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff690)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  open(0x900006e8,0,0)
  1263 xmlsec1  NAMI  "/usr/lib/system/libmathCommon.A.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff620)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  load_shared_file(0x900006e8,0x1f000,0x6ac4,0xbffff430,0x3,0xbffff3c0,0xbffff434)
  1263 xmlsec1  NAMI  "/usr/lib/system/libmathCommon.A.dylib"
  1263 xmlsec1  RET   load_shared_file 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  __sysctl(0xbffff838,0x2,0xbffff840,0xbffff844,0,0)
  1263 xmlsec1  RET   __sysctl 0
  1263 xmlsec1  CALL  stat(0x1100910,0xa000ce58)
  1263 xmlsec1  NAMI  "/usr/local/lib/libxmlsec1-openssl.dylib"
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  open(0x1100910,0,0x10)
  1263 xmlsec1  NAMI  "/usr/local/lib/libxmlsec1-openssl.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff290)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  open(0x3001c0,0,0)
  1263 xmlsec1  NAMI  "/usr/local/lib/libxmlsec1-openssl.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff270)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  open(0x23e448,0,0)
  1263 xmlsec1  NAMI  "/sw/lib/libssl.0.9.7.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff190)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  open(0x23e47c,0,0)
  1263 xmlsec1  NAMI  "/sw/lib/libcrypto.0.9.7.dylib"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbffff190)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  getpid
  1263 xmlsec1  RET   getpid 1263/0x4ef
  1263 xmlsec1  CALL  open(0x2089aee0,0x104,0xa00020a8)
  1263 xmlsec1  NAMI  "/dev/urandom"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  select(0x4,0xbffff5c0,0,0,0xbffff5b0)
  1263 xmlsec1  RET   select 1
  1263 xmlsec1  CALL  read(0x3,0xbffff590,0x20)
  1263 xmlsec1  GIO   fd 3 read 32 bytes
       "z\M^Q\M-?D\^S\M-tf\M-t\M-/\M^J2\M-z\M-&\M-/\M-`\M-(T\^Z\^E\M-P\M^R\^On\M-j\M-(x\M-m\M^Yc\M-U\M-_9"
  1263 xmlsec1  RET   read 32/0x20
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  getuid
  1263 xmlsec1  RET   getuid 501/0x1f5
  1263 xmlsec1  CALL  open(0x208a1b58,0,0x1b6)
  1263 xmlsec1  NAMI  "/sw/etc/ssl/cert.pem"
  1263 xmlsec1  RET   open -1 errno 2 No such file or directory
  1263 xmlsec1  CALL  open(0x1100250,0,0x1b6)
  1263 xmlsec1  NAMI  "rsapub.pem"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbfffed10)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  read(0x3,0x1802600,0x1000)
  1263 xmlsec1  GIO   fd 3 read 451 bytes
       "-----BEGIN PUBLIC KEY-----
	MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl7j+tD+DNXgWiQTsK2GM
	v8RfAIFKRebZzeniPJc7Ra2q5o0Ld3EHAU98+X3iGardkVn08c89unhGlhGctltG
	OXNVI6r3ngBc5elJ7DucP4SZOpCt335khsYmcs4xCHl+ExW45b/WVgKNYCFMJxhk
	+/tVcPYzvS9VcNVefpmupOCqRUcTqDDVoIqdzCDs5I5RyVTFfz5mLXS/o3r48+yU
	Vzm0rAB1YmFUtNDgUob4XnfsUEOc0rqnjGJavLL+88xifiNga8dRSTd4fiUVMKv6
	tK4ljyL8o0h/8gqKbuD+jfAB7cYzzGuh/aaA7waMr/ZAOo5CFCBhEh/j/AWxBdVl
	wwIDAQAB
	-----END PUBLIC KEY-----
       "
  1263 xmlsec1  RET   read 451/0x1c3
  1263 xmlsec1  CALL  read(0x3,0x1802600,0x1000)
  1263 xmlsec1  GIO   fd 3 read 0 bytes
       ""
  1263 xmlsec1  RET   read 0
  1263 xmlsec1  CALL  lseek(0x3,0,0,0x1)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  lseek(0x3,0,0,0)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  read(0x3,0x1802600,0x1000)
  1263 xmlsec1  GIO   fd 3 read 451 bytes
       "-----BEGIN PUBLIC KEY-----
	MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl7j+tD+DNXgWiQTsK2GM
	v8RfAIFKRebZzeniPJc7Ra2q5o0Ld3EHAU98+X3iGardkVn08c89unhGlhGctltG
	OXNVI6r3ngBc5elJ7DucP4SZOpCt335khsYmcs4xCHl+ExW45b/WVgKNYCFMJxhk
	+/tVcPYzvS9VcNVefpmupOCqRUcTqDDVoIqdzCDs5I5RyVTFfz5mLXS/o3r48+yU
	Vzm0rAB1YmFUtNDgUob4XnfsUEOc0rqnjGJavLL+88xifiNga8dRSTd4fiUVMKv6
	tK4ljyL8o0h/8gqKbuD+jfAB7cYzzGuh/aaA7waMr/ZAOo5CFCBhEh/j/AWxBdVl
	wwIDAQAB
	-----END PUBLIC KEY-----
       "
  1263 xmlsec1  RET   read 451/0x1c3
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  stat(0xbffffa4e,0xbffff310)
  1263 xmlsec1  NAMI  "sign1.xml"
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  stat(0xbffffa4e,0xbffff310)
  1263 xmlsec1  NAMI  "sign1.xml"
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  stat(0xbffffa4e,0xbffff1a0)
  1263 xmlsec1  NAMI  "sign1.xml"
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  open(0xbffffa4e,0,0x1b6)
  1263 xmlsec1  NAMI  "sign1.xml"
  1263 xmlsec1  RET   open 3
  1263 xmlsec1  CALL  fstat(0x3,0xbfffef70)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  read(0x3,0x1802600,0x1000)
  1263 xmlsec1  GIO   fd 3 read 1230 bytes
       "<?xml version="1.0" encoding="UTF-8"?>
	<!-- 
	XML Security Library example: Simple signature template file for sign1 example. 
	-->
	<Envelope xmlns="urn:envelope">
	  <Data>
		Hello, World!
	  </Data>
	  <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
	    <SignedInfo>
	      <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
	      <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
	      <Reference URI="">
	        <Transforms>
	          <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
	        </Transforms>
	        <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
	        <DigestValue>9H/rQr2Axe9hYTV2n/tCp+3UIQQ=</DigestValue>
	      </Reference>
	    </SignedInfo>
	    <SignatureValue>Mx4psIy9/UY+u8QBJRDrwQWKRaCGz0WOVftyDzAe6WHAFSjMNr7qb2ojq9kdipT8
	Oub5q2OQ7mzdSLiiejkrO1VeqM/90yEIGI4En6KEB6ArEzw+iq4N1wm6EptcyxXx
	M9StAOOa9ilWYqR9Tfx3SW1urUIuKYgUitxsONiUHBVaW6HeX51bsXoTF++4ZI+D
	jiPBjN4HHmr0cbJ6BXk91S27ffZIfp1Qj5nL9onFLUGbR6EFgu2luiRzQbPuM2tP
	XxyI7GZ8AfHnRJK28ARvBC9oi+O1ej20S79CIV7gdBxbLbFprozBHAwOEC57YgJc
	x+YEjSjcO7SBIR1FiUA7pw==</SignatureValue>
	    <KeyInfo>
		<KeyName/>
	    </KeyInfo>
	  </Signature>
	</Envelope>
       "
  1263 xmlsec1  RET   read 1230/0x4ce
  1263 xmlsec1  CALL  read(0x3,0x1802600,0x1000)
  1263 xmlsec1  GIO   fd 3 read 0 bytes
       ""
  1263 xmlsec1  RET   read 0
  1263 xmlsec1  CALL  lseek(0x3,0,0,0x1)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  lseek(0x3,0,0,0)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  stat(0x90104e34,0xbfffee20)
  1263 xmlsec1  NAMI  "/"
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  lstat(0x1800e00,0xbfffee20)
  1263 xmlsec1  NAMI  "."
  1263 xmlsec1  RET   lstat 0
  1263 xmlsec1  CALL  stat(0x1800e00,0xbfffec10)
  1263 xmlsec1  NAMI  ".."
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  open(0x1800e00,0x4,0x2)
  1263 xmlsec1  NAMI  ".."
  1263 xmlsec1  RET   open 4
  1263 xmlsec1  CALL  fstat(0x4,0xbfffec10)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  fcntl(0x4,0x2,0x1)
  1263 xmlsec1  RET   fcntl 0
  1263 xmlsec1  CALL  __sysctl(0xbfffebb0,0x2,0xa000a548,0xbfffebb8,0,0)
  1263 xmlsec1  RET   __sysctl 0
  1263 xmlsec1  CALL  fstatfs(0x4,0xbfffec70)
  1263 xmlsec1  RET   fstatfs 0
  1263 xmlsec1  CALL  fstat(0x4,0xbfffee20)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  getdirentries(0x4,0x1808600,0x1000,0x1107f44)
  1263 xmlsec1  RET   getdirentries 1192/0x4a8
  1263 xmlsec1  CALL  lseek(0x4,0,0,0)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  close(0x4)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  lstat(0x1800e00,0xbfffee20)
  1263 xmlsec1  NAMI  "../"
  1263 xmlsec1  RET   lstat 0
  1263 xmlsec1  CALL  stat(0x1800e00,0xbfffec10)
  1263 xmlsec1  NAMI  "../.."
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  open(0x1800e00,0x4,0)
  1263 xmlsec1  NAMI  "../.."
  1263 xmlsec1  RET   open 4
  1263 xmlsec1  CALL  fstat(0x4,0xbfffec10)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  fcntl(0x4,0x2,0x1)
  1263 xmlsec1  RET   fcntl 0
  1263 xmlsec1  CALL  fstatfs(0x4,0xbfffec70)
  1263 xmlsec1  RET   fstatfs 0
  1263 xmlsec1  CALL  fstat(0x4,0xbfffee20)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  getdirentries(0x4,0x1808600,0x1000,0x1107f44)
  1263 xmlsec1  RET   getdirentries 72/0x48
  1263 xmlsec1  CALL  lseek(0x4,0,0,0)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  close(0x4)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  lstat(0x1800e00,0xbfffee20)
  1263 xmlsec1  NAMI  "../../"
  1263 xmlsec1  RET   lstat 0
  1263 xmlsec1  CALL  stat(0x1800e00,0xbfffec10)
  1263 xmlsec1  NAMI  "../../.."
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  open(0x1800e00,0x4,0)
  1263 xmlsec1  NAMI  "../../.."
  1263 xmlsec1  RET   open 4
  1263 xmlsec1  CALL  fstat(0x4,0xbfffec10)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  fcntl(0x4,0x2,0x1)
  1263 xmlsec1  RET   fcntl 0
  1263 xmlsec1  CALL  fstatfs(0x4,0xbfffec70)
  1263 xmlsec1  RET   fstatfs 0
  1263 xmlsec1  CALL  fstat(0x4,0xbfffee20)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  getdirentries(0x4,0x1808600,0x1000,0x1107f44)
  1263 xmlsec1  RET   getdirentries 164/0xa4
  1263 xmlsec1  CALL  lseek(0x4,0,0,0)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  close(0x4)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  lstat(0x1800e00,0xbfffee20)
  1263 xmlsec1  NAMI  "../../../"
  1263 xmlsec1  RET   lstat 0
  1263 xmlsec1  CALL  stat(0x1800e00,0xbfffec10)
  1263 xmlsec1  NAMI  "../../../.."
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  open(0x1800e00,0x4,0)
  1263 xmlsec1  NAMI  "../../../.."
  1263 xmlsec1  RET   open 4
  1263 xmlsec1  CALL  fstat(0x4,0xbfffec10)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  fcntl(0x4,0x2,0x1)
  1263 xmlsec1  RET   fcntl 0
  1263 xmlsec1  CALL  fstatfs(0x4,0xbfffec70)
  1263 xmlsec1  RET   fstatfs 0
  1263 xmlsec1  CALL  fstat(0x4,0xbfffee20)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  getdirentries(0x4,0x1808600,0x1000,0x1107f44)
  1263 xmlsec1  RET   getdirentries 68/0x44
  1263 xmlsec1  CALL  lseek(0x4,0,0,0)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  close(0x4)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  lstat(0x1800e00,0xbfffee20)
  1263 xmlsec1  NAMI  "../../../../"
  1263 xmlsec1  RET   lstat 0
  1263 xmlsec1  CALL  stat(0x1800e00,0xbfffec10)
  1263 xmlsec1  NAMI  "../../../../.."
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  open(0x1800e00,0x4,0)
  1263 xmlsec1  NAMI  "../../../../.."
  1263 xmlsec1  RET   open 4
  1263 xmlsec1  CALL  fstat(0x4,0xbfffec10)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  fcntl(0x4,0x2,0x1)
  1263 xmlsec1  RET   fcntl 0
  1263 xmlsec1  CALL  fstatfs(0x4,0xbfffec70)
  1263 xmlsec1  RET   fstatfs 0
  1263 xmlsec1  CALL  fstat(0x4,0xbfffee20)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  getdirentries(0x4,0x1808600,0x1000,0x1107f44)
  1263 xmlsec1  RET   getdirentries 1132/0x46c
  1263 xmlsec1  CALL  lseek(0x4,0,0,0)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  close(0x4)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  lstat(0x1800e00,0xbfffee20)
  1263 xmlsec1  NAMI  "../../../../../"
  1263 xmlsec1  RET   lstat 0
  1263 xmlsec1  CALL  stat(0x1800e00,0xbfffec10)
  1263 xmlsec1  NAMI  "../../../../../.."
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  open(0x1800e00,0x4,0)
  1263 xmlsec1  NAMI  "../../../../../.."
  1263 xmlsec1  RET   open 4
  1263 xmlsec1  CALL  fstat(0x4,0xbfffec10)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  fcntl(0x4,0x2,0x1)
  1263 xmlsec1  RET   fcntl 0
  1263 xmlsec1  CALL  fstatfs(0x4,0xbfffec70)
  1263 xmlsec1  RET   fstatfs 0
  1263 xmlsec1  CALL  fstat(0x4,0xbfffee20)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  getdirentries(0x4,0x1808600,0x1000,0x1107f44)
  1263 xmlsec1  RET   getdirentries 88/0x58
  1263 xmlsec1  CALL  lseek(0x4,0,0,0)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  close(0x4)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  lstat(0x1800e00,0xbfffee20)
  1263 xmlsec1  NAMI  "../../../../../../"
  1263 xmlsec1  RET   lstat 0
  1263 xmlsec1  CALL  stat(0x1800e00,0xbfffec10)
  1263 xmlsec1  NAMI  "../../../../../../.."
  1263 xmlsec1  RET   stat 0
  1263 xmlsec1  CALL  open(0x1800e00,0x4,0)
  1263 xmlsec1  NAMI  "../../../../../../.."
  1263 xmlsec1  RET   open 4
  1263 xmlsec1  CALL  fstat(0x4,0xbfffec10)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  fcntl(0x4,0x2,0x1)
  1263 xmlsec1  RET   fcntl 0
  1263 xmlsec1  CALL  fstatfs(0x4,0xbfffec70)
  1263 xmlsec1  RET   fstatfs 0
  1263 xmlsec1  CALL  fstat(0x4,0xbfffee20)
  1263 xmlsec1  RET   fstat 0
  1263 xmlsec1  CALL  getdirentries(0x4,0x1808600,0x1000,0x1107f44)
  1263 xmlsec1  RET   getdirentries 644/0x284
  1263 xmlsec1  CALL  lseek(0x4,0,0,0)
  1263 xmlsec1  RET   lseek 0
  1263 xmlsec1  CALL  close(0x4)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  lstat(0x1800e00,0xbfffee20)
  1263 xmlsec1  NAMI  "../../../../../../../"
  1263 xmlsec1  RET   lstat 0
  1263 xmlsec1  CALL  read(0x3,0x1802600,0x1000)
  1263 xmlsec1  GIO   fd 3 read 1230 bytes
       "<?xml version="1.0" encoding="UTF-8"?>
	<!-- 
	XML Security Library example: Simple signature template file for sign1 example. 
	-->
	<Envelope xmlns="urn:envelope">
	  <Data>
		Hello, World!
	  </Data>
	  <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
	    <SignedInfo>
	      <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
	      <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
	      <Reference URI="">
	        <Transforms>
	          <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
	        </Transforms>
	        <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
	        <DigestValue>9H/rQr2Axe9hYTV2n/tCp+3UIQQ=</DigestValue>
	      </Reference>
	    </SignedInfo>
	    <SignatureValue>Mx4psIy9/UY+u8QBJRDrwQWKRaCGz0WOVftyDzAe6WHAFSjMNr7qb2ojq9kdipT8
	Oub5q2OQ7mzdSLiiejkrO1VeqM/90yEIGI4En6KEB6ArEzw+iq4N1wm6EptcyxXx
	M9StAOOa9ilWYqR9Tfx3SW1urUIuKYgUitxsONiUHBVaW6HeX51bsXoTF++4ZI+D
	jiPBjN4HHmr0cbJ6BXk91S27ffZIfp1Qj5nL9onFLUGbR6EFgu2luiRzQbPuM2tP
	XxyI7GZ8AfHnRJK28ARvBC9oi+O1ej20S79CIV7gdBxbLbFprozBHAwOEC57YgJc
	x+YEjSjcO7SBIR1FiUA7pw==</SignatureValue>
	    <KeyInfo>
		<KeyName/>
	    </KeyInfo>
	  </Signature>
	</Envelope>
       "
  1263 xmlsec1  RET   read 1230/0x4ce
  1263 xmlsec1  CALL  read(0x3,0x1802600,0x1000)
  1263 xmlsec1  GIO   fd 3 read 0 bytes
       ""
  1263 xmlsec1  RET   read 0
  1263 xmlsec1  CALL  close(0x3)
  1263 xmlsec1  RET   close 0
  1263 xmlsec1  CALL  getrusage(0,0xbffff4f0)
  1263 xmlsec1  RET   getrusage 0
  1263 xmlsec1  CALL  getrusage(0,0xbffff4f0)
  1263 xmlsec1  RET   getrusage 0
  1263 xmlsec1  CALL  write(0x2,0xa9f0,0x3)
  1263 xmlsec1  GIO   fd 2 wrote 3 bytes
       "OK
       "
  1263 xmlsec1  RET   write 3
  1263 xmlsec1  CALL  write(0x2,0xbfffed60,0x24)
  1263 xmlsec1  GIO   fd 2 wrote 36 bytes
       "SignedInfo References (ok/all): 1/1
       "
  1263 xmlsec1  RET   write 36/0x24
  1263 xmlsec1  CALL  write(0x2,0xbfffed60,0x23)
  1263 xmlsec1  GIO   fd 2 wrote 35 bytes
       "Manifests References (ok/all): 0/0
       "
  1263 xmlsec1  RET   write 35/0x23
  1263 xmlsec1  CALL  write(0x2,0xbfffe930,0x75)
  1263 xmlsec1  GIO   fd 2 wrote 117 bytes
       "func=xmlSecCryptoDLLibraryDestroy:file=dl.c:line=200:obj=xmlsec_lt_dlclose:subj=unknown:error=7:io function failed: 
       "
  1263 xmlsec1  RET   write 117/0x75
  1263 xmlsec1  CALL  exit(0)
-------------- next part --------------

On 2004-Jan-12, at 14:40, Aleksey Sanin wrote:

> Ok, I found it. The problem is caused by the following line in 
> aclocal.m4:
>
>       shrext='$(test .$module = .yes && echo .so || echo .dylib)'
>
> If I cahnge this line to
>
>       shrext=`test .$module = .yes && echo .so || echo .dylib`
>
> everything works just fine (note that in the tarball xmlsec 
> distribution this line
> shows up in several files thus you need to change all of them).
> All these autoconf scripts is a black magic to me thus I am not sure 
> that my
> change is correct. The aclocal.m4 file in xmlsec distribution is 
> picked up from
> my build box libtool files. And as I just checked I have latest and 
> greatest libtool
> version installed. Probably we need to find some Mac expert who can 
> help with
> this.
>
>
> Aleksey
>
>
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
>


More information about the xmlsec mailing list