php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58753 does not build with -Werror=format-security
Submitted: 2009-07-05 11:53 UTC Modified: 2009-07-06 11:19 UTC
From: oeriksson at mandriva dot com Assigned: jluedke (profile)
Status: Closed Package: gearman (PECL)
PHP Version: 5.2.9 OS: Mandriva Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: oeriksson at mandriva dot com
New email:
PHP Version: OS:

 

 [2009-07-05 11:53 UTC] oeriksson at mandriva dot com
Description:
------------
does not build with -Werror=format-security

Reproduce code:
---------------
as usually done

Expected result:
----------------
should build

Actual result:
--------------
/bin/sh /home/mandrake/rpm/BUILD/gearman-0.4.0/libtool --mode=compile cc  -I. -I/home/mandrake/rpm/BUILD/gearman-0.4.0 -DPHP_ATOM_INC -I/home/mandrake/rpm/BUILD/gearman-0.4.0/include -I/home/mandrake/rpm/BUILD/gearman-0.4.0/main -I/home/mandrake/rpm/BUILD/gearman-0.4.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -Wall   -c /home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c -o php_gearman.lo 
libtool: compile:  cc -I. -I/home/mandrake/rpm/BUILD/gearman-0.4.0 -DPHP_ATOM_INC -I/home/mandrake/rpm/BUILD/gearman-0.4.0/include -I/home/mandrake/rpm/BUILD/gearman-0.4.0/main -I/home/mandrake/rpm/BUILD/gearman-0.4.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -Wall -c /home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c  -fPIC -DPIC -o .libs/php_gearman.o
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_task_send_data':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1355: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_task_recv_data':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1385: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_job_data':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1466: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_job_warning':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1489: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_job_status':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1512: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_job_complete':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1534: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_job_exception':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1556: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_job_fail':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1575: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_add_server':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1807: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_do':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1844: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_do_high':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1881: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_do_low':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1918: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_do_background':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:1987: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_do_high_background':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2026: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_do_low_background':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2064: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_job_status':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2098: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_echo':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2124: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_add_task':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2180: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_add_task_high':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2233: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_add_task_low':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2286: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_add_task_background':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2339: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_add_task_high_background':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2393: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_add_task_low_background':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2448: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_add_task_status':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2493: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_client_run_tasks':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:2968: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_worker_add_server':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:3107: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_worker_register':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:3130: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_worker_unregister':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:3152: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_worker_unregister_all':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:3171: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_worker_grab_job':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:3197: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_worker_add_function':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:3333: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_worker_work':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:3353: error: format not a string literal and no format arguments
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c: In function 'zif_gearman_worker_echo':
/home/mandrake/rpm/BUILD/gearman-0.4.0/php_gearman.c:3380: error: format not a string literal and no format arguments


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-06 08:25 UTC] infowolfe at gmail dot com
This bug is not unique to -Werror=format-security.

Also using 5.2.9, with libgearman-0.8 and the following 
compile string, I experienced the same result.

gcc -I. -I/var/tmp/portage/dev-php5/pecl-gearman-
0.4.0/work/gearman-0.4.0 -DPHP_ATOM_INC -
I/var/tmp/portage/dev-php5/pecl-gearman-0.4.0/work/gearman-
0.4.0/include -I/var/tmp/portage/dev-php5/pecl-gearman-
0.4.0/work/gearman-0.4.0/main -I/var/tmp/portage/dev-
php5/pecl-gearman-0.4.0/work/gearman-0.4.0 -
I/usr/lib64/php5/include/php -
I/usr/lib64/php5/include/php/main -
I/usr/lib64/php5/include/php/TSRM -
I/usr/lib64/php5/include/php/Zend -
I/usr/lib64/php5/include/php/ext -
I/usr/lib64/php5/include/php/ext/date/lib -
I/usr/lib64/php5/include/php -DHAVE_CONFIG_H -g -O2 -Wall -c 
/var/tmp/portage/dev-php5/pecl-gearman-0.4.0/work/gearman-
0.4.0/php_gearman.c  -fPIC -DPIC -o .libs/php_gearman.o
 [2009-07-06 11:19 UTC] contact at jamesluedke dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Thanks for reporting. Was going to fix this today anyhow :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC