php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32069 Fails when compiling violite.c
Submitted: 2005-02-22 23:29 UTC Modified: 2005-02-27 09:51 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: leonardo1_rw at yahoo dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.10 OS: linux red hat 7
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: leonardo1_rw at yahoo dot com
New email:
PHP Version: OS:

 

 [2005-02-22 23:29 UTC] leonardo1_rw at yahoo dot com
Description:
------------
I'm working with red hat 7, i tried to compile php 4.3.10 but it throughs a couple of errors when working with the file violite.c. The errors seem to be absurds. Are related with the formal parameters of a function.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-23 19:01 UTC] leonardo1_rw at yahoo dot com
In file included from /usr/local/php-4.3.10/ext/mysql/libmysql/violite.h:12,
                 from /usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:17:
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: warning: `struct in_addr'
declared inside parameter list
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: warning: its scope is only
 this definition or declaration, which is probably not what you want.
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: warning: parameter has inc
omplete type
In file included from /usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:17:
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.h:94: warning: `struct in_addr'
 declared inside parameter list
In file included from /usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:19:
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: warning: `struct in_addr'
declared inside parameter list
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: warning: parameter has inc
omplete type
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: conflicting types for `my_
inet_ntoa'
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: previous declaration of `m
y_inet_ntoa'
In file included from /usr/include/netinet/ip.h:25,
                 from /usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:33:
/usr/include/netinet/in.h:133: warning: redefinition of `u_int'
/usr/include/sys/types.h:35: warning: `u_int' previously declared here
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c: In function `vio_peer_addr':
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:390: type of formal parameter
 1 is incomplete
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c: At top level:
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:398: conflicting types for `v
io_in_addr'
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.h:94: previous declaration of `
vio_in_addr'
make: *** [ext/mysql/libmysql/violite.lo] Error 1
 [2005-02-24 21:19 UTC] sniper@php.net
What gcc version are you using..?

 [2005-02-24 23:11 UTC] leonardo1_rw at yahoo dot com
[leo@patagonianorte leo]$ make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-redhat-linux-gnu
 [2005-02-24 23:54 UTC] tony2001@php.net
`gcc -v` please.
 [2005-02-25 20:35 UTC] leonardo1_rw at yahoo dot com
sorry...
[leo@patagonianorte local]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 14:01:28 2024 UTC