The patch that gets added to dev-util/cgdb-0.6.2 (for fbsd) causes a crash on 64-bit architectures. The problem is moving the #include <sys/types.h> above the #define _GNU_SOURCE causes there to be no prototype for ptsname() available to pseudo.c at compile time. The compiler assumes it returns an int (4-byte), but it really returns a char * (8-byte). Why was this patch introduced? As far as we can tell, CGDB compiles on FreeBSD without any patches. With more info from the person who patched this ebuild (ka0ttic@gentoo.org ?), we can figure out if there's a fix we need to put into CGDB mainline. Also, CGDB 0.6.3 was released, and after we straighten out this issue, I'd like to get an updated ebuild in there. Thanks! Mike (CGDB developer)
dev-tools
I have the same problem on my Athlon64 Gentoo box. Removing the fbsd patch fixes the problem. I'm also able to emerge 0.6.3 without any problems if I remove both patches from its ebuild.
BUMP! We really need this to be fixed, and it's a really simple fix!
By the way, that simple fix is: REMOVE THE PATCHES FROM THE EBUILD Then everything will JUST WORK.
BSD: Ok to remove the patch?
Negative, without this patch cgdb 0.6.2 does not compile on non-linux systems. I attach a new patch that should work everywere
Created attachment 104155 [details, diff] files/cgdb-fbsd.patch
Patch corrected, thx
Thanks, the crash on amd64 is resolved.