Hi,

I followed the build instructions in the readme and I get this error:

/usr/bin/ld: cannot find -lopennsl
collect2: error: ld returned 1 exit status
make: *** [libsai.so.1.0] Error 1

Which makes sense since I don't have the OpenNSL library compiled in the
first place, since it's what I'm trying to build.

Any suggestions? I feel like I'm missing something fundamental here.

As an FYI, when I try to compile OpenNSL, this is the error. Even if the
headers were installed there wouldn't be anything to link to.

/root/opennsl/src/sai/brcm_sai_acl.c:19:17: fatal error: sai.h: No such
file or directory
 #include <sai.h>
                 ^
compilation terminated.
make[1]: *** [brcm_sai_acl.o] Error 1
make[1]: Leaving directory `/root/opennsl/output/inocybe-x86-trident2/sai'
make: *** [sai] Error 2
root@appliance02:~/opennsl/output/inocybe-x86-trident2#

Thanks
Calvin


On 20 May 2016 at 09:24, Vitaliy Ivanov <vital...@interfacemasters.com>
wrote:

> Try this one:
> https://github.com/Broadcom-Switch/SAI
>
>
> Thanks,
> Vitaliy
>
> On Fri, May 20, 2016 at 4:13 PM, Calvin Ference <cfere...@inocybe.ca>
> wrote:
>
>> Greetings,
>>
>> I've been trying to compile OpenNSL from source, but I've ran in an issue
>> where it's complaining about sai.h. A quick google search later and I
>> discover the OCP project for it.
>>
>> But the link on github doesn't have the source or any binaries, but only
>> the header files. I was wondering how I could go about getting this library
>> compiled for my system.
>>
>> Regards,
>> Calvin Ference
>>
>> _______________________________________________
>> opencompute-networking mailing list
>> Unsubscribe:
>> http://lists.opencompute.org/mailman/options/opencompute-networking
>>
>> opencompute-networking@lists.opencompute.org
>> http://lists.opencompute.org/mailman/listinfo/opencompute-networking
>>
>>
>
_______________________________________________
opencompute-networking mailing list
Unsubscribe: http://lists.opencompute.org/mailman/options/opencompute-networking

opencompute-networking@lists.opencompute.org
http://lists.opencompute.org/mailman/listinfo/opencompute-networking

Reply via email to