Created attachment 392460 [details] emerge --info sys-apps/gptfdisk can not be linked statically.
Created attachment 392462 [details] build.log
Seems more like an issue with ncurses than gptfdisk. usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/libncursesw.a(lib_mouse.o): In function `unload_gpm_library': (.text+0x9eb): undefined reference to `dlclose' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/libncursesw.a(lib_mouse.o): In function `load_gpm_library': (.text+0xa3b): undefined reference to `dlopen' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/libncursesw.a(lib_mouse.o): In function `load_gpm_library': (.text+0xa5f): undefined reference to `dlsym' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/libncursesw.a(lib_mouse.o): In function `load_gpm_library': (.text+0xa87): undefined reference to `dlsym' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/libncursesw.a(lib_mouse.o): In function `load_gpm_library': (.text+0xaab): undefined reference to `dlsym' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/libncursesw.a(lib_mouse.o): In function `load_gpm_library': (.text+0xacf): undefined reference to `dlsym' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/libncursesw.a(lib_mouse.o): In function `load_gpm_library': (.text+0xb11): undefined reference to `dlerror' /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld: link errors found, deleting executable `cgdisk' collect2: error: ld returned 1 exit status Makefile:21: recipe for target 'cgdisk' failed
Closing this bug as it's really old and the version this report was filed against has long been removed from Gentoo. Please file a new bug report in case this problem still hits you.