#18639 [Opn]: compilation of exif fails
| From: | helly@php.net | Date: | Sat, 03 Aug 2002 13:13:22 +0000 |
| Subject: | #18639 [Opn]: compilation of exif fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15911@lists.php.net to get a copy of this message | ||
ID: 18639
Updated by: helly@php.net
Reported By: nohn@php.net
Status: Open
Bug Type: Compile Failure
Operating System: Compaq Tru64
PHP Version: 4CVS-2002-07-30
-Assigned To:
+Assigned To: helly
New Comment:
Could you try latest cvs version and send me again the output - maybe
there are some problems with 64bit. I havn't yet had the chance to test
it on a 64bit machine.
Previous Comments:
------------------------------------------------------------------------
[2002-07-30 08:23:07] nohn@php.net
When compile with --enable-exif following errors occur:
cc: Info: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line 535:
In this d
eclaration, there is a redundant use of type qualifier "const".
(duptypqual)
static const tag_info_array tag_table_IFD = {
-------^
cc: Info: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line 784:
In this d
eclaration, there is a redundant use of type qualifier "const".
(duptypqual)
static const tag_info_array tag_table_GPS = {
-------^
cc: Info: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line 819:
In this d
eclaration, there is a redundant use of type qualifier "const".
(duptypqual)
static const tag_info_array tag_table_IOP = {
-------^
cc: Info: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line 828:
In this d
eclaration, there is a redundant use of type qualifier "const".
(duptypqual)
static const tag_info_array tag_table_VND_CANON = {
-------^
cc: Info: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line 840:
In this d
eclaration, there is a redundant use of type qualifier "const".
(duptypqual)
static const tag_info_array tag_table_VND_CASIO = {
-------^
cc: Info: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line 856:
In this d
eclaration, there is a redundant use of type qualifier "const".
(duptypqual)
static const tag_info_array tag_table_VND_FUJI = {
-------^
cc: Info: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line 876:
In this d
eclaration, there is a redundant use of type qualifier "const".
(duptypqual)
static const tag_info_array tag_table_VND_NIKON = {
cc: Info: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line 888:
In this d
eclaration, there is a redundant use of type qualifier "const".
(duptypqual)
static const tag_info_array tag_table_VND_NIKON_990 = {
-------^
cc: Info: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line 907:
In this d
eclaration, there is a redundant use of type qualifier "const".
(duptypqual)
static const tag_info_array tag_table_VND_OLYMPUS = {
-------^
cc: Error: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3000: In this
declaration, parameter 4 has a different type than specified in an
earlier decl
aration of this function. (mismatparam)
static int exif_process_IFD_in_JPEG(image_info_type *ImageInfo, char
*dir_start,
char *offset_base, unsigned IFDlength, size_t displacement, int
section_index T
SRMLS_DC)
-----------^
cc: Error: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3000: In this
declaration, the type of "exif_process_IFD_in_JPEG" is not compatible
with the
type of a previous declaration of "exif_process_IFD_in_JPEG" at line
number 2177
in file /usr/users/nohn/php4-200207292100/ext/exif/exif.c.
(notcompat)
static int exif_process_IFD_in_JPEG(image_info_type *ImageInfo, char
*dir_start,
char *offset_base, unsigned IFDlength, size_t displacement, int
section_index T
SRMLS_DC)
-----------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3209: In th
is statement, the referenced type of the pointer value "(Data+2)" is
"unsigned c
har", which is not compatible with "signed char". (ptrmismatch)
got = php_stream_read(ImageInfo->infile, Data+2,
itemlen-2); /*
Read the whole section. */
----------------------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3230: In th
is statement, the referenced type of the pointer value "(Data)" is
"unsigned cha
r", which is not compatible with "signed char". (ptrmismatch)
got =
php_stream_read(ImageInfo->infile,
Data, size);
----------------------------------------------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3243: In th
is statement, the referenced type of the pointer value "(char ...)Data"
is "sign
ed char", which is not compatible with "unsigned char". (ptrmismatch)
exif_process_COM(ImageInfo, (char
*)Data, itemle
n TSRMLS_CC);
------------------------------------------------------------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3301: In th
e initializer for data, the referenced type of the pointer value
"ImageInfo->Thu
mbnail.data" is "signed char", which is not compatible with "unsigned
char". (pt
rmismatch)
uchar c, *data = ImageInfo->Thumbnail.data;
-----------------------------------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3401: In th
is statement, the referenced type of the pointer value
"(ImageInfo->file.list[sn
].data)" is "unsigned char", which is not compatible with "signed
char". (ptrmis
match)
php_stream_read(ImageInfo->infile,
ImageInfo->file.list[sn].data
, 2);
----------------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3411: In th
is statement, the referenced type of the pointer value
"(ImageInfo->file.list[sn
].data+2)" is "unsigned char", which is not compatible with "signed
char". (ptrm
ismatch)
php_stream_read(ImageInfo->infile,
ImageInfo->file.list[
sn].data+2, dir_size-2);
------------------------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3500: In th
is statement, the referenced type of the pointer value
"(ImageInfo->file.list[sn
].data+dir_size)" is "unsigned char", which is not compatible with
"signed char"
. (ptrmismatch)
php_stream_read(ImageInfo->infile, Image
Info->file.list[sn].data+dir_size, ifd_size-dir_size);
----------------------------------------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3565: In th
is statement, the referenced type of the pointer value "dir_entry" is
"unsignedchar", which is not compatible with "signed char".
(ptrmismatch)
if
(!exif_process_IFD_TAG(ImageI
nfo, dir_entry,
--------------------------------------------------------------------------------
-----^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3566: In th
is statement, the referenced type of the pointer value
"ImageInfo->file.list[sn]
.data-dir_offset" is "unsigned char", which is not compatible with
"signed char"
. (ptrmismatch)
ImageInfo->file.list[sn].data-dir_offset,
--------------------------------------------------------------------------------
------------------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3627: In th
is statement, the referenced type of the pointer value "(file_header)"
is "unsig
ned char", which is not compatible with "signed char". (ptrmismatch)
php_stream_read(ImageInfo->infile, file_header, 2);
----------------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
3636: In th
is statement, the referenced type of the pointer value
"(file_header+2)" is "uns
igned char", which is not compatible with "signed char". (ptrmismatch)
php_stream_read(ImageInfo->infile,
file_header+2, 6);
------------------------^
cc: Warning: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
4047: In th
is statement, the expression "itype=itype=php_getimagetype(...)"
modifies the va
riable "itype" more than once without an intervening sequence point.
This behav
ior is undefined. (undefvarmod)
itype = itype = php_getimagetype(stream, NULL TSRMLS_CC);
--------^
cc: Error: /usr/users/nohn/php4-200207292100/ext/exif/exif.c, line
2177: The fun
ction "exif_process_IFD_in_JPEG" has internal linkage, occurs in a
context that
requires its definition, and has no definition. (missingfunc)
static int exif_process_IFD_in_JPEG(image_info_type *ImageInfo, char
*dir_entry,
char *offset_base, size_t IFDlength, size_t displacement, int
section_index TSR
MLS_DC);
-----------^
*** Exit 1
Stop.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18639&edit=1