This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 254306 - unresolved identifiers in cairo.h (Freeway sample)
Summary: unresolved identifiers in cairo.h (Freeway sample)
Status: VERIFIED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-12 13:06 UTC by soldatov
Modified: 2015-09-29 09:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-08-12 13:06:04 UTC
Automatic tests creates all samples and checks code model. On Linux and Solaris a Freeway sample fails.

Solaris:
Code Model has errors
=====================
ERROR: Unable to resolve identifier x. in cairo.h with 21162 offset
ERROR: Unable to resolve identifier y. in cairo.h with 21173 offset
ERROR: Unable to resolve identifier x. in cairo.h with 21327 offset
ERROR: Unable to resolve identifier y. in cairo.h with 21338 offset
ERROR: Unable to resolve identifier x. in cairo.h with 21563 offset
ERROR: Unable to resolve identifier y. in cairo.h with 21573 offset
ERROR: Unable to resolve identifier x. in cairo.h with 21684 offset
ERROR: Unable to resolve identifier y. in cairo.h with 21694 offset
ERROR: Unable to resolve identifier x. in cairo.h with 22572 offset
ERROR: Unable to resolve identifier y. in cairo.h with 22582 offset
ERROR: Unable to resolve identifier x. in cairo.h with 23635 offset
ERROR: Unable to resolve identifier y. in cairo.h with 23645 offset
ERROR: Unable to resolve identifier x. in cairo.h with 23711 offset
ERROR: Unable to resolve identifier y. in cairo.h with 23721 offset
ERROR: Unable to resolve identifier x. in cairo.h with 58975 offset
ERROR: Unable to resolve identifier y. in cairo.h with 58986 offset
ERROR: Unable to resolve identifier a. in cairo.h with 79416 offset
ERROR: Unable to resolve identifier b. in cairo.h with 79450 offset
ERROR: Unable to resolve identifier x. in cairo.h with 79662 offset
ERROR: Unable to resolve identifier y. in cairo.h with 79673 offset
ERROR: These routines do no bounds checking on the output buffer and may import user-data through the environment variable CFTIME
Alternative: strftime(buf, sizeof (buf), fmt, &tm); in time.h with 4771 offset
ERROR: These routines do no bounds checking on the output buffer and may import user-data through the environment variable CFTIME
Alternative: strftime(buf, sizeof (buf), fmt, &tm); in time.h with 4822 offset
ERROR: Unable to resolve identifier j. in traffic.cc with 13237 offset
=====================

Linux:
Code Model has errors
=====================
ERROR: Unable to resolve identifier x. in cairo.h with 30496 offset
ERROR: Unable to resolve identifier y. in cairo.h with 30507 offset
ERROR: Unable to resolve identifier x. in cairo.h with 30661 offset
ERROR: Unable to resolve identifier y. in cairo.h with 30672 offset
ERROR: Unable to resolve identifier x. in cairo.h with 30897 offset
ERROR: Unable to resolve identifier y. in cairo.h with 30907 offset
ERROR: Unable to resolve identifier x. in cairo.h with 31018 offset
ERROR: Unable to resolve identifier y. in cairo.h with 31028 offset
ERROR: Unable to resolve identifier x. in cairo.h with 31906 offset
ERROR: Unable to resolve identifier y. in cairo.h with 31916 offset
ERROR: Unable to resolve identifier x. in cairo.h with 32969 offset
ERROR: Unable to resolve identifier y. in cairo.h with 32979 offset
ERROR: Unable to resolve identifier x. in cairo.h with 33045 offset
ERROR: Unable to resolve identifier y. in cairo.h with 33055 offset
ERROR: Unable to resolve identifier x. in cairo.h with 33121 offset
ERROR: Unable to resolve identifier y. in cairo.h with 33131 offset
ERROR: Unable to resolve identifier x. in cairo.h with 69394 offset
ERROR: Unable to resolve identifier y. in cairo.h with 69405 offset
ERROR: Unable to resolve identifier x. in cairo.h with 98993 offset
ERROR: Unable to resolve identifier y. in cairo.h with 99003 offset
ERROR: Unable to resolve identifier x. in cairo.h with 99094 offset
ERROR: Unable to resolve identifier y. in cairo.h with 99104 offset
ERROR: Unable to resolve identifier x. in cairo.h with 99242 offset
ERROR: Unable to resolve identifier y. in cairo.h with 99252 offset
ERROR: Unable to resolve identifier x. in cairo.h with 103934 offset
ERROR: Unable to resolve identifier y. in cairo.h with 103945 offset
ERROR: Unable to resolve identifier a. in cairo.h with 104917 offset
ERROR: Unable to resolve identifier b. in cairo.h with 104951 offset
ERROR: Unable to resolve identifier x. in cairo.h with 105163 offset
ERROR: Unable to resolve identifier y. in cairo.h with 105174 offset
ERROR: Unable to resolve identifier a. in cairo.h with 106425 offset
ERROR: Unable to resolve identifier b. in cairo.h with 106450 offset
ERROR: Unable to resolve identifier x. in cairo.h with 107205 offset
ERROR: Unable to resolve identifier y. in cairo.h with 107212 offset
ERROR: This function does not check for bounds while storing the input. This function can't be used securely.
Alternative: fgets(buf, sizeof (buf), stdin); in stdio.h with 21061 offset
=====================
Comment 1 soldatov 2015-08-12 13:08:03 UTC
Simple Cairo sample (http://cairographics.org/FAQ/):

#include <cairo.h>

int
main (int argc, char *argv[])
{
        cairo_surface_t *surface =
            cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 240, 80);
        cairo_t *cr =
            cairo_create (surface);

        cairo_select_font_face (cr, "serif", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
        cairo_set_font_size (cr, 32.0);
        cairo_set_source_rgb (cr, 0.0, 0.0, 1.0);
        cairo_move_to (cr, 10.0, 50.0);
        cairo_show_text (cr, "Hello, world");

        cairo_destroy (cr);
        cairo_surface_write_to_png (surface, "hello.png");
        cairo_surface_destroy (surface);
        return 0;
}
==> cairo.h has unresolved identifiers
Comment 2 Vladimir Kvashin 2015-09-28 16:52:42 UTC
Is this a regression or just a newly found bug?
(or you probably do not know the answer, which is ok too :))
Comment 3 soldatov 2015-09-28 17:38:14 UTC
I think this problem disappeared many time ago.
Comment 4 Vladimir Voskresensky 2015-09-29 09:23:24 UTC
could you verify and update status, please.
Comment 5 soldatov 2015-09-29 09:51:52 UTC
verified in NetBeans IDE Dev (Build 201509290002)