[ovs-dev] [bug] uuid_from_string conflicts with FreeBSD libc

Dmitry Marakasov amdmi3 at amdmi3.ru
Thu Feb 18 22:16:49 UTC 2021


Hi!

I've found an old bug in FreeBSD bugzilla:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238331

reporting an incorrect behavior of ovs due to conflict of
uuid_from_string() defined in lib/uuid.* with the function with
same name from FreeBSD standard C library:

    void uuid_from_string(const char*, uuid_t*, uint32_t*);

Here's FreeBSD manpage with the list of all functions (by pure
change tere are no other conflicts):

    https://www.unix.com/man-page/FreeBSD/3/uuid_create/

The suggested workaround was to switch to static linking to make
ovs' symbol used.

IMO this should be fixed upstream, probably by prefixing uuid_*
functions to avoid this and similar conflicts.

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3 at amdmi3.ru  ..:              https://github.com/AMDmi3



More information about the dev mailing list