Discussion:
[edk2] NetworkPkg\Application\Ping6 does not compile
Shubha Ramani
2015-07-07 21:58:57 UTC
Permalink
Command used:C:\edk2\MyWorkspace>build -p DuetPkg/DuetPkgX64.dsc -a X64 -m NetworkPkg/Application/Ping6/Ping6.inf
build...c:\edk2\myworkspace\DuetPkg\DuetPkgX64.dsc(...): error 4000: Instance of library class [ShellLib] is not found        in [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf] [X64]        consumed by module [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf]
 Shubha D. ***@gmail.com
***@yahoo.com
Andrew Fish
2015-07-07 22:14:21 UTC
Permalink
Post by Shubha Ramani
C:\edk2\MyWorkspace>build -p DuetPkg/DuetPkgX64.dsc -a X64 -m NetworkPkg/Applica
tion/Ping6/Ping6.inf
Did you add Ping6 to the DuetPkgX64.dsc?
Post by Shubha Ramani
build...
c:\edk2\myworkspace\DuetPkg\DuetPkgX64.dsc(...): error 4000: Instance of library
class [ShellLib] is not found
in [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf] [X64]
consumed by module [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Pin
g6.inf]
The error message is telling you to add a mapping for this library class in [LibraryClasses] section of the DSC.

~/work/src/edk2(master)>git grep ShellLib -- *.dsc
AppPkg/AppPkg.dsc:84: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
ArmPkg/ArmPkg.dsc:81: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
EdkShellPkg/EdkShellPkg.dsc:80: $(EDK_SHELL_DIR)/Library/EfiShellLib.inf
EmbeddedPkg/EmbeddedPkg.dsc:103: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
EmulatorPkg/EmulatorPkg.dsc:395: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
EmulatorPkg/EmulatorPkg.dsc:405: gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
NetworkPkg/NetworkPkg.dsc:60: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
OvmfPkg/OvmfPkgIa32.dsc:583: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
OvmfPkg/OvmfPkgIa32.dsc:593: gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
OvmfPkg/OvmfPkgIa32X64.dsc:590: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
OvmfPkg/OvmfPkgIa32X64.dsc:600: gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
OvmfPkg/OvmfPkgX64.dsc:588: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
OvmfPkg/OvmfPkgX64.dsc:598: gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
PerformancePkg/PerformancePkg.dsc:53: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
ShellPkg/ShellPkg.dsc:45: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
ShellPkg/ShellPkg.dsc:69: gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
ShellPkg/ShellPkg.dsc:76: ShellPkg/Library/UefiShellLib/UefiShellLib.inf
StdLib/StdLib.dsc:86: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc:274: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
Vlv2TbltDevicePkg/PlatformPkgIA32.dsc:274: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
Vlv2TbltDevicePkg/PlatformPkgX64.dsc:274: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf

Looks like: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf should do it.

Thanks,

Andrew Fish
Post by Shubha Ramani
Shubha D. Ramani
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/_______________________________________________
edk2-devel mailing list
https://lists.sourceforge.net/lists/listinfo/edk2-devel
Shubha Ramani
2015-07-07 23:14:00 UTC
Permalink
That fixed it. 
Now I'm getting a different error:build...c:\edk2\myworkspace\DuetPkg\DuetPkgX64.dsc(...): error 4000: Instance of library class [NetLib] is not found        in [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf] [X64]        consumed by module [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf]
Adding DxeNetlib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.infunder LibraryClasses of DuetPkgX64.dsc does not fix it. Shubha D. ***@gmail.com
***@yahoo.com


On Tuesday, July 7, 2015 3:14 PM, Andrew Fish <***@apple.com> wrote:




On Jul 7, 2015, at 2:58 PM, Shubha Ramani <***@yahoo.com> wrote:
Command used:C:\edk2\MyWorkspace>build -p DuetPkg/DuetPkgX64.dsc -a X64 -m NetworkPkg/Application/Ping6/Ping6.inf


Did you add Ping6 to the DuetPkgX64.dsc? 

build...c:\edk2\myworkspace\DuetPkg\DuetPkgX64.dsc(...): error 4000: Instance of library class [ShellLib] is not found        in [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf] [X64]        consumed by module [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf]


