RE: GenAsn.bat deletes sm_free3_asn.cpp

"Colestock, Robert" <[email protected]> Thu, 8 Nov 2001 09:40:46 -0500
Newsgroups gmane.ietf.sfl
Message-ID <[email protected]>
Christian:

You are correct, that particular file should not be deleted.  It would
appear you have diagnosed the problem.  I have had difficulty in making the
makefiles/batch files run on the various MS Windows platforms, hence the odd
executions.  You can try deleting that statement, but you must be sure that
the other external .asn files are deleted (you can delete these external
files by hand if necessary for the build, just leave any local .asn
references intace, e.g. sm_free3_asn.cpp/h).  These external files are
generated as a side effect of the SNACC compiler linkage and CANNOT BE
PRESENT when the project builds.  The external .asn files are linked from
libCert.

Our new release appears to work well on MS Windows NT/2000/98.  Hopefully
this problem will go away.

Bob Colestock
VDA.

-----Original Message-----
From: Christian Stigen Larsen [mailto:[email protected]]
Sent: Wednesday, November 07, 2001 1:21 PM
To: [email protected]
Subject: GenAsn.bat deletes sm_free3_asn.cpp



Hi all,

I'm new to this list, so I've been sure to read relevant postings
in the mail-archive before posting my question.

I'm running Windows 2000 and using Microsoft Visual C++ 6.0.

After extracting all files to what I hope are the correct locations,
I start with compiling the ASN files.

Running GenAsn.bat however seems to fail building some ASN files,
specifically the sm_free3_asn.asn file.

It seems the build process deletes this file after compiling it:

[...]
Building alg_libs ASN.1 Modules
../../../SMPDist/bin/snacc.exe -D -C
-u../../../SMPDist/util/VDASnacc/cpplib/asn1/asn-usefulVDA.asn1
../../libcert/asn1/sm_vdatypes.asn
../../libcert/asn1/sm_x501ud.asn
../../libcert/asn1/sm_x411ub.asn
../../libcert/asn1/sm_x411mtsas.asn
../../libcert/asn1/sm_x501if.asn
../../libcert/asn1/sm_x520sa.asn
../../libcert/asn1/sm_x509cmn.asn
../../libcert/asn1/sm_x509af.asn
../../libcert/asn1/sm_x509ce.asn
../../libcert/asn1/sm_VDASupport_asn.asn
../../libsrc/asn1/sm_cms.asn sm_free3_asn.asn
del sm_free3_asn.cpp
Could Not Find F:\Development\SMP\SMIME\alg_libs\sm_free3\sm_free3_asn.cpp
..\..\gnutools\make.exe: *** [sm_free3_asn.cpp] Error 1
[...]

Now, looking at the makefile Make_w32algasn I find:

.asn.cpp: 
	$(SNACC) $(SNACCFLAGS) $(ASNEXTERN) $<
	del $*.cpp
	rename $*.C $*.cpp

Is line "del $*.cpp" appearing in the correct place? Uncommenting this
of course makes sure that sm_free3_asn.cpp is not deleted.

Any comments would be helpful.

Regards,
  Christian

-- 
Christian Stigen Larsen -- http://www.sublevel3.org -- mob: +4798220215