Bug 1190820 - opensips-1.10.3-1.fc22 FTBFS: cfg.tab.o: In function `yyparse': /builddir/build/BUILD/opensips-1.10.3-tls/cfg.y:1164: undefined reference to `new_sock_info'
Summary: opensips-1.10.3-1.fc22 FTBFS: cfg.tab.o: In function `yyparse': /builddir/bui...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: opensips
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: John Khvatov
QA Contact: Fedora Extras Quality Assurance
URL: http://koji.fedoraproject.org/koji/ta...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-09 16:40 UTC by Petr Pisar
Modified: 2015-05-10 23:38 UTC (History)
2 users (show)

Fixed In Version: opensips-1.10.4-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-10 23:38:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2015-02-09 16:40:51 UTC
opensips-1.10.3-1.fc22 fails to build in F22 with GCC 5.0:

Compiling stats_funcs.c
gcc -fPIC -DPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wcast-align -DMOD_NAME='"statistics"'  -DPKG_MALLOC  -DSHM_MEM  -DSHM_MMAP  -DUSE_IPV6  -DUSE_MCAST  -DDISABLE_NAGLE  -DSTATISTICS  -DCHANGEABLE_DEBUG_LEVEL  -DHAVE_RESOLV_RES  -DF_MALLOC  -DUSE_TCP   -DNAME='"opensips"' -DVERSION='"1.10.3-tls"' -DARCH='"x86_64"' -DOS='"linux"' -DCOMPILER='"gcc 5.0.0"' -D__CPU_x86_64 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/etc/opensips/"'  -DUSE_TLS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/ssl/include -I/usr/include -I/usr/include/openssl -c stats_funcs.c -o stats_funcs.o
In file included from cfg.y:108:0:
db/db_insertq.h:95:13: warning: inline function 'cleanup_rows' declared but never defined
 inline void cleanup_rows(db_val_t **rows);
             ^
In file included from cfg.y:108:0:
db/db_insertq.h:69:12: warning: inline function 'ql_flush_rows' declared but never defined
 inline int ql_flush_rows(db_func_t *dbf,db_con_t *conn,query_list_t *entry);
            ^
db/db_insertq.h:66:12: warning: inline function 'con_set_inslist' declared but never defined
 inline int con_set_inslist(db_func_t *dbf,db_con_t *con,query_list_t **list,
            ^
In file included from cfg.y:99:0:
socket_info.h:59:1: warning: inline function 'new_sock_info' declared but never defined
 new_sock_info(char* name, unsigned short port, unsigned short proto,
 ^
[...]
cfg.tab.o: In function `yyparse':
/builddir/build/BUILD/opensips-1.10.3-tls/cfg.y:1164: undefined reference to `new_sock_info'
collect2: error: ld returned 1 exit status
make: *** [opensips] Error 1
Makefile.rules:35: recipe for target 'opensips' failed

Difference between working and failing build root:

        libgcc 	4.9.2-5.fc22 	> 	5.0.0-0.7.fc22
	libstdc++ 	4.9.2-5.fc22 	> 	5.0.0-0.7.fc22
	libtool-ltdl 	2.4.2-31.fc22 	> 	2.4.2-32.fc22
	cpp 	4.9.2-5.fc22 	> 	5.0.0-0.7.fc22
	isl 		> 	0.14-3.fc22
	gcc 	4.9.2-5.fc22 	> 	5.0.0-0.7.fc22
	gcc-c++ 	4.9.2-5.fc22 	> 	5.0.0-0.7.fc22
	libstdc++-devel 	4.9.2-5.fc22 	> 	5.0.0-0.7.fc22
	libgomp 	4.9.2-5.fc22 	> 	5.0.0-0.7.fc22

Comment 1 Jaroslav Reznik 2015-03-03 16:51:55 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 2 Fedora Update System 2015-05-02 16:41:13 UTC
opensips-1.10.4-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/opensips-1.10.4-1.fc22

Comment 3 Fedora Update System 2015-05-03 17:20:15 UTC
Package opensips-1.10.4-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing opensips-1.10.4-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-7466/opensips-1.10.4-1.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-05-10 23:38:59 UTC
opensips-1.10.4-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.