Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568588 - net-misc/sipsak-0.9.6_p1-r1 doesn't build with GCC-5
Summary: net-misc/sipsak-0.9.6_p1-r1 doesn't build with GCC-5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-18 01:13 UTC by Thomas Deutschmann (RETIRED)
Modified: 2016-01-19 10:31 UTC (History)
0 users

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


Attachments
build.log (sipsack-0.9.6_p1-r1-build.log,10.12 KB, text/plain)
2015-12-18 01:13 UTC, Thomas Deutschmann (RETIRED)
Details
Patch for ebuild to build with gcc-5 (sipsak-gcc5.diff,519 bytes, patch)
2015-12-18 01:14 UTC, Thomas Deutschmann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2015-12-18 01:13:44 UTC
Created attachment 419544 [details]
build.log

Hi,

net-misc/sipsak-0.9.6_p1-r1 doesn't build with gcc-5:

In file included from request.c:29:0:
header_f.h:64:14: warning: inline function ‘get_body’ declared but never defined
 inline char* get_body(char *mes);
              ^
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Wall -fstack-protector -I/usr/include -c sipsak.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Wall -fstack-protector -I/usr/include -c exit_code.c
helper.c: In function ‘skip_rr’:
helper.c:222:6: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
  int status, dlen;
      ^
helper.c: In function ‘skip_query’:
helper.c:239:6: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
  int status;
      ^
helper.c: At top level:
In file included from shoot.c:46:0:
header_f.h:64:14: warning: inline function ‘get_body’ declared but never defined
 inline char* get_body(char *mes);
              ^
helper.c:325:62: warning: ‘cares_callback’ is static but used in inline function ‘srv_ares’ which is not static
  ares_query(channel, srvh, CARES_CLASS_C_IN, CARES_TYPE_SRV, cares_callback, (char *) NULL);
                                                              ^
In file included from sipsak.c:59:0:
header_f.h:64:14: warning: inline function ‘get_body’ declared but never defined
 inline char* get_body(char *mes);
              ^
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Wall -fstack-protector -I/usr/include -c transport.c
In file included from transport.c:67:0:
header_f.h:64:14: warning: inline function ‘get_body’ declared but never defined
 inline char* get_body(char *mes);
              ^
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt -Wall -fstack-protector -I/usr/include  -Wl,-O1 -Wl,--as-needed -o sipsak  auth.o header_f.o helper.o md5.o request.o shoot.o sipsak.o exit_code.o transport.o  -lcrypto -lcrypto -L/usr/lib64 -lcares
transport.o: In function `complete_mes':
transport.c:(.text+0xb89): undefined reference to `get_body'
collect2: error: ld returned 1 exit status
Makefile:258: recipe for target 'sipsak' failed
make[1]: *** [sipsak] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/sipsak-0.9.6_p1-r1/work/sipsak-0.9.6'
Makefile:180: recipe for target 'all' failed
make: *** [all] Error 2



Passing CFlag "-std=gnu89" solves the problem.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2015-12-18 01:14:10 UTC
Created attachment 419546 [details, diff]
Patch for ebuild to build with gcc-5
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2016-01-19 10:31:55 UTC
Thank you Thomas, that is in the tree now.