The error message is telling you to add a mapping for this library class in [LibraryClasses] section of the DSC. 
~/work/src/edk2(master)>git grep ShellLib -- *.dscAppPkg/AppPkg.dsc:84:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infArmPkg/ArmPkg.dsc:81:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infEdkShellPkg/EdkShellPkg.dsc:80:  $(EDK_SHELL_DIR)/Library/EfiShellLib.infEmbeddedPkg/EmbeddedPkg.dsc:103:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infEmulatorPkg/EmulatorPkg.dsc:395:      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infEmulatorPkg/EmulatorPkg.dsc:405:      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSENetworkPkg/NetworkPkg.dsc:60:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infOvmfPkg/OvmfPkgIa32.dsc:583:      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infOvmfPkg/OvmfPkgIa32.dsc:593:      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSEOvmfPkg/OvmfPkgIa32X64.dsc:590:      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infOvmfPkg/OvmfPkgIa32X64.dsc:600:      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSEOvmfPkg/OvmfPkgX64.dsc:588:      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infOvmfPkg/OvmfPkgX64.dsc:598:      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSEPerformancePkg/PerformancePkg.dsc:53:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infShellPkg/ShellPkg.dsc:45:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infShellPkg/ShellPkg.dsc:69:  gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSEShellPkg/ShellPkg.dsc:76:  ShellPkg/Library/UefiShellLib/UefiShellLib.infStdLib/StdLib.dsc:86:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infVlv2TbltDevicePkg/PlatformPkgGccX64.dsc:274:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infVlv2TbltDevicePkg/PlatformPkgIA32.dsc:274:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infVlv2TbltDevicePkg/PlatformPkgX64.dsc:274:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
Looks like: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf should do it.
Thanks,
Andrew Fish

 Shubha D. ***@gmail.com
***@yahoo.com------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/_______________________________________________
edk2-devel mailing list
edk2-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel
Shubha Ramani
2015-07-07 23:32:33 UTC
Permalink
OK fixed. This is ultimately what I had to add to DuetPkgX64.dsc to get Ping6 to compile:  NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf  IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf  UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf  TcpIoLib|MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf  FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf  SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf Shubha D. ***@gmail.com
***@yahoo.com


On Tuesday, July 7, 2015 4:14 PM, Shubha Ramani <***@yahoo.com> wrote:


That fixed it. 
Now I'm getting a different error:build...c:\edk2\myworkspace\DuetPkg\DuetPkgX64.dsc(...): error 4000: Instance of library class [NetLib] is not found        in [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf] [X64]        consumed by module [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf]
Adding DxeNetlib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.infunder LibraryClasses of DuetPkgX64.dsc does not fix it. Shubha D. ***@gmail.com
***@yahoo.com


On Tuesday, July 7, 2015 3:14 PM, Andrew Fish <***@apple.com> wrote:




On Jul 7, 2015, at 2:58 PM, Shubha Ramani <***@yahoo.com> wrote:
Command used:C:\edk2\MyWorkspace>build -p DuetPkg/DuetPkgX64.dsc -a X64 -m NetworkPkg/Application/Ping6/Ping6.inf


Did you add Ping6 to the DuetPkgX64.dsc? 

build...c:\edk2\myworkspace\DuetPkg\DuetPkgX64.dsc(...): error 4000: Instance of library class [ShellLib] is not found        in [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf] [X64]        consumed by module [c:\edk2\myworkspace\NetworkPkg\Application\Ping6\Ping6.inf]


The error message is telling you to add a mapping for this library class in [LibraryClasses] section of the DSC. 
~/work/src/edk2(master)>git grep ShellLib -- *.dscAppPkg/AppPkg.dsc:84:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infArmPkg/ArmPkg.dsc:81:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infEdkShellPkg/EdkShellPkg.dsc:80:  $(EDK_SHELL_DIR)/Library/EfiShellLib.infEmbeddedPkg/EmbeddedPkg.dsc:103:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infEmulatorPkg/EmulatorPkg.dsc:395:      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infEmulatorPkg/EmulatorPkg.dsc:405:      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSENetworkPkg/NetworkPkg.dsc:60:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infOvmfPkg/OvmfPkgIa32.dsc:583:      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infOvmfPkg/OvmfPkgIa32.dsc:593:      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSEOvmfPkg/OvmfPkgIa32X64.dsc:590:      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infOvmfPkg/OvmfPkgIa32X64.dsc:600:      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSEOvmfPkg/OvmfPkgX64.dsc:588:      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infOvmfPkg/OvmfPkgX64.dsc:598:      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSEPerformancePkg/PerformancePkg.dsc:53:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infShellPkg/ShellPkg.dsc:45:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infShellPkg/ShellPkg.dsc:69:  gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSEShellPkg/ShellPkg.dsc:76:  ShellPkg/Library/UefiShellLib/UefiShellLib.infStdLib/StdLib.dsc:86:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infVlv2TbltDevicePkg/PlatformPkgGccX64.dsc:274:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infVlv2TbltDevicePkg/PlatformPkgIA32.dsc:274:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.infVlv2TbltDevicePkg/PlatformPkgX64.dsc:274:  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
Looks like: ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf should do it.
Thanks,
Andrew Fish

 Shubha D. ***@gmail.com
***@yahoo.com------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/_______________________________________________
edk2-devel mailing list
edk2-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Loading...