|
From: Thomas T. <th...@ha...> - 2017-02-16 10:46:25
|
Thanks Gernot.
I get some compile errors when trying to build the current dev version
on Solaris 11.3 with gcc 4.8.
1) I had to use:
---
env CFLAGS=-std=c99 ./configure
---
to make configure happy.
2) Building it stops at:
---
Making all in src
gmake[2]: Entering directory
`/usr/local/src/gutenprint/gimp-print-source-40e406ba358115908a2b83d32b0852dde550d287/src'
Making all in main
gmake[3]: Entering directory
`/usr/local/src/gutenprint/gimp-print-source-40e406ba358115908a2b83d32b0852dde550d287/src/main'
CC curve.lo
curve.c: In function 'curve_whitespace_callback':
curve.c:1730:3: error: implicit declaration of function 'strcasecmp'
[-Werror=implicit-function-declaration]
if (strcasecmp(node->value.element.name, "gutenprint") == 0)
^
curve.c:1730:3: warning: nested extern declaration of 'strcasecmp'
[-Wnested-externs]
cc1: some warnings being treated as errors
gmake[3]: *** [curve.lo] Error 1
gmake[3]: Leaving directory
`/usr/local/src/gutenprint/gimp-print-source-40e406ba358115908a2b83d32b0852dde550d287/src/main'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/local/src/gutenprint/gimp-print-source-40e406ba358115908a2b83d32b0852dde550d287/src'
gmake[1]: *** [all-recursive] Error 1
---
Cheers,
Thomas
Den 2017-02-16 kl. 10:08, skrev Gernot Hassenpflug:
> On Thu, Feb 16, 2017 at 5:59 PM, Thomas Tornblom <th...@ha...> wrote:
>> Great, thanks for confirming this Gernot.
>>
>> Have you had any chance of looking into the root cause for this issue?
>
> Hello Thomas,
> Sorry for not getting back on this thread.
> The immediate cause has been fixed in the latest source a few days
> ago, if you can compile you should be fine.
> The way of handling paper sizes will probably undergo some changes in
> the near future to try and cater for different needs, and avoid such
> issues as cropped up this time.
> If you can test the current code that would be great.
> Regards,
> Gernot
>
>> Cheers,
>> Thomas
>>
>>
>> Den 2017-02-07 kl. 13:56, skrev Gernot Hassenpflug:
>>> On Mon, Feb 6, 2017 at 12:40 AM, Thomas Tornblom <th...@ha...> wrote:
>>>> Given the recent discussion about issues with Canon printers and 5.2.12
>>>> I tried downgrading to 5.2.11, but it appears to behave the same. It
>>>> complains that there is no paper in the manual tray if I select A4, but
>>>> works if I select Letter format, even though I've set the default media
>>>> size to A4 and the cassette contains only A4.
>>> /../
>>>> Den 2017-02-03 kl. 14:02, skrev Thomas Tornblom:
>>>>> Greetings.
>>>>>
>>>>> I have just compiled and installed gutenprint 5.2.12 on Solaris 11.3 and
>>>>> I'm having a problem selecting the default paper size matching what is
>>>>> in the tray.
>>>>>
>>>>> The printer is a Canon PIXMA MP640, and I use a4 media, but it seems
>>>>> that something believes it is Letter.
>>>>>
>>>>> I have selected a4 as the default media size in cups, but if I try to
>>>>> print using a4, the printer tries to use the manual feed tray. If I
>>>>> select Letter then it will draw from the tray, which contains A4 media.
>>>>>
>>>>> As it works properly with a4 when printing from my Mac I assume there is
>>>>> no problem in the printer end.
>>>>>
>>>>> I see nothing obviously wrong in the PPD, but it is a bit overwhelming
>>>>> and I assume the problem lies there.
>>>>>
>>>>> Unfortunately the PPD on the Mac appears incompatible with the cups
>>>>> version on the solaris system, so I can not do a trivial test using that.
>>>>>
>>>>> Comments?
>>>
>>> Hello Thomas,
>>>
>>> I could reproduce this bug in 5.2.12, and if I fix the return value
>>> from the canon_size_type to what would be expected for A4 paper, then
>>> the output of the printjob is correct.
>>> However, for reasons unknown at this stage, the canon_size_type
>>> function is reading the paper size to be the string 'Custom' (as
>>> indicated when using STP_DEBUG=0x40 to debug the Canon backend), and
>>> therefore returning 0x00.
>>>
>>> I have no idea at the moment what is causing the read value of the
>>> papersize to always be 'Custom', but will be digging into that.
>>>
>>> For reference, the start and end of the function, in princt-canon.c:
>>>
>>> canon_size_type(const stp_vars_t *v, const canon_cap_t * caps)
>>> {
>>> const stp_papersize_t *pp = stp_get_papersize_by_size(stp_get_page_height(v),
>>> stp_get_page_width(v));
>>>
>>> stp_deprintf(STP_DBG_CANON,"canon: entered canon_size_type\n");
>>>
>>> if (pp)
>>> {
>>> const char *name = pp->name;
>>> stp_deprintf(STP_DBG_CANON,"canon: in canon_size_type is
>>> pp->name: '%s'\n",name);
>>>
>>> /* used internally: do not translate */
>>> /* built ins: Japanese driver notation */
>>> if (!strcmp(name,"A5")) return 0x01;
>>> if (!strcmp(name,"A4")) return 0x03;
>>> if (!strcmp(name,"A3")) return 0x05;
>>> if (!strcmp(name,"B5")) return 0x08;
>>> if (!strcmp(name,"B4")) return 0x0a;
>>> if (!strcmp(name,"Letter")) return 0x0d;
>>> if (!strcmp(name,"Legal")) return 0x0f;
>>> if (!strcmp(name,"Tabloid")) return 0x11;
>>> /../
>>>
>>> /* custom */
>>>
>>> stp_deprintf(STP_DBG_CANON,"canon: Unknown paper size '%s' -
>>> using custom\n",name);
>>> } else {
>>> stp_deprintf(STP_DBG_CANON,"canon: Couldn't look up paper size %dx%d - "
>>> "using custom\n",stp_get_page_height(v), stp_get_page_width(v));
>>> }
>>> return 0;
>>> }
>>>
>>> Regards,
>>> Gernot Hassenpflug
>>>
>>>> --
>>>> Real life: Thomas Törnblom Email: th...@ha...
>>>> Snail mail: Banvallsvägen 14 Phone: +46 18 32 31 18
>>>> S - 754 40 Uppsala, Sweden Mobile: +46 76 209 8320
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Check out the vibrant tech community on one of the world's most
>>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>>> _______________________________________________
>>>> Gimp-print-devel mailing list
>>>> Gim...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Gimp-print-devel mailing list
>>> Gim...@li...
>>> https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Real life: Thomas Törnblom Email: th...@ha...
>> Snail mail: Banvallsvägen 14 Phone: +46 18 32 31 18
>> S - 754 40 Uppsala, Sweden Mobile: +46 76 209 8320
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Gimp-print-devel mailing list
>> Gim...@li...
>> https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Gimp-print-devel mailing list
> Gim...@li...
> https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
>
>
> !DSPAM:58a56c78817491342092!
>
--
Real life: Thomas Törnblom Email: th...@ha...
Snail mail: Banvallsvägen 14 Phone: +46 18 32 31 18
S - 754 40 Uppsala, Sweden Mobile: +46 76 209 8320
|