Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373433 - net-libs/gnutls-2.10.5: build failure on Mac OS X 10.6
Summary: net-libs/gnutls-2.10.5: build failure on Mac OS X 10.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL: http://lists.gnu.org/archive/html/gnu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-29 03:31 UTC by Naohiro Aota
Modified: 2011-08-27 11:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to solve the problem (gnutls-2.10.5-snprintf.patch,5.30 KB, patch)
2011-06-29 03:35 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2011-06-29 03:31:43 UTC
emerge fail like the URL with the same error.

Reproducible: Always
Comment 1 Naohiro Aota gentoo-dev 2011-06-29 03:35:01 UTC
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
Comment 2 Fabian Groffen gentoo-dev 2011-06-29 06:59:16 UTC
ok, 10.6 and up only, explains why I have it installed without problems here
Comment 3 Fabian Groffen gentoo-dev 2011-06-29 17:41:48 UTC
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.
Comment 4 Fabian Groffen gentoo-dev 2011-06-29 18:42:40 UTC
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 *'
Comment 5 Steven Trogdon 2011-08-02 18:04:42 UTC
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.
Comment 6 Fabian Groffen gentoo-dev 2011-08-27 11:07:44 UTC
anyone who says this patch works, please tell me how you got it applied, as it fails applying here on all but one hunk
Comment 7 Fabian Groffen gentoo-dev 2011-08-27 11:13:32 UTC
I misread comment #1, sorry.  I thought the attachment was the patch referenced.  Naohiro's patch applies flawless.

Committed, thanks!