[Libosinfo] Can't build due to ld option --no-undefined

Fabiano Fidêncio fidencio at redhat.com
Wed May 11 22:35:37 UTC 2016


[trimmed]

>
> I went to this page: https://gitlab.com/libosinfo/libosinfo/, then clicked the Download ZIP link. I can see that it has changed since I last downloaded it.
>
> After trying libosinfo-master-489fe46356d4a8056043af89c635a84aa4bade16, I saw the --no-undefined error again.
>
> /usr/local/Cellar/glib/2.46.2/include/glib-2.0/gio/gliststore.h:36: warning: 'g_list_store_get_type' is deprecated (declared at /usr/local/Cellar/glib/2.46.2/include/glib-2.0/gio/gliststore.h:36) [-Wdeprecated-declarations]
>   CCLD     libosinfo-1.0.la
> ld: unknown option: --no-undefined
> collect2: ld returned 1 exit status
> make[3]: *** [libosinfo-1.0.la] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> Maybe the link I was given is not the one with the patches applied.

Are you used to git? If yes, please, simply do:
git clone https://gitlab.com/libosinfo/libosinfo.git

If you're not used to git, then try downloading this file:
https://gitlab.com/libosinfo/libosinfo/repository/archive.zip?ref=master

And then:
cd libosinfo
./autogen.sh && make

Let me know if it solves your issue (that just seems to be an
environment without the needed patches)

Best Regards,
--
Fabiano Fidêncio




More information about the Libosinfo mailing list