Re: bug installing OpenVPN

2016-02-17 Thread Феликс Фролов
Your method also does not work, I used version easy-rsa-2.2.0p1
All releases of OpenSSL uses the variable $ENV::
Openbsd do not use this variable with version 5.8

Removal of OPENSSL_issetugid and all library getenv calls.
Applications can and should no longer rely on environment variables
for changing library behavior. OPENSSL_CONF and SSLEAY_CONF are still
supported with the openssl(1) command, but note that $ENV:: is no
longer supported in .cnf files.


What should I do?

2016-02-08 22:09 GMT+05:00, Феликс Фролов :
> wooow :) http://comments.gmane.org/gmane.os.openbsd.misc/227498
>
> 2016-02-08 21:09 GMT+05:00, Феликс Фролов :
>> Read the last comment https://github.com/OpenVPN/easy-rsa/issues/74
>>
>> 2016-02-08 20:21 GMT+05:00, Феликс Фролов :
>>> I think the dog is buried here
>>>
37 line OpenSSL
>>>
dir = $ENV::KEY_DIR # Where everything is kept
>>>
>>> http://www.openbsd.org/58.html
>>>
Removal of OPENSSL_issetugid and all library getenv calls. Applications
 can
 and should no longer rely on environment variables for changing library
 behavior. OPENSSL_CONF and SSLEAY_CONF are still supported with the
 openssl(1) command, but note that $ENV:: is no longer supported in .cnf
 files.
>>>
>>>
>>> 2016-02-08 19:09 GMT+05:00, Феликс Фролов :
 easy-rsa-2.2.0p1 the same

 # ./build-ca
 error on line 37 of /usr/local/share/easy-rsa/openssl.cnf
 551557436:error:0E065068:configuration file routines:STR_COPY:variable
 has no
 value:/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/conf/conf_def.c:573:line
 37

 37 line OpenSSL

 dir = $ENV::KEY_DIR # Where everything is kept

 2016-02-08 15:45 GMT+05:00, Stuart Henderson :
> On 2016/02/08 15:29, Феликс Фролов wrote:
>> OpenBSD 5.8 GENERIC.MP#1098 i386
>> easy-rsa-2.2.0p0
>> openssl-1.0.1pp1
>> openvpn-2.3.7
>>
>> # ./build-ca
>> error on line 37 of /usr/local/share/easy-rsa/openssl.cnf
>> 68958:error:0E065068:configuration file
>> routines:STR_COPY:variable
>> has no
>> value:/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/conf/conf_def.c:573:line
>> 37
>>
>> --
>>
>> Felix Frolov
>> +7 (965) 6600015
>> felix.fro...@gmail.com
>> EOF
>>
>
> Update easy-rsa from -stable ports. Assuming you have already got a
> copy
> of the ports tree:
>
> cd /usr/ports/security/easy-rsa
> cvs up -r OPENBSD_5_8
> make clean && make update
>
> Or pre-built -stable packages are available from stable.mtier.org.
>
>


 --

 Felix Frolov
 +7 (965) 6600015
 felix.fro...@gmail.com
 EOF

>>>
>>>
>>> --
>>>
>>> Felix Frolov
>>> +7 (965) 6600015
>>> felix.fro...@gmail.com
>>> EOF
>>>
>>
>>
>> --
>>
>> Felix Frolov
>> +7 (965) 6600015
>> felix.fro...@gmail.com
>> EOF
>>
>
>
> --
>
> Felix Frolov
> +7 (965) 6600015
> felix.fro...@gmail.com
> EOF
>


-- 

Felix Frolov
+7 (965) 6600015
felix.fro...@gmail.com
EOF



Re: std::ifstream is broken on arm

