mmitton / asn1-ber

ASN1 BER Encoding / Decoding Library for the GO programming language.
MIT License
34 stars 43 forks source link

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

Open hsoj opened 13 years ago

hsoj commented 13 years ago

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 {
JalfResi commented 13 years ago

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

hsoj commented 13 years ago

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

JalfResi commented 13 years ago

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 < reply@reply.github.com>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