* [Buildroot] Problem to add DConf in buildroot
@ 2010-12-11 6:24 Justin Mark
2010-12-11 8:51 ` Lionel Landwerlin
0 siblings, 1 reply; 5+ messages in thread
From: Justin Mark @ 2010-12-11 6:24 UTC (permalink / raw)
To: buildroot
Hi
When I tried to add DConf into buildroot, I got the following error:
../client/libdconf.so.0: undefined reference to `posix_fallocate'
collect2: ld returned 1 exit status
but I can build DConf without any problems outside of buildroot.
In the Makefile.am, there's a line
dconf_LDADD = $(gio_LIBS) ../client/libdconf.so.0
It seems to me that a dependency of "../client/libdconf.so.0" is not in the path when I built under buildroot, if so, anyone has an idea how to patch the makefile, so I can build Dconf and link with libdconf.so.0
Many Thanks,
Justin
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Problem to add DConf in buildroot
2010-12-11 6:24 [Buildroot] Problem to add DConf in buildroot Justin Mark
@ 2010-12-11 8:51 ` Lionel Landwerlin
2010-12-12 3:37 ` Justin Mark
0 siblings, 1 reply; 5+ messages in thread
From: Lionel Landwerlin @ 2010-12-11 8:51 UTC (permalink / raw)
To: buildroot
Le vendredi 10 d?cembre 2010 ? 22:24 -0800, Justin Mark a ?crit :
> Hi
>
> When I tried to add DConf into buildroot, I got the following error:
>
> ../client/libdconf.so.0: undefined reference to `posix_fallocate'
> collect2: ld returned 1 exit status
>
> but I can build DConf without any problems outside of buildroot.
>
> In the Makefile.am, there's a line
>
> dconf_LDADD = $(gio_LIBS) ../client/libdconf.so.0
>
> It seems to me that a dependency of "../client/libdconf.so.0" is not in the path when I built under buildroot, if so, anyone has an idea how to patch the makefile, so I can build Dconf and link with libdconf.so.0
>
> Many Thanks,
> Justin
>
Hello Justin,
I think you need uclibc compiled with UCLIBC_HAS_ADVANCED_REALTIME
option.
Regards,
--
Lionel Landwerlin
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Problem to add DConf in buildroot
2010-12-11 8:51 ` Lionel Landwerlin
@ 2010-12-12 3:37 ` Justin Mark
2010-12-12 10:15 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Justin Mark @ 2010-12-12 3:37 UTC (permalink / raw)
To: buildroot
Hi Lionel,
Thanks a lot for the reply. I checked the uclibc config file, UCLIBC_HAS_ADVANCED_REALTIME was already turned on.
But I found a note in the file "uClibc_vs_SuSv3.txt":
Unimplemented optional interfaces:
----------------------------------
...
fcntl.h: posix_fallocate (depend on ADV)
...
so there's no implementation for posix_fallocate(). Since this function is only called once in Dconf, like this:
if (posix_fallocate (fd, 0, 1) == 0)
maybe I can patch the Dconf file, if anyone has an idea on how to replace the above code, please let me know.
Many thanks,
--Justin
--- On Sat, 12/11/10, Lionel Landwerlin <llandwerlin@gmail.com> wrote:
> From: Lionel Landwerlin <llandwerlin@gmail.com>
> Subject: Re: [Buildroot] Problem to add DConf in buildroot
> To: buildroot at busybox.net
> Date: Saturday, December 11, 2010, 12:51 AM
> Le vendredi 10 d?cembre 2010 ?
> 22:24 -0800, Justin Mark a ?crit :
> > Hi
> >
> > When I tried to add DConf into buildroot, I got the
> following error:
> >
> > ../client/libdconf.so.0: undefined reference to
> `posix_fallocate'
> > collect2: ld returned 1 exit status
> >
> > but I can build DConf without any problems outside of
> buildroot.
> >
> > In the Makefile.am, there's a line
> >
> > dconf_LDADD = $(gio_LIBS) ../client/libdconf.so.0
> >
> > It seems to me that a dependency of
> "../client/libdconf.so.0" is not in the path when I built
> under buildroot, if so, anyone has an idea how to patch the
> makefile, so I can build Dconf and link with libdconf.so.0
> >
> > Many Thanks,
> > Justin
> >
>
> Hello Justin,
>
> I think you need uclibc compiled with
> UCLIBC_HAS_ADVANCED_REALTIME
> option.
>
> Regards,
>
> --
> Lionel Landwerlin
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Problem to add DConf in buildroot
2010-12-12 3:37 ` Justin Mark
@ 2010-12-12 10:15 ` Thomas Petazzoni
2010-12-13 7:14 ` Justin Mark
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2010-12-12 10:15 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 11 Dec 2010 19:37:36 -0800 (PST)
Justin Mark <oilehus@yahoo.com> wrote:
> so there's no implementation for posix_fallocate(). Since this
> function is only called once in Dconf, like this: if (posix_fallocate
> (fd, 0, 1) == 0)
>
> maybe I can patch the Dconf file, if anyone has an idea on how to
> replace the above code, please let me know.
Just apply this patch from the DConf git repo, which removes
posix_fallocate() and uses ftruncate() instead:
http://git.gnome.org/browse/dconf/commit/?id=e3dd1d8ac6839851cb3015e89cdf39ecb2e2b081
You can add this patch in package/dconf/, and mention in the patch
comment that it is already upstreamed and therefore should be removed
when DConf version is bumped.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Problem to add DConf in buildroot
2010-12-12 10:15 ` Thomas Petazzoni
@ 2010-12-13 7:14 ` Justin Mark
0 siblings, 0 replies; 5+ messages in thread
From: Justin Mark @ 2010-12-13 7:14 UTC (permalink / raw)
To: buildroot
Hi Thomas,
Thanks for your email. After I apply the patches from DConf along with a patch I had made, I can build Dconf under buildroot now, I will submit the changes for review later.
Regards,
-Justin
--- On Sun, 12/12/10, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
> From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Subject: Re: [Buildroot] Problem to add DConf in buildroot
> To: "Justin Mark" <oilehus@yahoo.com>
> Cc: buildroot at busybox.net, "Lionel Landwerlin" <llandwerlin@gmail.com>
> Date: Sunday, December 12, 2010, 2:15 AM
> Hello,
>
> On Sat, 11 Dec 2010 19:37:36 -0800 (PST)
> Justin Mark <oilehus@yahoo.com>
> wrote:
>
> > so there's no implementation for posix_fallocate().
> Since this
> > function is only called once in Dconf, like this: if
> (posix_fallocate
> > (fd, 0, 1) == 0)
> >
> > maybe I can patch the Dconf file, if anyone has an
> idea on how to
> > replace the above code, please let me know.
>
> Just apply this patch from the DConf git repo, which
> removes
> posix_fallocate() and uses ftruncate() instead:
>
> http://git.gnome.org/browse/dconf/commit/?id=e3dd1d8ac6839851cb3015e89cdf39ecb2e2b081
>
> You can add this patch in package/dconf/, and mention in
> the patch
> comment that it is already upstreamed and therefore should
> be removed
> when DConf version is bumped.
>
> Regards,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-12-13 7:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-11 6:24 [Buildroot] Problem to add DConf in buildroot Justin Mark
2010-12-11 8:51 ` Lionel Landwerlin
2010-12-12 3:37 ` Justin Mark
2010-12-12 10:15 ` Thomas Petazzoni
2010-12-13 7:14 ` Justin Mark
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.