#18639 [NEW]: compilation of exif fails
| From: | nohn@php.net | Date: | Tue, 30 Jul 2002 12:23:09 +0000 |
| Subject: | #18639 [NEW]: compilation of exif fails | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15560@lists.php.net to get a copy of this message | ||
From: nohn@php.net
Operating system: Compaq Tru64
PHP version: 4CVS-2002-07-30
PHP Bug Type: Compile Failure
Bug description: compilation of exif fails
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 bug report at http://bugs.php.net/?id=18639&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18639&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18639&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18639&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18639&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18639&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18639&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18639&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18639&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18639&r=globals