STR #3378

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.3 | Post Text | Post File | Prev | Next ]

STR #3378

Application:FLTK Library
Status:5 - New
Priority:3 - Moderate, e.g. unable to compile the software
Scope:2 - Specific to an operating system
Subsystem:Build Files
Summary:configure.ac script changes for compiling fltk on Solaris
Version:1.3.4
Created By:nrau
Assigned To:AlbrechtS
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size top right image
 
#1 AlbrechtS
08:22 Apr 20, 2017
configure.diff
1k
 
bottom left image   bottom right image

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
 
#1 nrau
09:17 Apr 19, 2017
To build a .so on Solaris, we needed to apply a patch to configure.ac which is included below.

I am not quite sure how contribution of patches work for fltk, so submitting it as a bug with the requested patch here.

--- configure.ac        2017-04-17 18:39:45.435860505 +0000
+++ configure.ac        2017-04-17 18:40:39.007084697 +0000
@@ -230,7 +230,7 @@
            GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
            IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
            CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
-           DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -h \$@ \$(LDLIBS) -G $DEBUGFLAG -o"
+           DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared -fPIC $DEBUGFLAG -o"
            if test "x$libdir" != "x/usr/lib"; then
                    DSOLINK="-R$libdir"
            fi
 
 
#2 AlbrechtS
08:22 Apr 20, 2017
Thanks for the report and the proposed patch.

You can use the 'Post File' link in the STR form to contribute a patch, preferred in unified diff format (as you included it inline). svn diff, git diff, or diff -u are useful to generate such patches. svn diff has the additional advantage that it contains the svn (subversion) revision (otherwise you could mention it in the text).

See attached file configure.diff for reference.

Can you please tell us a little more about which version of Solaris needs this patch? Do you know since which version this is necessary?

I'm asking because the configure part your patch is changing is explicitly for Solaris, so when did it change? I'd like to add some info to the changes file for reference if you have it handy. TIA.
 
 
#3 nrau
12:25 Apr 21, 2017
Hi, I am trying this on the recent released versions of Solaris 11.  I haven't tried it on older reeleases, and I am not sure if someone attempted it on earlier versions like Solaris 10.  
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2020 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.