2016-02-17 Thread Jonathan Gray
On Tue, Feb 16, 2016 at 08:08:13PM +, Miod Vallat wrote:
> Actually, I had forgotten to disable the stack protector, and guess
> what? Disabling it produces a working libstdc++, at least for that
> simple use case; I have not tried to build cmake.
> 
> Therefore I suggest the following diff until someone with enough love
> for the utter crap known as `arm' comes with a real compiler fix:
> 
> Index: Makefile
> ===
> RCS file: /OpenBSD/src/gnu/lib/libstdc++-v3/Makefile,v
> retrieving revision 1.8
> diff -u -p -r1.8 Makefile
> --- Makefile  14 May 2015 02:56:01 -  1.8
> +++ Makefile  16 Feb 2016 20:04:20 -
> @@ -17,6 +17,9 @@ CFLAGS+=-frandom-seed=RepeatabilityCons
>  CXXFLAGS+=   -frandom-seed=RepeatabilityConsideredGood
>  CXXFLAGS+=   -fno-implicit-templates -ffunction-sections -fdata-sections \
>   -Wno-deprecated
> +.if ${MACHINE_ARCH} == "arm"
> +CXXFLAGS+=   -fno-stack-protector
> +.endif
>  
>  DPADD=   ${LIBM}
>  LDADD=   -lm
> 

After building src/xenocara and prequisite ports it seems cmake
still has issues:

c++  -O2 -pipe  -I/usr/ports/pobj/cmake-3.4.3/build-arm/Bootstrap.cmk 
-I/usr/ports/pobj/cmake-3.4.3/cmake-3.4.3/Source   
-I/usr/ports/pobj/cmake-3.4.3/build-arm/Bootstrap.cmk  cmake.o cmakemain.o 
cmcmd.o cmCommandArgumentLexer.o cmCommandArgumentParser.o 
cmCommandArgumentParserHelper.o cmCommonTargetGenerator.o 
cmCPackPropertiesGenerator.o cmDefinitions.o cmDepends.o cmDependsC.o 
cmDocumentationFormatter.o cmPolicies.o cmProperty.o cmPropertyMap.o 
cmPropertyDefinition.o cmPropertyDefinitionMap.o cmMakeDepend.o cmMakefile.o 
cmExportFileGenerator.o cmExportInstallFileGenerator.o 
cmExportTryCompileFileGenerator.o cmExportSet.o cmExportSetMap.o 
cmExternalMakefileProjectGenerator.o cmGeneratorExpressionEvaluationFile.o 
cmGeneratedFileStream.o cmGeneratorTarget.o cmGeneratorExpressionContext.o 
cmGeneratorExpressionDAGChecker.o cmGeneratorExpressionEvaluator.o 
cmGeneratorExpressionLexer.o cmGeneratorExpressionNode.o 
cmGeneratorExpressionParser.o cmGeneratorExpression.o cmGlobalCommonGenerator.o 
cmGlobalGenerator.o cmInstallDirectoryGenerator.o cmLocalCommonGenerator.o 
cmLocalGenerator.o cmInstalledFile.o cmInstallGenerator.o 
cmInstallExportGenerator.o cmInstallFilesGenerator.o cmInstallScriptGenerator.o 
cmInstallTargetGenerator.o cmScriptGenerator.o cmSourceFile.o 
cmSourceFileLocation.o cmState.o cmSystemTools.o cmTestGenerator.o cmVersion.o 
cmFileTimeComparison.o cmGlobalUnixMakefileGenerator3.o 
cmLocalUnixMakefileGenerator3.o cmMakefileExecutableTargetGenerator.o 
cmMakefileLibraryTargetGenerator.o cmMakefileTargetGenerator.o 
cmMakefileUtilityTargetGenerator.o cmOutputConverter.o cmOSXBundleGenerator.o 
cmNewLineStyle.o cmBootstrapCommands1.o cmBootstrapCommands2.o 
cmCommandsForBootstrap.o cmTarget.o cmTest.o cmCustomCommand.o 
cmCustomCommandGenerator.o cmCacheManager.o cmListFileCache.o 
cmComputeLinkDepends.o cmComputeLinkInformation.o cmOrderDirectories.o 
cmComputeTargetDepends.o cmComputeComponentGraph.o cmExprLexer.o cmExprParser.o 
cmExprParserHelper.o cmGlobalNinjaGenerator.o cmLocalNinjaGenerator.o 
cmNinjaTargetGenerator.o cmNinjaNormalTargetGenerator.o 
cmNinjaUtilityTargetGenerator.o cmListFileLexer.o Directory.o EncodingCXX.o 
FStream.o Glob.o RegularExpression.o SystemTools.o EncodingC.o ProcessUNIX.o 
String.o System.o Terminal.o -o cmake
cmCommandArgumentParserHelper.o: In function 
`cmCommandArgumentParserHelper::AddString(std::basic_string const&)':
cmCommandArgumentParserHelper.cxx:(.text+0x208): warning: warning: strcpy() is 
almost always misused, please use strlcpy()
cmBootstrapCommands2.o: In function 
`cmStringCommand::HandleRandomCommand(std::vector, 
std::allocator > > const&)':
cmBootstrapCommands2.cxx:(.text+0x43a0): warning: warning: rand() may return 
deterministic values, is that what you want?
cmCommandArgumentParserHelper.o: In function 
`cmCommandArgumentParserHelper::CombineUnions(char*, char*)':
cmCommandArgumentParserHelper.cxx:(.text+0x35c): warning: warning: strcat() is 
almost always misused, please use strlcat()
cmMakefile.o: In function `cmMakefile::AddDefaultDefinitions()':
cmMakefile.cxx:(.text+0x81c4): warning: warning: sprintf() is often misused, 
please use snprintf()
loading initial cache file 
/usr/ports/pobj/cmake-3.4.3/build-arm/Bootstrap.cmk/InitialCacheFlags.cmake
CMake Error: Error processing file: 
/usr/ports/pobj/cmake-3.4.3/build-arm/Bootstrap.cmk/InitialCacheFlags.cmake
assertion "cmSystemTools::FileExists(currentStart.c_str(), true)" failed: file 
"/usr/ports/pobj/cmake-3.4.3/cmake-3.4.3/Source/cmMakefile.cxx", line 1652, 
function "Configure"
Abort trap (core dumped) 
-
Error when bootstrapping