emerge fail like the URL with the same error. Reproducible: Always
Created attachment 278603 [details, diff] patch to solve the problem Here is a patch to solve the problem. Since the base version is not the same, I've read the patch below and apply the same concept upon 2.10.5. http://git.savannah.gnu.org/cgit/gnutls.git/commit/?h=gnutls_2_12_x&id=57af3b052c7930910ec1d8defde7a42c29c855a8
ok, 10.6 and up only, explains why I have it installed without problems here
patching file src/serv.c Hunk #1 succeeded at 438 with fuzz 1 (offset 29 lines). Hunk #2 FAILED at 484. Hunk #3 FAILED at 502. Hunk #4 FAILED at 513. Hunk #5 FAILED at 521. Hunk #6 FAILED at 529. Hunk #7 FAILED at 537. Hunk #8 FAILED at 548. Hunk #9 FAILED at 559. 8 out of 9 hunks FAILED -- saving rejects to file src/serv.c.rej not really looks like it's going to work out.
on Linux: libtool: compile: x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I./../gl -I./../gl -I./../lib/includes -I./../lib/includes -I./../libextra/includes -I./cfg -O2 -pipe -fomit-frame-pointer -MT libcmd_certtool_la-certtool-cfg.lo -MD -MP -MF .deps/libcmd_certtool_la-certtool-cfg.Tpo -c certtool-cfg.c -fPIC -DPIC -o .libs/libcmd_certtool_la-certtool-cfg.o libtool: compile: x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I./../gl -I./../gl -I./../lib/includes -I./../lib/includes -I./../libextra/includes -I./cfg -O2 -pipe -fomit-frame-pointer -MT libcfg_la-strdyn.lo -MD -MP -MF .deps/libcfg_la-strdyn.Tpo -c cfg/platon/str/strdyn.c -o libcfg_la-strdyn.o >/dev/null 2>&1 serv.c: In function 'peer_print_info': serv.c:515:41: error: macro "__bos" passed 2 arguments, but takes just 1 serv.c:515:3: error: '__bos' undeclared (first use in this function) serv.c:515:3: note: each undeclared identifier is reported only once for each function it appears in serv.c:515:3: error: expected expression before ')' token serv.c:515:3: warning: passing argument 3 of '__builtin___snprintf_chk' makes integer from pointer without a cast serv.c:515:3: note: expected 'int' but argument is of type 'char *' serv.c:517:37: error: macro "__bos" passed 2 arguments, but takes just 1 serv.c:517:5: warning: passing argument 3 of '__builtin___snprintf_chk' makes integer from pointer without a cast serv.c:517:5: note: expected 'int' but argument is of type 'char *' serv.c:518:31: error: macro "__bos" passed 2 arguments, but takes just 1 serv.c:518:3: error: expected expression before ')' token serv.c:518:3: warning: passing argument 3 of '__builtin___snprintf_chk' makes integer from pointer without a cast serv.c:518:3: note: expected 'int' but argument is of type 'char *'
I have the same issue here: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I./../gl -I./../gl -I./../lib/includes -I./../lib/includes -I./../libextra/includes -I./cfg -march=opteron -O2 -pipe -MT serv.o -MD -MP -MF .deps/serv.Tpo -c -o serv.o serv.c mv -f .deps/libcfg_la-strplus.Tpo .deps/libcfg_la-strplus.Plo gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I./../gl -I./../gl -I./../lib/includes -I./../lib/includes -I./../libextra/includes -I./cfg -march=opteron -O2 -pipe -MT common.o -MD -MP -MF .deps/common.Tpo -c -o common.o common.c libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_ serv.c: In function 'peer_print_info': serv.c:515:41: error: macro "__bos" passed 2 arguments, but takes just 1 serv.c:515:3: error: '__bos' undeclared (first use in this function) serv.c:515:3: note: each undeclared identifier is reported only once for each function it appears in serv.c:515:3: error: expected expression before ')' token serv.c:515:3: warning: passing argument 3 of '__builtin___snprintf_chk' makes integer from pointer without a cast serv.c:515:3: note: expected 'int' but argument is of type 'char *' serv.c:517:37: error: macro "__bos" passed 2 arguments, but takes just 1 serv.c:517:5: warning: passing argument 3 of '__builtin___snprintf_chk' makes integer from pointer without a cast serv.c:517:5: note: expected 'int' but argument is of type 'char *' serv.c:518:31: error: macro "__bos" passed 2 arguments, but takes just 1 serv.c:518:3: error: expected expression before ')' token serv.c:518:3: warning: passing argument 3 of '__builtin___snprintf_chk' makes integer from pointer without a cast serv.c:518:3: note: expected 'int' but argument is of type 'char *' serv.c:521:71: error: macro "__bos" passed 2 arguments, but takes just 1 serv.c:519:3: error: expected expression before ')' token on an older redhat machine in prefix, Portage 2.2.01.19011-prefix (prefix/linux/amd64, gcc-4.5.2, unavailable, 2.6.9-100.ELsmp x86_64) ================================================================= System uname: Linux-2.6.9-100.ELsmp-x86_64-Dual-Core_AMD_Opteron-tm-_Processor_2216-with-redhat-4-Nahant_Update_9 The provided patch did allow net-libs/gnutls-2.10.5 to build.
anyone who says this patch works, please tell me how you got it applied, as it fails applying here on all but one hunk
I misread comment #1, sorry. I thought the attachment was the patch referenced. Naohiro's patch applies flawless. Committed, thanks!