public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* including redfish libs results in multiple definitions of symbols
@ 2022-05-25 16:23 M.T.
  2022-05-25 17:20 ` [edk2-devel] " Kilian Kegel
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: M.T. @ 2022-05-25 16:23 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]

Hello

I'm working on a small UEFI shell app.
I was hoping to make use of the JsonLib found in the Redfish Package.

When I include the Redfish JsonLib and it's dependencies:
JsonLib|RedfishPkg/Library/JsonLib/JsonLib.inf
Ucs2Utf8Lib|RedfishPkg/Library/BaseUcs2Utf8Lib/BaseUcs2Utf8Lib.inf
RedfishCrtLib|RedfishPkg/PrivateLibrary/RedfishCrtLib/RedfishCrtLib.inf
BaseSortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf

BaseSortLib has symbol clashes with SortLib resulting in the following:

/usr/bin/ld: UefiSortLib.obj (symbol from plugin): in function
`PerformQuickSort':
(.text+0x0): multiple definition of `PerformQuickSort'; BaseSortLib.obj
(symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: UefiSortLib.obj (symbol from plugin): in function
`PerformQuickSort':
(.text+0x0): multiple definition of `DevicePathCompare'; BaseSortLib.obj
(symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: UefiSortLib.obj (symbol from plugin): in function
`PerformQuickSort':
(.text+0x0): multiple definition of `StringNoCaseCompare'; BaseSortLib.obj
(symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: UefiSortLib.obj (symbol from plugin): in function
`PerformQuickSort':
(.text+0x0): multiple definition of `StringCompare'; BaseSortLib.obj
(symbol from plugin):(.text+0x0): first defined here

I need SortLib for UEFIShell dependencies, and I need BaseSortLib for
JsonLib.
Is there some way around this?  Or is Redfish meant to be standalone?

Thank you in advance
xp

[-- Attachment #2: Type: text/html, Size: 1790 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-05-27  5:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-25 16:23 including redfish libs results in multiple definitions of symbols M.T.
2022-05-25 17:20 ` [edk2-devel] " Kilian Kegel
     [not found] ` <16F268C9DA792DE0.12338@groups.io>
2022-05-25 17:32   ` Kilian Kegel
2022-05-26  4:04 ` Andrew Fish
2022-05-26  4:07   ` Ethin Probst
2022-05-26  4:11     ` Andrew Fish
2022-05-26 15:32       ` M.T.
2022-05-26 17:06         ` Kilian Kegel
2022-05-27  4:59           ` Abner Chang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox