[Buildroot] [PATCH] libpjsip: fix static build failures due to name clash
Luca Ceresoli
luca at lucaceresoli.net
Sat Nov 11 23:08:46 UTC 2017
Hi,
On 11/11/2017 10:40, Arnout Vandecappelle wrote:
> Hi Luca,
>
> On 10-11-17 23:16, Luca Ceresoli wrote:
>> Several packages have a similar md5.c file, and each has a function
>> named byteReverse(). This generates link errors when building
>> statically ("multiple definition of `byteReverse'").
>>
>> Fix by applying a patch from upstream:
>> https://trac.pjsip.org/repos/changeset/5688
>>
>> Fixes:
>> http://autobuild.buildroot.org/results/5d7/5d72e0f8517a555399978d5a0e9f7efd0a278189/
>> http://autobuild.buildroot.org/results/c47/c47ccbb9b40011cf0d79c7040bed061ddefd9629/
>> http://autobuild.buildroot.org/results/419/419ab2c0e034cc68991281c51caa8271b0fadbab/
>>
>> Signed-off-by: Luca Ceresoli <luca at lucaceresoli.net>
>> Cc: Adam Duskett <aduskett at gmail.com>
>> ---
>> .../0001-Fixed-possible-function-name-clash.patch | 21 +++++++++++++++++++++
>> 1 file changed, 21 insertions(+)
>> create mode 100644 package/libpjsip/0001-Fixed-possible-function-name-clash.patch
>>
>> diff --git a/package/libpjsip/0001-Fixed-possible-function-name-clash.patch b/package/libpjsip/0001-Fixed-possible-function-name-clash.patch
>> new file mode 100644
>> index 000000000000..80a05ab50a6c
>> --- /dev/null
>> +++ b/package/libpjsip/0001-Fixed-possible-function-name-clash.patch
>> @@ -0,0 +1,21 @@
>> +Index: pjlib-util/src/pjlib-util/md5.c
>> +===================================================================
>
> You forgot to add a commit message and your Sob to the patch.
My bad, I'm so comfortable with using 'git format-patch' to extract
patches that I forget the basics whenever I use a non-git repository...
Sorry about that, I just sent v2.
Bye,
--
Luca
More information about the buildroot
mailing list