Re: Can't build due to ld option --no-undefined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On May 11, 2016, at 6:35 PM, Fabiano Fidêncio wrote:

> [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

Thank you very much for the directions. They were easy to follow. 

Sorry but a depreciation error took place:

/usr/local/Cellar/glib/2.46.2/include/glib-2.0/gio/glistmodel.h:36: warning: 'g_list_model_get_type' is deprecated (declared at /usr/local/Cellar/glib/2.46.2/include/glib-2.0/gio/glistmodel.h:36) [-Wdeprecated-declarations]
In file included from /usr/local/Cellar/glib/2.46.2/include/glib-2.0/gio/gio.h:165,
                 from ../osinfo/osinfo_device_driver.h:25,
                 from ../osinfo/osinfo.h:37,
                 from osinfo_avatar_format.c:28:
/usr/local/Cellar/glib/2.46.2/include/glib-2.0/gio/gliststore.h: In function 'G_LIST_STORE':
/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]
/usr/local/Cellar/glib/2.46.2/include/glib-2.0/gio/gliststore.h: In function 'G_IS_LIST_STORE':
/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]
make[3]: *** [libosinfo_1_0_la-osinfo_avatar_format.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux