Bug 2691 - Freebsd 11.0 - Error: use of undeclared identifier 'JPEGState'
: Freebsd 11.0 - Error: use of undeclared identifier 'JPEGState'
Status: RESOLVED LATER
: libtiff
default
: unspecified
: Other FreeBSD
: P2 normal
: ---
Assigned To:
: https://github.com/vadz/libtiff/releases
:
: migrated_to_gitlab
:
:
  Show dependency treegraph
 
Reported: 2017-05-09 06:25 by
Modified: 2019-10-01 14:20 (History)


Attachments
Config log from libtiff (258.81 KB, text/x-log)
2017-05-09 06:26, Martin Filla
Details
Config status from libtiff (70.68 KB, application/octet-stream)
2017-05-09 06:27, Martin Filla
Details


Note

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


Description From 2017-05-09 06:25:49
Hello i compiled version 4.0.7 libtiff but have more undeclared indentifiers.

Compiler: FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on
LLVM 3.8.0)
Target: x86_64-unknown-freebsd11.0

OS: FreeBSD  11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40
UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 
amd64


tif_jpeg_12.c:18:5: error: use of undeclared identifier 'JPEGState'
    JPEGState* sp;
    ^
tif_jpeg_12.c:18:16: error: use of undeclared identifier 'sp'
    JPEGState* sp;
               ^
tif_jpeg_12.c:22:5: error: use of undeclared identifier 'sp'
    sp = JState(tif);
    ^
tif_jpeg_12.c:22:10: warning: implicit declaration of function 'JState' is
invalid in C99 [-Wimplicit-function-declaration]
    sp = JState(tif);
         ^
tif_jpeg_12.c:23:5: error: use of undeclared identifier 'sp'
    sp->tif = tif;                              /* back link */
    ^
tif_jpeg_12.c:28:37: error: use of undeclared identifier 'JPEGVGetField'; did
you mean 'TIFFVGetField'?
    tif->tif_tagmethods.vgetfield = JPEGVGetField; /* hook for codec tags */
                                    ^~~~~~~~~~~~~
                                    TIFFVGetField
./tiffio.h:349:12: note: 'TIFFVGetField' declared here
extern int TIFFVGetField(TIFF* tif, uint32 tag, va_list ap);
           ^
tif_jpeg_12.c:29:37: error: use of undeclared identifier 'JPEGVSetField'; did
you mean 'TIFFVSetField'?
    tif->tif_tagmethods.vsetfield = JPEGVSetField; /* hook for codec tags */
                                    ^~~~~~~~~~~~~
                                    TIFFVSetField
./tiffio.h:410:12: note: 'TIFFVSetField' declared here
extern int TIFFVSetField(TIFF*, uint32, va_list);
           ^
tif_jpeg_12.c:30:36: error: use of undeclared identifier 'JPEGPrintDir'
    tif->tif_tagmethods.printdir = JPEGPrintDir;   /* hook for codec tags */
                                   ^
tif_jpeg_12.c:35:26: error: use of undeclared identifier 'JPEGFixupTags'
    tif->tif_fixuptags = JPEGFixupTags;
                         ^
tif_jpeg_12.c:36:28: error: use of undeclared identifier 'JPEGSetupDecode'
    tif->tif_setupdecode = JPEGSetupDecode;
                           ^
tif_jpeg_12.c:37:26: error: use of undeclared identifier 'JPEGPreDecode'
    tif->tif_predecode = JPEGPreDecode;
                         ^
tif_jpeg_12.c:38:26: error: use of undeclared identifier 'JPEGDecode'
    tif->tif_decoderow = JPEGDecode;
                         ^
tif_jpeg_12.c:39:28: error: use of undeclared identifier 'JPEGDecode'
    tif->tif_decodestrip = JPEGDecode;
                           ^
tif_jpeg_12.c:40:27: error: use of undeclared identifier 'JPEGDecode'
    tif->tif_decodetile = JPEGDecode;
                          ^
tif_jpeg_12.c:41:28: error: use of undeclared identifier 'JPEGSetupEncode'
    tif->tif_setupencode = JPEGSetupEncode;
                           ^
tif_jpeg_12.c:42:26: error: use of undeclared identifier 'JPEGPreEncode'
    tif->tif_preencode = JPEGPreEncode;
                         ^
tif_jpeg_12.c:43:27: error: use of undeclared identifier 'JPEGPostEncode'
    tif->tif_postencode = JPEGPostEncode;
                          ^
tif_jpeg_12.c:44:26: error: use of undeclared identifier 'JPEGEncode'
    tif->tif_encoderow = JPEGEncode;
                         ^
tif_jpeg_12.c:45:28: error: use of undeclared identifier 'JPEGEncode'
    tif->tif_encodestrip = JPEGEncode;
                           ^
tif_jpeg_12.c:46:27: error: use of undeclared identifier 'JPEGEncode'
    tif->tif_encodetile = JPEGEncode;  
                          ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
*** [tif_jpeg_12.lo] Error code 1
------- Comment #1 From 2017-05-09 06:26:47 -------
Created an attachment (id=772) [details]
Config log from libtiff

Config log from libtiff
------- Comment #2 From 2017-05-09 06:27:34 -------
Created an attachment (id=773) [details]
Config status from libtiff

Config status from libtiff
------- Comment #3 From 2019-02-11 18:35:06 -------
I have no trouble with FreeBSD 11.2 and the latest code from master (with
--enable-jpeg12)
------- Comment #4 From 2019-10-01 14:20:33 -------
Bugzilla is no longer used for tracking libtiff issues. Remaining open tickets,
such as this one, have been migrated to the libtiff GitLab instance at
https://gitlab.com/libtiff/libtiff/issues .

The migrated tickets have their summary prefixed with [BZ#XXXX] where XXXX is
the initial Bugzilla issue number.