pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/37724: graphics/gthumb



>Number:         37724
>Category:       pkg
>Synopsis:       graphics/gthumb
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 09 10:45:00 +0000 2008
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_120012-14 i86pc


>Description:


b/libXau.so /pkg/obj/graphics/gthumb/work/.buildlink/lib/libXdmcp.so -lnsl 
-lsocket -lXtst  -R/usr/pkg/lib -R/pkg/obj/graphics
/gthumb/work/.buildlink/lib
ld: warning: symbol `monitor' has differing types:
        (file main.o type=OBJT; file /lib/amd64/libc.so type=FUNC);
        main.o definition taken
ld: warning: symbol `monitor' has differing types:
        (file main.o type=OBJT; file /lib/amd64/libc.so type=FUNC);
Undefined                       first referenced
 symbol                             in file
mkdtemp                             ../libgthumb/.libs/libgthumb.so
ld: fatal: Symbol referencing errors. No output written to .libs/gthumb
collect2: ld returned 1 exit status
gmake[3]: *** [gthumb] Error 1
gmake[3]: Leaving directory `/pkg/obj/graphics/gthumb/work/gthumb-2.10.6/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/pkg/obj/graphics/gthumb/work/gthumb-2.10.6/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/pkg/obj/graphics/gthumb/work/gthumb-2.10.6'
gmake: *** [all] Error 2
*** Error code 2



>How-To-Repeat:


bmake


>Fix:


--- libgthumb/file-utils.c.orig Mon Aug 27 21:34:41 2007
+++ libgthumb/file-utils.c      Wed Jan  9 11:40:27 2008
@@ -2455,13 +2455,19 @@
         template = g_strconcat (best_folder, "/.gth-XXXXXX", NULL);
         g_free (best_folder);
         
-        result = mkdtemp (template);
+/* mkdtemp not in Solaris GD 09 Jan 2008 */
+       {
+               int status;
 
-        if ((result == NULL) || (*result == '\0')) {
-                g_free (template);
-                result = NULL;
-        }
+               result = mktemp(template);
+               status = mkdir (result,0700);
 
+               if ((result == NULL) || (*result == '\0') || (status != 0)) {
+                               g_free (template);
+                       result = NULL;
+               }
+       }
+
         return result;
 }






Home | Main Index | Thread Index | Old Index