[Libosinfo] Can't build due to ld option --no-undefined
Fabiano Fidêncio
fabiano at fidencio.org
Wed May 11 21:21:46 UTC 2016
On Wed, May 11, 2016 at 10:26 PM, Programmingkid
<programmingkidx at gmail.com> wrote:
>
> On May 11, 2016, at 12:05 PM, Fabiano Fidêncio wrote:
>
>> On Wed, May 11, 2016 at 4:39 PM, Programmingkid
>> <programmingkidx at gmail.com> wrote:
>>>
>>> On May 11, 2016, at 9:56 AM, Fabiano Fidêncio wrote:
>>>
>>>> On Wed, May 11, 2016 at 3:47 PM, Programmingkid
>>>> <programmingkidx at gmail.com> wrote:
>>>>>
>>>>> On May 11, 2016, at 2:27 AM, Fabiano Fidêncio wrote:
>>>>>
>>>>>> On Tue, May 10, 2016 at 11:31 PM, Programmingkid
>>>>>> <programmingkidx at gmail.com> wrote:
>>>>>>>
>>>>>>> On May 10, 2016, at 5:06 PM, Fabiano Fidêncio wrote:
>>>>>>>
>>>>>>>> On Tue, May 10, 2016 at 10:24 PM, Programmingkid
>>>>>>>> <programmingkidx at gmail.com> wrote:
>>>>>>>>> When I try to build libosinfo-0.3.0, I see this error message: ld: unknown option: --no-undefined. What is the gcc version requirement for libosinfo 0.3.0? I am currently using gcc 4.2.1.
>>>>>>>>
>>>>>>>> Seems the same as reported here:
>>>>>>>> https://bugzilla.redhat.com/show_bug.cgi?id=1305016
>>>>>>>>
>>>>>>>> Are you building on OSX?
>>>>>>> Yes. Mac OS 10.6.
>>>>>>>
>>>>>>>> If yes, can you try the attached patch there?
>>>>>>>
>>>>>>> It does allow me to go past the configure stage, but during the make stage, I see this error:
>>>>>>>
>>>>>>> n file included from ../osinfo/osinfo_os.h:30,
>>>>>>> from ../osinfo/osinfo.h:55,
>>>>>>> from osinfo_avatar_format.c:28:
>>>>>>> ../osinfo/osinfo_media.h:68: error: redefinition of typedef 'OsinfoMedia'
>>>>>>> ../osinfo/osinfo_install_script.h:43: error: previous declaration of 'OsinfoMedia' was here
>>>>>>> make[3]: *** [libosinfo_1_0_la-osinfo_avatar_format.lo] Error 1
>>>>>>
>>>>>> Firstly, can you check if it also occurs with upstream code?
>>>>>> Our code is hosted here: https://gitlab.com/libosinfo/libosinfo/ and
>>>>>> you can checkout our repo by:
>>>>>> https://gitlab.com/libosinfo/libosinfo.git
>>>>>>
>>>>>>>
>>>>>>> Thank you.
>>>>>>
>>>>>> Best Regards,
>>>>>> --
>>>>>> Fabiano Fidêncio
>>>>>
>>>>>
>>>>> I went to the gitlab page and downloaded the zip file. The file's name is libosinfo-master-c4d379042f57f0512ba3fb5fea2109acc941b460. When I went to "configure" libosinfo, an error said the configure command could not be found. How do I start building this code?
>>>>
>>>> ./autogen.sh
>>>
>>> Thanks for the help. After installing gnome-common 3.18.0, I ran ./autogen.sh. It says to run make. When I do it looks like the configure script runs over and over again in an infinite loop. I see "checking" a lot. Here is an example:
>>>
>>> cd . && /bin/sh /Users/me/Desktop/libosinfo-master-c4d379042f57f0512ba3fb5fea2109acc941b460/build-aux/missing automake-1.15 --foreign
>>> CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Users/me/Desktop/libosinfo-master-c4d379042f57f0512ba3fb5fea2109acc941b460/build-aux/missing autoconf
>>> /bin/sh ./config.status --recheck
>>> running CONFIG_SHELL=/bin/sh /bin/sh ./configure PKG_CONFIG_PATH=/usr/local/lib/pkgconfig --no-create --no-recursion
>>> checking for a BSD-compatible install... /usr/bin/install -c
>>> checking whether build environment is sane... yes
>>> checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
>>> checking for gawk... gawk
>>> checking whether make sets $(MAKE)... yes
>>> checking whether make supports nested variables... yes
>>> checking whether UID '501' is supported by ustar format... yes
>>> checking whether GID '20' is supported by ustar format... yes
>>> checking how to create a ustar tar archive... gnutar
>>> checking for gcc... gcc
>>
>> I can't tell for sure what's going on ... but if what you're trying to
>> achieve is just test that patch I pointed to you, why not backporting
>> it?
>
> I found out that gnome-common 3.18.0 was causing the infinite loop behavior. When I installed gnome-common 3.14.0, the ./autogen.sh and ./configure commands worked just fine. Make did unfortunately stop at this message:
>
> /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
>
> I think the patch needs to added to the other makefiles in this project.
What do you mean?
Please, attach the whole log or put it into a pastebin and share the link.
Best Regards,
--
Fabiano Fidêncio
More information about the Libosinfo
mailing list