Advertisement
Guest User

Successful compile / run of OT PHP API

a guest
Jul 12th, 2011
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.62 KB | None | 0 0
  1. This is the current version of Open-Transactions as of July 12, 2011.
  2.  
  3. The only difference might be the data_folder path in test.php, which you can edit as you like.
  4. (I cat the file below so you can see the version I am using, before I execute it.)
  5.  
  6.  
  7.  
  8. ~/Projects/Open-Transactions
  9. >
  10.  
  11. ~/Projects/Open-Transactions
  12. > make clean && make php5
  13. cd OTLib && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib clean
  14. rm -f bigint/BigUnsigned.o bigint/BigInteger.o bigint/BigIntegerAlgorithms.o bigint/BigUnsignedInABase.o bigint/BigIntegerUtils.o Lucre/bankimp.o irrxml/irrXML.o OTData.o OTString.o OTStringXML.o OTASCIIArmor.o OTContract.o OTWallet.o OTSignedFile.o OTPseudonym.o OTMint.o OTInstrument.o OTCheque.o OTPurse.o OTLog.o OTToken.o OTTransactionType.o OTItem.o OTBasket.o OTTransaction.o OTLedger.o OTAccount.o OTEnvelope.o OTAssetContract.o OTServerContract.o OTOffer.o OTAgreement.o OTTrackable.o OTCron.o OTCronItem.o OTTrade.o OTPaymentPlan.o OTMarket.o OTPayload.o OTMessage.o OTMessageBuffer.o OTIdentifier.o OTAsymmetricKey.o OTSignature.o OTStorage.o OTDataCheck.o Generics.pb.o Markets.pb.o Bitcoin.pb.o Moneychanger.pb.o easyzlib.o mkcert.o simpleini/ConvertUTF.o libOTLib.a libOTLibd.a
  15. cd transaction && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib clean
  16. rm -f OTClientConnection.o OTServer.o testserver.o SSL-Example/SFSocket.o transaction.exe transaction.debug
  17. cd transaction && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib TRANSPORT=ZMQ clean
  18. rm -f OTClientConnection.o OTServer.o xmlrpcxx_server.o SSL-Example/SFSocket.o transaction.exe transaction.debug
  19. cd testwallet && make -f Makefile.API PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib LANGUAGE=c clean
  20. rm -f otapi.so otapi.bundle _otapi.so _otapi.bundle otapi.dylib _otapi.dylib ./SSL-Example/SFSocket.o OpenTransactions.o OTServerConnection.o OTClient.o OTAPI.o libOTAPI.a libOTAPId.a
  21. cd testwallet && make -f Makefile.API PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib LANGUAGE=ruby clean
  22. rm -f otapi.so otapi.bundle _otapi.so _otapi.bundle otapi.dylib _otapi.dylib ./SSL-Example/SFSocket.o OTAPI_ruby.o OpenTransactions.o OTServerConnection.o OTClient.o OTAPI.o otapi.bundle otapid.bundle
  23. cd testwallet && make -f Makefile.API PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib LANGUAGE=python clean
  24. rm -f otapi.so otapi.bundle _otapi.so _otapi.bundle otapi.dylib _otapi.dylib ./SSL-Example/SFSocket.o OTAPI_python.o OpenTransactions.o OTServerConnection.o OTClient.o OTAPI.o _otapi.so _otapid.so
  25. cd testwallet && make -f Makefile.API PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib LANGUAGE=perl5 clean
  26. rm -f otapi.so otapi.bundle _otapi.so _otapi.bundle otapi.dylib _otapi.dylib ./SSL-Example/SFSocket.o OTAPI_perl5.o OpenTransactions.o OTServerConnection.o OTClient.o OTAPI.o otapi.bundle otapid.bundle
  27. cd testwallet && make -f Makefile.API PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib LANGUAGE=php5 clean
  28. rm -f otapi.so otapi.bundle _otapi.so _otapi.bundle otapi.dylib _otapi.dylib ./SSL-Example/SFSocket.o OTAPI_php.o OpenTransactions.o OTServerConnection.o OTClient.o OTAPI.o otapi.so otapid.so
  29. cd testwallet && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib clean
  30. rm -f SSL-Example/SFSocket.o OpenTransactions.o OTServerConnection.o OTClient.o testclient.o testwallet.exe testwallet.debug
  31. cd testwallet && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib TRANSPORT=ZMQ clean
  32. rm -f SSL-Example/SFSocket.o OpenTransactions.o OTServerConnection.o OTClient.o xmlrpcxx_client.o testwallet.exe testwallet.debug
  33. cd util/otcreatemint && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib clean && touch ../../transaction/data_folder/createmint.tmp && rm ../../transaction/data_folder/createmint.*
  34. rm -f main.o createmint.exe createmint.debug
  35. cd util/signcontract && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib clean && touch ../../testwallet/data_folder/signcontract.tmp && rm ../../testwallet/data_folder/signcontract.*
  36. rm -f main.o signcontract.exe signcontract.debug
  37. cd OTLib && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib
  38. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o bigint/BigUnsigned.o bigint/BigUnsigned.cc
  39. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o bigint/BigInteger.o bigint/BigInteger.cc
  40. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o bigint/BigIntegerAlgorithms.o bigint/BigIntegerAlgorithms.cc
  41. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o bigint/BigUnsignedInABase.o bigint/BigUnsignedInABase.cc
  42. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o bigint/BigIntegerUtils.o bigint/BigIntegerUtils.cc
  43. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o Lucre/bankimp.o Lucre/bankimp.cpp
  44. Lucre/bankimp.cpp: In static member function ‘static void Bank::cb(int, int, void*)’:
  45. Lucre/bankimp.cpp:135: warning: value computed is not used
  46. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o irrxml/irrXML.o irrxml/irrXML.cpp
  47. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTData.o OTData.cpp
  48. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTString.o OTString.cpp
  49. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTStringXML.o OTStringXML.cpp
  50. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTASCIIArmor.o OTASCIIArmor.cpp
  51. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTContract.o OTContract.cpp
  52. OTContract.cpp: In member function ‘bool OTContract::InsertNym(const OTString&, const OTString&)’:
  53. OTContract.cpp:2206: warning: unused variable ‘bSuccessSetID’
  54. OTContract.cpp:2213: warning: unused variable ‘bSuccessSetID’
  55. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTWallet.o OTWallet.cpp
  56. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTSignedFile.o OTSignedFile.cpp
  57. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTPseudonym.o OTPseudonym.cpp
  58. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTMint.o OTMint.cpp
  59. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTInstrument.o OTInstrument.cpp
  60. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTCheque.o OTCheque.cpp
  61. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTPurse.o OTPurse.cpp
  62. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTLog.o OTLog.cpp
  63. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTToken.o OTToken.cpp
  64. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTTransactionType.o OTTransactionType.cpp
  65. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTItem.o OTItem.cpp
  66. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTBasket.o OTBasket.cpp
  67. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTTransaction.o OTTransaction.cpp
  68. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTLedger.o OTLedger.cpp
  69. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTAccount.o OTAccount.cpp
  70. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTEnvelope.o OTEnvelope.cpp
  71. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTAssetContract.o OTAssetContract.cpp
  72. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTServerContract.o OTServerContract.cpp
  73. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTOffer.o OTOffer.cpp
  74. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTAgreement.o OTAgreement.cpp
  75. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTTrackable.o OTTrackable.cpp
  76. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTCron.o OTCron.cpp
  77. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTCronItem.o OTCronItem.cpp
  78. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTTrade.o OTTrade.cpp
  79. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTPaymentPlan.o OTPaymentPlan.cpp
  80. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTMarket.o OTMarket.cpp
  81. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTPayload.o OTPayload.cpp
  82. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTMessage.o OTMessage.cpp
  83. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTMessageBuffer.o OTMessageBuffer.cpp
  84. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTIdentifier.o OTIdentifier.cpp
  85. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTAsymmetricKey.o OTAsymmetricKey.cpp
  86. OTAsymmetricKey.cpp: In function ‘int default_pass_cb(char*, int, int, void*)’:
  87. OTAsymmetricKey.cpp:361: warning: deprecated conversion from string constant to ‘char*’
  88. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTSignature.o OTSignature.cpp
  89. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTStorage.o OTStorage.cpp
  90. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o OTDataCheck.o OTDataCheck.cpp
  91. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o Generics.pb.o Generics.pb.cpp
  92. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o Markets.pb.o Markets.pb.cpp
  93. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o Bitcoin.pb.o Bitcoin.pb.cpp
  94. g++ -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o Moneychanger.pb.o Moneychanger.pb.cpp
  95. gcc -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o easyzlib.o easyzlib.c
  96. gcc -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o mkcert.o mkcert.c
  97. mkcert.c: In function ‘mkcert’:
  98. mkcert.c:122: warning: pointer targets in passing argument 4 of ‘X509_NAME_add_entry_by_txt’ differ in signedness
  99. mkcert.c:124: warning: pointer targets in passing argument 4 of ‘X509_NAME_add_entry_by_txt’ differ in signedness
  100. gcc -I/opt/local/include -I./irrxml -I./Lucre -I./bigint -I./simpleini -I./ -Wall -c -o simpleini/ConvertUTF.o simpleini/ConvertUTF.c
  101. ar rc libOTLib.a bigint/BigUnsigned.o bigint/BigInteger.o bigint/BigIntegerAlgorithms.o bigint/BigUnsignedInABase.o bigint/BigIntegerUtils.o Lucre/bankimp.o irrxml/irrXML.o OTData.o OTString.o OTStringXML.o OTASCIIArmor.o OTContract.o OTWallet.o OTSignedFile.o OTPseudonym.o OTMint.o OTInstrument.o OTCheque.o OTPurse.o OTLog.o OTToken.o OTTransactionType.o OTItem.o OTBasket.o OTTransaction.o OTLedger.o OTAccount.o OTEnvelope.o OTAssetContract.o OTServerContract.o OTOffer.o OTAgreement.o OTTrackable.o OTCron.o OTCronItem.o OTTrade.o OTPaymentPlan.o OTMarket.o OTPayload.o OTMessage.o OTMessageBuffer.o OTIdentifier.o OTAsymmetricKey.o OTSignature.o OTStorage.o OTDataCheck.o Generics.pb.o Markets.pb.o Bitcoin.pb.o Moneychanger.pb.o easyzlib.o mkcert.o simpleini/ConvertUTF.o
  102. cd transaction && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib TRANSPORT=ZMQ
  103. g++ -I/opt/local/include -I../OTLib/irrxml -I../OTLib -I./SSL-Example -I../OTLib/simpleini -I. -DOT_ZMQ_MODE -c -o OTClientConnection.o OTClientConnection.cpp
  104. g++ -I/opt/local/include -I../OTLib/irrxml -I../OTLib -I./SSL-Example -I../OTLib/simpleini -I. -DOT_ZMQ_MODE -c -o OTServer.o OTServer.cpp
  105. g++ -I/opt/local/include -I../OTLib/irrxml -I../OTLib -I./SSL-Example -I../OTLib/simpleini -I. -DOT_ZMQ_MODE -c -o xmlrpcxx_server.o xmlrpcxx_server.cpp
  106. cc -I/opt/local/include -I../OTLib/irrxml -I../OTLib -I./SSL-Example -I../OTLib/simpleini -I. -DOT_ZMQ_MODE -c -o ./SSL-Example/SFSocket.o ./SSL-Example/SFSocket.c
  107. g++ -L/opt/local/lib -L../OTLib -lssl -lcrypto -lOTLib -lssl -lcrypto -lOTLib -lssl -lcrypto -lOTLib -lssl -lcrypto -lprotobuf -lmsgpack -lzmq -lOTLib -o transaction.exe OTClientConnection.o OTServer.o xmlrpcxx_server.o SSL-Example/SFSocket.o
  108. cd testwallet && make -f Makefile.API PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib TRANSPORT=ZMQ LANGUAGE=c clean
  109. rm -f otapi.so otapi.bundle _otapi.so _otapi.bundle otapi.dylib _otapi.dylib ./SSL-Example/SFSocket.o OpenTransactions.o OTServerConnection.o OTClient.o OTAPI.o libOTAPI.a libOTAPId.a
  110. cd testwallet && make -f Makefile.API PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib TRANSPORT=ZMQ LANGUAGE=php5 clean
  111. rm -f otapi.so otapi.bundle _otapi.so _otapi.bundle otapi.dylib _otapi.dylib ./SSL-Example/SFSocket.o OTAPI_php.o OpenTransactions.o OTServerConnection.o OTClient.o OTAPI.o otapi.so otapid.so
  112. cd testwallet && make -f Makefile.API PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib TRANSPORT=ZMQ LANGUAGE=php5
  113. cp OTAPI_php.h OTAPI_wrap.h
  114. g++ -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/local/include -I../OTLib/irrxml -I../OTLib -I./SSL-Example -I../OTLib/simpleini -I. -m64 -fPIC -DOT_ZMQ_MODE -c -o OTAPI_php.o OTAPI_php.cpp
  115. g++ -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/local/include -I../OTLib/irrxml -I../OTLib -I./SSL-Example -I../OTLib/simpleini -I. -m64 -fPIC -DOT_ZMQ_MODE -c -o OpenTransactions.o OpenTransactions.cpp
  116. g++ -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/local/include -I../OTLib/irrxml -I../OTLib -I./SSL-Example -I../OTLib/simpleini -I. -m64 -fPIC -DOT_ZMQ_MODE -c -o OTServerConnection.o OTServerConnection.cpp
  117. g++ -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/local/include -I../OTLib/irrxml -I../OTLib -I./SSL-Example -I../OTLib/simpleini -I. -m64 -fPIC -DOT_ZMQ_MODE -c -o OTClient.o OTClient.cpp
  118. g++ -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/local/include -I../OTLib/irrxml -I../OTLib -I./SSL-Example -I../OTLib/simpleini -I. -m64 -fPIC -DOT_ZMQ_MODE -c -o OTAPI.o OTAPI.cpp
  119. cc -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/local/include -I../OTLib/irrxml -I../OTLib -I./SSL-Example -I../OTLib/simpleini -I. -m64 -fPIC -DOT_ZMQ_MODE -c -c -o SSL-Example/SFSocket.o SSL-Example/SFSocket.c
  120. g++ -L/opt/local/lib -L../OTLib -m64 -bundle_loader /usr/libexec/apache2/libphp5.so -flat_namespace -bundle -lssl -lcrypto -lOTLib -lssl -lcrypto -lOTLib -lssl -lcrypto -lOTLib -lssl -lcrypto -lprotobuf -lmsgpack -lzmq -lOTLib -o otapi.so OTAPI_php.o OpenTransactions.o OTServerConnection.o OTClient.o OTAPI.o ./SSL-Example/SFSocket.o
  121. ld: warning: duplicate dylib /opt/local/lib/libz.1.dylib
  122. cd util/otcreatemint && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib && cp ./createmint.exe ../../transaction/data_folder/createmint.exe
  123. g++ -I/opt/local/include -I../../OTLib/irrxml -I../../OTLib/simpleini -I../../OTLib -I./ -c -c -o main.o main.cpp
  124. g++ -L/opt/local/lib -L../../OTLib -lssl -lcrypto -lprotobuf -lmsgpack -lOTLib -o createmint.exe main.o
  125. cd util/signcontract && make PLATFORM=darwin SSL_INCLUDEDIRS=-I/opt/local/include SSL_LIBDIRS=-L/opt/local/lib && cp ./signcontract.exe ../../testwallet/data_folder/signcontract.exe
  126. g++ -I/opt/local/include -I../../OTLib/irrxml -I../../OTLib -I../../OTLib/simpleini -I./ -c -c -o main.o main.cpp
  127. g++ -L/opt/local/lib -L../../OTLib -lssl -lcrypto -lprotobuf -lmsgpack -lOTLib -o signcontract.exe main.o
  128.  
  129. ~/Projects/Open-Transactions
  130. >
  131.  
  132. ~/Projects/Open-Transactions
  133. > cd testwallet
  134.  
  135.  
  136. ~/Projects/Open-Transactions/testwallet
  137. > cat test.php
  138. <?php
  139.  
  140. require_once "otapi.php";
  141.  
  142. $wallet_path = "/Users/au/Projects/Open-Transactions/testwallet/data_folder";
  143. $ot_init = otapi.OT_API_Init($wallet_path);
  144. $switch_wallet = otapi.OT_API_SwitchWallet($wallet_path, "wallet.xml");
  145. echo "OT_API_Init => " . var_dump($ot_init);
  146. echo "OT_SwitchWallet => " . var_dump($switch_wallet);
  147.  
  148. ?>
  149.  
  150. ~/Projects/Open-Transactions/testwallet
  151. >
  152.  
  153. ~/Projects/Open-Transactions/testwallet
  154. > php test.php
  155.  
  156. Warning: dl(): Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/otapi.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/otapi.so, 9): image not found in /Users/au/Projects/Open-Transactions/testwallet/otapi.php on line 22
  157.  
  158. Fatal error: Call to undefined function OT_API_Init() in /Users/au/Projects/Open-Transactions/testwallet/test.php on line 6
  159.  
  160. ~/Projects/Open-Transactions/testwallet
  161. >
  162.  
  163. ~/Projects/Open-Transactions/testwallet
  164. > sudo cp otapi.so /usr/lib/php/extensions/no-debug-non-zts-20090626/otapi.so
  165.  
  166. ~/Projects/Open-Transactions/testwallet
  167. >
  168.  
  169. ~/Projects/Open-Transactions/testwallet
  170. > php test.php
  171. Expected a data_folder path, and a wallet filename, but got this: /Users/au/Projects/Open-Transactions/testwallet/data_folder/
  172. Make sure to call LoadWallet.
  173.  
  174. Loading wallet: , version: 1.0
  175.  
  176.  
  177. ** Pseudonym ** (wallet listing): FT's Test Nym
  178. ID: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  179. Successfully loaded public key from x509 from certfile: certs/T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  180. Using 'test' pass phrase for "(null)"
  181. Successfully loaded private key:
  182. certs/T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  183. Successfully loaded public key from Certfile: certs/T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  184. Successfully loaded private key from: certs/T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  185. Collecting message digest algorithm from contract header...
  186. Skipping version section...
  187.  
  188. Loading user, version: 1.0 NymID:
  189. T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  190.  
  191. Current Request Number is 154 for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  192. Transaction Number 2019 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  193. Transaction Number 2020 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  194. Transaction Number 2021 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  195. Transaction Number 2022 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  196. Transaction Number 2023 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  197. Transaction Number 2024 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  198. Transaction Number 2025 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  199. Transaction Number 2026 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  200. Transaction Number 2027 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  201. Transaction Number 2030 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  202. Transaction Number 2031 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  203. Transaction Number 2032 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  204. Transaction Number 2033 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  205. Transaction Number 2034 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  206. Transaction Number 2035 available for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  207. Currently liable for Transaction Number 2019, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  208. Currently liable for Transaction Number 2020, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  209. Currently liable for Transaction Number 2021, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  210. Currently liable for Transaction Number 2022, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  211. Currently liable for Transaction Number 2023, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  212. Currently liable for Transaction Number 2024, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  213. Currently liable for Transaction Number 2025, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  214. Currently liable for Transaction Number 2026, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  215. Currently liable for Transaction Number 2027, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  216. Currently liable for Transaction Number 2030, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  217. Currently liable for Transaction Number 2031, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  218. Currently liable for Transaction Number 2032, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  219. Currently liable for Transaction Number 2033, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  220. Currently liable for Transaction Number 2034, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  221. Currently liable for Transaction Number 2035, for ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  222. Collecting message digest algorithm from contract header...
  223. Skipping version section...
  224.  
  225. ===> Loading XML for Message into memory structures...
  226.  
  227. Command: sendUserMessage
  228. NymID: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  229. NymID2: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  230. ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  231. Request #: 100
  232. Collecting message digest algorithm from contract header...
  233. Skipping version section...
  234.  
  235. ===> Loading XML for Message into memory structures...
  236.  
  237. Command: outmailMessage
  238. NymID: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  239. NymID2: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  240. ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  241. Request #: 100
  242.  
  243.  
  244. ****Asset Contract**** (server listing) Name: silver grams
  245. Contract ID:
  246. BgYAQB0KIlkVt4vE8cbBcCA9onXYkaQK7CMNCoxeiOp
  247. Collecting message digest algorithm from contract header...
  248. Skipping version section...
  249.  
  250. ===> Loading XML portion of asset contract into memory structures...
  251.  
  252. Digital Asset Contract: silver grams
  253. Contract version: 1.0
  254. ----------
  255. Loaded Entity, shortname:
  256. Longname: The Gnomes of Zurich, email: gnome@zurich.com
  257. ----------
  258. Loaded Issue company: Anon-E-Gold, Inc
  259. Email: gnome@anonesilver.com
  260. ContractURL: https://e-silver.com/cash/contract/
  261. Type: currency
  262. ----------
  263. Loaded Currency, Name: silver grams, TLA: GRAM, Symbol: sg
  264. Type: decimal, Factor: 1, Decimal Power: 0, Fraction: mg
  265. ----------
  266. ---- Loaded condition "backing"
  267. ---- Loaded condition "audit"
  268. ---- Loaded condition "purchase"
  269. ---- Loaded condition "redemption"
  270. ---- Loaded condition "rate"
  271. ---- Loaded condition "buyback"
  272. ---- Loaded condition "liability"
  273. ---- Loaded condition "mint"
  274. ---- Loaded condition "privacy"
  275.  
  276. Reading public key from x509 stored in bookended string...
  277.  
  278. Successfully extracted a public key from an x509 certificate.
  279. ---- Loaded certificate "contract"
  280. ---- Loaded public key "certification"
  281. ---- Loaded public key "serverCertification"
  282.  
  283. Contract ID *SUCCESSFUL* match to SAMY hash of contract file:
  284. BgYAQB0KIlkVt4vE8cbBcCA9onXYkaQK7CMNCoxeiOp
  285.  
  286.  
  287. Verified -- The Contract ID from the wallet matches the newly-calculated hash of the contract file.
  288. Verified -- A standard "contract" Public Key or x509 Cert WAS found inside the contract.
  289. Verified -- And the **SIGNATURE VERIFIED** with THAT key.
  290.  
  291. ** Asset Contract Verified **
  292. -----------------------------------------------------------------------------
  293.  
  294.  
  295.  
  296.  
  297. ****Notary Server (contract)**** (wallet listing): Localhost Server Contract
  298. ServerID:
  299. 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  300. Collecting message digest algorithm from contract header...
  301. Skipping version section...
  302.  
  303. ===> Loading XML portion of server contract into memory structures...
  304.  
  305. Notary Server Name: Localhost Server Contract
  306. Contract version: 1.0
  307. ----------
  308. Loaded Entity, shortname:
  309. Longname: Transactions.com, LLC, email: serverfarm@cloudcomputing.com
  310. ----------
  311.  
  312. Notary Server connection info:
  313. --- Hostname: localhost
  314. --- Port: 7085
  315. --- URL:https://transactions.com/vers/1/
  316.  
  317. ---- Loaded condition "backing"
  318. ---- Loaded condition "audit"
  319. ---- Loaded condition "rate"
  320. ---- Loaded condition "liability"
  321. ---- Loaded condition "mint"
  322. ---- Loaded condition "privacy"
  323.  
  324. Reading public key from x509 stored in bookended string...
  325.  
  326. Successfully extracted a public key from an x509 certificate.
  327. ---- Loaded certificate "contract"
  328. ---- Loaded public key "certification"
  329. ---- Loaded public key "serverCertification"
  330.  
  331. Contract ID *SUCCESSFUL* match to SAMY hash of contract file:
  332. 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  333.  
  334.  
  335. Verified -- The Contract ID from the wallet matches the newly-calculated hash of the contract file.
  336. Verified -- A standard "contract" Public Key or x509 Cert WAS found inside the contract.
  337. Verified -- And the **SIGNATURE VERIFIED** with THAT key.
  338.  
  339. ** Server Contract Verified **
  340. -----------------------------------------------------------------------------
  341.  
  342.  
  343. --------------------------------------------------------------------------
  344. ****Account**** (wallet listing) name: ISSUER-Silver
  345. AccountID: RXIxc2GgZjMyGmoImahTGpOEM5MJZGyxYGiydCcDiiq
  346. ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  347. Collecting message digest algorithm from contract header...
  348. Skipping version section...
  349.  
  350.  
  351. Account Type: issuer
  352. AccountID: RXIxc2GgZjMyGmoImahTGpOEM5MJZGyxYGiydCcDiiq
  353. UserID: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  354. AssetTypeID: BgYAQB0KIlkVt4vE8cbBcCA9onXYkaQK7CMNCoxeiOp
  355. ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  356.  
  357. BALANCE -- -100000
  358. DATE -- 1307384552
  359.  
  360. --------------------------------------------------------------------------
  361. ****Account**** (wallet listing) name: FT's Test Acct
  362. AccountID: tcncZDMkXZ16WjoDNbP7uJGoH1fHh3Fu1ACXGuOxvMC
  363. ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  364. Collecting message digest algorithm from contract header...
  365. Skipping version section...
  366.  
  367.  
  368. Account Type: simple
  369. AccountID: tcncZDMkXZ16WjoDNbP7uJGoH1fHh3Fu1ACXGuOxvMC
  370. UserID: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
  371. AssetTypeID: BgYAQB0KIlkVt4vE8cbBcCA9onXYkaQK7CMNCoxeiOp
  372. ServerID: 8dlRJnGCjqU5jw7bZaw2AF112UrCZiFfBS9CnJrMWSp
  373.  
  374. BALANCE -- 99902
  375. DATE -- 1307384987
  376. string(6) "otapi0"
  377. OT_API_Init => string(6) "otapi1"
  378. OT_SwitchWallet =>
  379. ~/Projects/Open-Transactions/testwallet
  380. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement