asn1-ber icon indicating copy to clipboard operation
asn1-ber copied to clipboard

Make fails ber.go:386: undefined: reflect.NewValue

Open hsoj opened this issue 13 years ago • 3 comments

With the latest 'Release' branch of Golang the asn1-ber package fails to build properly due to changes with the reflect package. The change was reflect.NewValue no longer exists and was replaced with reflect.ValueOf.

RESOLUTION:

@@ -383,7 +383,7 @@
    p.Description = Description

    if Value != nil {
-       v := reflect.NewValue(Value)
+       v := reflect.ValueOf(Value)

        if ( ClassType == ClassUniversal ) { 
            switch Tag {

hsoj avatar Jul 18 '11 13:07 hsoj

Bump! I can't goinstall your ldap package without this package, and this package wont install due to the above issue!

JalfResi avatar Jul 19 '11 11:07 JalfResi

I remedied the issues with both the ldap and asn1-ber package and made it goinstall'able. You can install the ldap package by using goinstall github.com/hsoj/ldap

hsoj avatar Jul 19 '11 13:07 hsoj

Ten steps ahead of you :) goinstalled your packages, got my project running, and have a very simple example to show my boss within the hour.

Cheers! Ben

On Tue, Jul 19, 2011 at 2:14 PM, hsoj < [email protected]>wrote:

I remedied the issues with both the ldap and asn1-ber package and made it goinstall'able. You can install the ldap package by using goinstall github.com/hsoj/ldap

Reply to this email directly or view it on GitHub: https://github.com/mmitton/asn1-ber/issues/1#issuecomment-1606809

JalfResi avatar Jul 19 '11 17:07 JalfResi