From gpittman at iglou.com  Tue Jun  5 00:19:49 2018
From: gpittman at iglou.com (Gregory Pittman)
Date: Mon, 4 Jun 2018 20:19:49 -0400
Subject: [scribus-dev] build failure in util_ghostscript.cpp
Message-ID: <37c2f824-c4f0-2ddc-eb82-2159fb056346@iglou.com>

[  9%] Building CXX object
scribus/CMakeFiles/scribus.dir/util_ghostscript.cpp.o
/home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:251:13:
warning: In the GNU C Library, "major" is defined
 by <sys/sysmacros.h>. For historical compatibility, it is
 currently defined by <sys/types.h> as well, but we plan to
 remove this soon. To use "major", include <sys/sysmacros.h>
 directly. If you did not intend to use a system-defined macro
 "major", you should undefine it after including <sys/types.h>.
  int major(0), minor(0);
             ^~~~~~~~~~~~





/home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:251:13:
warning: In the GNU C Library, "minor" is defined
 by <sys/sysmacros.h>. For historical compatibility, it is
 currently defined by <sys/types.h> as well, but we plan to
 remove this soon. To use "minor", include <sys/sysmacros.h>
 directly. If you did not intend to use a system-defined macro
 "minor", you should undefine it after including <sys/types.h>.
  int major(0), minor(0);
             ^~~~~~~~~~~~





/home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp: In
function ?bool getNumericGSVersion(int&)?:
/home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:252:26:
error: ?major? was not declared in this scope
  if (getNumericGSVersion(major, minor))
                          ^~~~~
/home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:252:33:
error: ?minor? was not declared in this scope
  if (getNumericGSVersion(major, minor))
                                 ^~~~~
make[2]: *** [scribus/CMakeFiles/scribus.dir/build.make:8582:
scribus/CMakeFiles/scribus.dir/util_ghostscript.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:154:
scribus/CMakeFiles/scribus.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

Greg


From plinnell at scribus.net  Tue Jun  5 00:48:29 2018
From: plinnell at scribus.net (Peter Linnell)
Date: Mon, 4 Jun 2018 20:48:29 -0400
Subject: [scribus-dev] build failure in util_ghostscript.cpp
In-Reply-To: <37c2f824-c4f0-2ddc-eb82-2159fb056346@iglou.com>
References: <37c2f824-c4f0-2ddc-eb82-2159fb056346@iglou.com>
Message-ID: <20180604204829.5082c94e@linux-hp.suse>

On Mon, 4 Jun 2018 20:19:49 -0400
Gregory Pittman <gpittman at iglou.com> wrote:

> [  9%] Building CXX object
> scribus/CMakeFiles/scribus.dir/util_ghostscript.cpp.o
> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:251:13:
> warning: In the GNU C Library, "major" is defined
>  by <sys/sysmacros.h>. For historical compatibility, it is
>  currently defined by <sys/types.h> as well, but we plan to
>  remove this soon. To use "major", include <sys/sysmacros.h>
>  directly. If you did not intend to use a system-defined macro
>  "major", you should undefine it after including <sys/types.h>.
>   int major(0), minor(0);
>              ^~~~~~~~~~~~
> 
> 
> 
> 
> 
> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:251:13:
> warning: In the GNU C Library, "minor" is defined
>  by <sys/sysmacros.h>. For historical compatibility, it is
>  currently defined by <sys/types.h> as well, but we plan to
>  remove this soon. To use "minor", include <sys/sysmacros.h>
>  directly. If you did not intend to use a system-defined macro
>  "minor", you should undefine it after including <sys/types.h>.
>   int major(0), minor(0);
>              ^~~~~~~~~~~~
> 
> 
> 
> 
> 
> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp: In
> function ?bool getNumericGSVersion(int&)?:
> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:252:26:
> error: ?major? was not declared in this scope
>   if (getNumericGSVersion(major, minor))
>                           ^~~~~
> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:252:33:
> error: ?minor? was not declared in this scope
>   if (getNumericGSVersion(major, minor))
>                                  ^~~~~
> make[2]: *** [scribus/CMakeFiles/scribus.dir/build.make:8582:
> scribus/CMakeFiles/scribus.dir/util_ghostscript.cpp.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:154:
> scribus/CMakeFiles/scribus.dir/all] Error 2
> make: *** [Makefile:152: all] Error 2
> 
> Greg

G++-8 ?

Thanks,

Peter



From gpittman at iglou.com  Tue Jun  5 13:06:09 2018
From: gpittman at iglou.com (Gregory Pittman)
Date: Tue, 5 Jun 2018 09:06:09 -0400
Subject: [scribus-dev] build failure in util_ghostscript.cpp
In-Reply-To: <20180604204829.5082c94e@linux-hp.suse>
References: <37c2f824-c4f0-2ddc-eb82-2159fb056346@iglou.com>
 <20180604204829.5082c94e@linux-hp.suse>
Message-ID: <1f9b3867-0031-1dc2-d0d7-2f7172fcc3bf@iglou.com>

On 06/04/2018 08:48 PM, Peter Linnell wrote:
> On Mon, 4 Jun 2018 20:19:49 -0400
> Gregory Pittman <gpittman at iglou.com> wrote:
> 
>> [  9%] Building CXX object
>> scribus/CMakeFiles/scribus.dir/util_ghostscript.cpp.o
>> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:251:13:
>> warning: In the GNU C Library, "major" is defined
>>  by <sys/sysmacros.h>. For historical compatibility, it is
>>  currently defined by <sys/types.h> as well, but we plan to
>>  remove this soon. To use "major", include <sys/sysmacros.h>
>>  directly. If you did not intend to use a system-defined macro
>>  "major", you should undefine it after including <sys/types.h>.
>>   int major(0), minor(0);
>>              ^~~~~~~~~~~~
>>
>>
>>
>>
>>
>> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:251:13:
>> warning: In the GNU C Library, "minor" is defined
>>  by <sys/sysmacros.h>. For historical compatibility, it is
>>  currently defined by <sys/types.h> as well, but we plan to
>>  remove this soon. To use "minor", include <sys/sysmacros.h>
>>  directly. If you did not intend to use a system-defined macro
>>  "minor", you should undefine it after including <sys/types.h>.
>>   int major(0), minor(0);
>>              ^~~~~~~~~~~~
>>
>>
>>
>>
>>
>> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp: In
>> function ?bool getNumericGSVersion(int&)?:
>> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:252:26:
>> error: ?major? was not declared in this scope
>>   if (getNumericGSVersion(major, minor))
>>                           ^~~~~
>> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:252:33:
>> error: ?minor? was not declared in this scope
>>   if (getNumericGSVersion(major, minor))
>>                                  ^~~~~
>> make[2]: *** [scribus/CMakeFiles/scribus.dir/build.make:8582:
>> scribus/CMakeFiles/scribus.dir/util_ghostscript.cpp.o] Error 1
>> make[1]: *** [CMakeFiles/Makefile2:154:
>> scribus/CMakeFiles/scribus.dir/all] Error 2
>> make: *** [Makefile:152: all] Error 2
>>
>> Greg
> 
> G++-8 ?
> 

Hi Peter,

Not sure what you mean.
My gcc-c++ is 7.3.1 on Fedora 27.

Greg



From ale.comp_06 at xox.ch  Tue Jun  5 13:39:44 2018
From: ale.comp_06 at xox.ch (ale rimoldi)
Date: Tue, 5 Jun 2018 15:39:44 +0200
Subject: [scribus-dev] build failure in util_ghostscript.cpp
In-Reply-To: <1f9b3867-0031-1dc2-d0d7-2f7172fcc3bf@iglou.com>
References: <37c2f824-c4f0-2ddc-eb82-2159fb056346@iglou.com>
 <20180604204829.5082c94e@linux-hp.suse>
 <1f9b3867-0031-1dc2-d0d7-2f7172fcc3bf@iglou.com>
Message-ID: <20180605153944.7eabaaf6@scharfeis.home>

hi

> On 06/04/2018 08:48 PM, Peter Linnell wrote:
> > On Mon, 4 Jun 2018 20:19:49 -0400
> > Gregory Pittman <gpittman at iglou.com> wrote:
> >   
> >> [  9%] Building CXX object
> >> scribus/CMakeFiles/scribus.dir/util_ghostscript.cpp.o
> >> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:251:13:
> >> warning: In the GNU C Library, "major" is defined
> >>  by <sys/sysmacros.h>. For historical compatibility, it is
> >>  currently defined by <sys/types.h> as well, but we plan to
> >>  remove this soon. To use "major", include <sys/sysmacros.h>
> >>  directly. If you did not intend to use a system-defined macro
> >>  "major", you should undefine it after including <sys/types.h>.
> >>   int major(0), minor(0);
> >>              ^~~~~~~~~~~~
> >>
> >>
> >>
> >>
> >>
> >> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:251:13:
> >> warning: In the GNU C Library, "minor" is defined
> >>  by <sys/sysmacros.h>. For historical compatibility, it is
> >>  currently defined by <sys/types.h> as well, but we plan to
> >>  remove this soon. To use "minor", include <sys/sysmacros.h>
> >>  directly. If you did not intend to use a system-defined macro
> >>  "minor", you should undefine it after including <sys/types.h>.
> >>   int major(0), minor(0);
> >>              ^~~~~~~~~~~~
> >>
> >>
> >>
> >>
> >>
> >> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp: In
> >> function ?bool getNumericGSVersion(int&)?:
> >> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:252:26:
> >> error: ?major? was not declared in this scope
> >>   if (getNumericGSVersion(major, minor))
> >>                           ^~~~~
> >> /home/gregp/development/Scribus15x/scribus/util_ghostscript.cpp:252:33:
> >> error: ?minor? was not declared in this scope
> >>   if (getNumericGSVersion(major, minor))
> >>                                  ^~~~~
> >> make[2]: *** [scribus/CMakeFiles/scribus.dir/build.make:8582:
> >> scribus/CMakeFiles/scribus.dir/util_ghostscript.cpp.o] Error 1
> >> make[1]: *** [CMakeFiles/Makefile2:154:
> >> scribus/CMakeFiles/scribus.dir/all] Error 2
> >> make: *** [Makefile:152: all] Error 2
> >>
> >> Greg  
> > 
> > G++-8 ?
> >   
> 
> Hi Peter,
> 
> Not sure what you mean.
> My gcc-c++ is 7.3.1 on Fedora 27.

jean has pushed a fix after lunch...

https://github.com/scribusproject/scribus/commit/4e05c58c6666c96e17cc725533069de014d2089c

can you please test it?

ciao
a.l.e


From gpittman at iglou.com  Tue Jun  5 13:54:38 2018
From: gpittman at iglou.com (Gregory Pittman)
Date: Tue, 5 Jun 2018 09:54:38 -0400
Subject: [scribus-dev] build failure in util_ghostscript.cpp - Resolved
In-Reply-To: <20180605153944.7eabaaf6@scharfeis.home>
References: <37c2f824-c4f0-2ddc-eb82-2159fb056346@iglou.com>
 <20180604204829.5082c94e@linux-hp.suse>
 <1f9b3867-0031-1dc2-d0d7-2f7172fcc3bf@iglou.com>
 <20180605153944.7eabaaf6@scharfeis.home>
Message-ID: <b1bab04c-75a2-3673-b48f-a8cdaa3b4355@iglou.com>

On 06/05/2018 09:39 AM, ale rimoldi wrote:

> 
> jean has pushed a fix after lunch...
> 
> https://github.com/scribusproject/scribus/commit/4e05c58c6666c96e17cc725533069de014d2089c
> 
> can you please test it?
> 

That's taken care of it...

Greg


