build problems on Oracle "Solaris 10" X86_64

Bug #740969 reported by Reinhard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

with a few important changes I succeeded building inkscape 0.48.1 on Solaris 10 (X86_64) with gcc-4.5.1.
src/color-profile.cpp, line 8: Change "#include <sys/fcntl.h>" into "#include <fcntl.h>"
src/2geom/isnan.h, line 57: The mentioned "#include <cmath>" must be set
src/2geom/convex-cover.cpp, line 36: include the two lines (ok, quick and dirty....):
#undef INFINITY
#define INFINITY (__builtin_inff())
The complete glib/gtk/cms/poppler/xpdf must be rebuilt in one of the newest releases. Otherwise you won't succeed on Sun/Oracle! poppler must be built with --enable-xpdf-headers. Now it works :-)

Tags: build
Revision history for this message
su_v (suv-lp) wrote :

> with a few important changes I succeeded building
> inkscape 0.48.1 on Solaris 10 (X86_64) with gcc-4.5.1

Could you attach a unified diff of your changes against the 0.48.1 sources (or current trunk)?

> poppler must be built with --enable-xpdf-headers.

Yes, this is also described here:
<http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape#Poppler>

tags: added: build
Revision history for this message
su_v (suv-lp) wrote :

Would you be willing to take notes of the required steps and add them as a new page in the Inkscape wiki? It would be great to have detailed instructions for your OS/platform added to this list on the 'Compiling Inkscape' page:
<http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape#OS_.26_Distribution_Specific>

Revision history for this message
Reinhard (drube) wrote :

diff -c -r inkscape-0.48.1/src/2geom/convex-cover.cpp inkscape-0.48.1-x86_64/src/2geom/convex-cover.cpp
*** inkscape-0.48.1/src/2geom/convex-cover.cpp Tue Jul 13 05:48:40 2010
--- inkscape-0.48.1-x86_64/src/2geom/convex-cover.cpp Mon Mar 21 16:21:05 2011
***************
*** 33,38 ****
--- 33,41 ----
  #include <2geom/exception.h>
  #include <algorithm>
  #include <map>
+ #undef INFINITY
+ #define INFINITY (__builtin_inff())
+

  /** Todo:
      + modify graham scan to work top to bottom, rather than around angles
diff -c -r inkscape-0.48.1/src/2geom/isnan.h inkscape-0.48.1-x86_64/src/2geom/isnan.h
*** inkscape-0.48.1/src/2geom/isnan.h Tue Jul 13 05:48:40 2010
--- inkscape-0.48.1-x86_64/src/2geom/isnan.h Mon Mar 21 15:39:57 2011
***************
*** 54,60 ****
   * the 2004 copyright for the code itself.
   */

! #include <math.h>
  /* You might try changing the above to <cmath> if you have problems.
   * Whether you use math.h or cmath, you may need to edit the .cpp file
   * and/or other .h files to use the same header file.
--- 54,61 ----
   * the 2004 copyright for the code itself.
   */

! #include <cmath>
! // #include <math.h>
  /* You might try changing the above to <cmath> if you have problems.
   * Whether you use math.h or cmath, you may need to edit the .cpp file
   * and/or other .h files to use the same header file.
diff -c -r inkscape-0.48.1/src/color-profile.cpp inkscape-0.48.1-x86_64/src/color-profile.cpp
*** inkscape-0.48.1/src/color-profile.cpp Sun Jan 2 05:34:09 2011
--- inkscape-0.48.1-x86_64/src/color-profile.cpp Mon Mar 21 14:09:26 2011
***************
*** 5,11 ****
  #define noDEBUG_LCMS

  #include <glib/gstdio.h>
! #include <sys/fcntl.h>
  #include <gdkmm/color.h>
  #include <glib/gi18n.h>

--- 5,11 ----
  #define noDEBUG_LCMS

  #include <glib/gstdio.h>
! #include <fcntl.h>
  #include <gdkmm/color.h>
  #include <glib/gi18n.h>

Revision history for this message
Reinhard (drube) wrote : Re: [Bug 740969] Re: build problems on Oracle "Solaris 10" X86_64

On 03/23/11 15:12, ~suv wrote:
> Would you be willing to take notes of the required steps and add them as a new page in the Inkscape wiki? It would be great to have detailed instructions for your OS/platform added to this list on the 'Compiling Inkscape' page:
> <http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape#OS_.26_Distribution_Specific>
>
of course! How can I do that?

Revision history for this message
Reinhard (drube) wrote :

On 03/23/11 17:07, Reinhard Drube wrote:
> On 03/23/11 15:12, ~suv wrote:
>> Would you be willing to take notes of the required steps and add them
>> as a new page in the Inkscape wiki? It would be great to have detailed
>> instructions for your OS/platform added to this list on the 'Compiling
>> Inkscape' page:
>> <http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape#OS_.26_Distribution_Specific>
>>
>>
> of course! How can I do that?
can you set me in a state where I can edit the page?
My UID at your wiki is 85,909 name "Reinhard"

Revision history for this message
su_v (suv-lp) wrote :

Sorry for not following up earlier - but you seem to have solved any problems with regard to the wiki yourself ;)

Many thanks for updating 'Compiling on Oracle/Sun Solaris' with build instructions for the current stable release:
<http://wiki.inkscape.org/wiki/index.php/CompilingSunSolaris#Compiling_version_0.48.1>

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

All changes are now either in trunk, or are no longer needed in C++11

Changed in inkscape:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.