* [Qemu-devel] Use of asprintf() breaks build on systems where asprintf() is not available
@ 2009-03-10 21:38 Palle Lyckegaard
2009-03-10 22:00 ` Anthony Liguori
0 siblings, 1 reply; 4+ messages in thread
From: Palle Lyckegaard @ 2009-03-10 21:38 UTC (permalink / raw)
To: qemu-devel
Hi,
A few source-files, e.g. vnc.c, makes use of the (non-portable?)
asprintf() function, which is not available in e.g. Solaris 10 and certain builds of
OpenSolaris.
What would be the proper "qemu" way of solving this problem? Creating a
library with the functions not avilable on the host system or replacing
the non-portable use(s) of the function(s) with proper portable
function(s)?
Regards
Palle
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Use of asprintf() breaks build on systems where asprintf() is not available
2009-03-10 21:38 [Qemu-devel] Use of asprintf() breaks build on systems where asprintf() is not available Palle Lyckegaard
@ 2009-03-10 22:00 ` Anthony Liguori
2009-03-11 10:48 ` Daniel P. Berrange
0 siblings, 1 reply; 4+ messages in thread
From: Anthony Liguori @ 2009-03-10 22:00 UTC (permalink / raw)
To: qemu-devel, Daniel P. Berrange
Palle Lyckegaard wrote:
> Hi,
>
> A few source-files, e.g. vnc.c, makes use of the (non-portable?)
> asprintf() function, which is not available in e.g. Solaris 10 and
> certain builds of OpenSolaris.
>
> What would be the proper "qemu" way of solving this problem? Creating
> a library with the functions not avilable on the host system or
> replacing the non-portable use(s) of the function(s) with proper
> portable function(s)?
Dan,
Can you send in a patch to add the gnulib asprintf() with an appropriate
configure test?
Regards,
Anthony Liguori
> Regards
> Palle
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Use of asprintf() breaks build on systems where asprintf() is not available
2009-03-10 22:00 ` Anthony Liguori
@ 2009-03-11 10:48 ` Daniel P. Berrange
2009-03-11 13:52 ` Anthony Liguori
0 siblings, 1 reply; 4+ messages in thread
From: Daniel P. Berrange @ 2009-03-11 10:48 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel
On Tue, Mar 10, 2009 at 05:00:25PM -0500, Anthony Liguori wrote:
> Palle Lyckegaard wrote:
> >Hi,
> >
> >A few source-files, e.g. vnc.c, makes use of the (non-portable?)
> >asprintf() function, which is not available in e.g. Solaris 10 and
> >certain builds of OpenSolaris.
> >
> >What would be the proper "qemu" way of solving this problem? Creating
> >a library with the functions not avilable on the host system or
> >replacing the non-portable use(s) of the function(s) with proper
> >portable function(s)?
>
> Can you send in a patch to add the gnulib asprintf() with an appropriate
> configure test?
I think it is just easier to remove the use of asprinf() from vnc.c It is
only used once and not really all that hard to remove.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Use of asprintf() breaks build on systems where asprintf() is not available
2009-03-11 10:48 ` Daniel P. Berrange
@ 2009-03-11 13:52 ` Anthony Liguori
0 siblings, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2009-03-11 13:52 UTC (permalink / raw)
To: Daniel P. Berrange; +Cc: qemu-devel
Daniel P. Berrange wrote:
> On Tue, Mar 10, 2009 at 05:00:25PM -0500, Anthony Liguori wrote:
>
>> Palle Lyckegaard wrote:
>>
>>> Hi,
>>>
>>> A few source-files, e.g. vnc.c, makes use of the (non-portable?)
>>> asprintf() function, which is not available in e.g. Solaris 10 and
>>> certain builds of OpenSolaris.
>>>
>>> What would be the proper "qemu" way of solving this problem? Creating
>>> a library with the functions not avilable on the host system or
>>> replacing the non-portable use(s) of the function(s) with proper
>>> portable function(s)?
>>>
>> Can you send in a patch to add the gnulib asprintf() with an appropriate
>> configure test?
>>
>
> I think it is just easier to remove the use of asprinf() from vnc.c It is
> only used once and not really all that hard to remove.
>
That would be good too.
Regards,
Anthony Liguori
> Daniel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-11 13:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-10 21:38 [Qemu-devel] Use of asprintf() breaks build on systems where asprintf() is not available Palle Lyckegaard
2009-03-10 22:00 ` Anthony Liguori
2009-03-11 10:48 ` Daniel P. Berrange
2009-03-11 13:52 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).