Skip to content
This repository was archived by the owner on Aug 24, 2025. It is now read-only.

openssl build error #1

@sycamoreleaves

Description

@sycamoreleaves

build error

Context

When compiling openssl on VS2019, I get the following error

1>F:\source\FFmpeg-VS\openssl\include\openssl\x509.h(75,1): error C2059: syntax error: '<parameter-list>' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509.h(75,1): error C2143: syntax error: missing ')' before '(' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509.h(75,1): error C2059: syntax error: ')' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509.h(75,1): error C2143: syntax error: missing ')' before 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509.h(75,1): error C2091: function returns function (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509.h(75,1): error C2143: syntax error: missing '{' before 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509.h(75,1): error C2059: syntax error: 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509.h(81,34): error C2059: syntax error: '<parameter-list>' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(77,59): error C2059: syntax error: '(' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(77,59): error C2143: syntax error: missing ')' before '(' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(77,59): error C2059: syntax error: ')' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(77,59): error C2143: syntax error: missing ')' before 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(77,59): error C2091: function returns function (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(77,59): error C2143: syntax error: missing '{' before 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(77,59): error C2059: syntax error: 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(77,72): error C2059: syntax error: ')' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(79,62): error C2059: syntax error: '(' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(79,62): error C2143: syntax error: missing ')' before '(' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(79,62): error C2059: syntax error: ')' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(79,62): error C2143: syntax error: missing ')' before 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(79,62): error C2091: function returns function (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(79,62): error C2143: syntax error: missing '{' before 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(79,62): error C2059: syntax error: 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(79,75): error C2059: syntax error: ')' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(249,32): error C2059: syntax error: '(' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(249,32): error C2143: syntax error: missing ')' before '(' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(249,32): error C2059: syntax error: ')' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(249,32): error C2143: syntax error: missing ')' before 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(249,32): error C2091: function returns function (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(249,32): error C2143: syntax error: missing '{' before 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(249,32): error C2059: syntax error: 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(249,47): error C2059: syntax error: ')' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(252,46): error C2059: syntax error: '(' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(252,46): error C2143: syntax error: missing ')' before '(' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(252,46): error C2059: syntax error: ')' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(252,46): error C2143: syntax error: missing ')' before 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(252,46): error C2091: function returns function (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(252,46): error C2143: syntax error: missing '{' before 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)
1>F:\source\FFmpeg-VS\openssl\include\openssl\x509_vfy.h(252,46): error C2059: syntax error: 'constant' (compiling source file ..\crypto\asn1\asn_moid.c)

Your Environment

vs version: VS2019

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions