! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
mkdtemp() doesn't exist in solaris
Status:
RESOLVED: FIXED
Product:
Xarchiver
Component:
general

Comments

Description Anil 2006-09-06 17:35:06 CEST
This is the same bug that existed in Thunar, see bug:
http://bugzilla.xfce.org/show_bug.cgi?id=2070

Future Solaris versions will have it so this might be necessary only temporarily?

/bin/bash ../libtool --mode=link --tag=CC /opt/SUNWspro/bin/cc  -I/opt/Xfce-beta/include -I/usr/local/include -I/usr/X11/include -I/usr/openwin/include -I/usr/sfw/include   -L/opt/Xfce-beta/lib -L/usr/local/lib -L/usr/X11/lib -L/usr/openwin/lib -L/usr/openwin/sfw/lib -L/usr/sfw/lib -o xarchiver  xarchiver-main.o  xarchiver-string_utils.o xarchiver-support.o  xarchiver-archive.o xarchiver-interface.o  xarchiver-callbacks.o xarchiver-arj.o  xarchiver-zip.o xarchiver-rar.o  xarchiver-7zip.o xarchiver-tar.o  xarchiver-bzip2.o xarchiver-gzip.o  xarchiver-rpm.o xarchiver-iso.o  xarchiver-extract_dialog.o  xarchiver-add_dialog.o -L/opt/Xfce-beta/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0    -L/opt/Xfce-beta/lib -lglib-2.0
/opt/SUNWspro/bin/cc -I/opt/Xfce-beta/include -I/usr/local/include -I/usr/X11/include -I/usr/openwin/include -I/usr/sfw/include -o xarchiver xarchiver-main.o xarchiver-string_utils.o xarchiver-support.o xarchiver-archive.o xarchiver-interface.o xarchiver-callbacks.o xarchiver-arj.o xarchiver-zip.o xarchiver-rar.o xarchiver-7zip.o xarchiver-tar.o xarchiver-bzip2.o xarchiver-gzip.o xarchiver-rpm.o xarchiver-iso.o xarchiver-extract_dialog.o xarchiver-add_dialog.o  -L/opt/Xfce-beta/lib -L/usr/local/lib -L/usr/X11/lib -L/usr/openwin/lib -L/usr/openwin/sfw/lib -L/usr/sfw/lib /opt/Xfce-beta/lib/libgtk-x11-2.0.so /opt/Xfce-beta/lib/libgdk-x11-2.0.so /opt/Xfce-beta/lib/libatk-1.0.so /opt/Xfce-beta/lib/libgdk_pixbuf-2.0.so /opt/Xfce-beta/lib/libpangocairo-1.0.so -L/usr/lib /opt/Xfce-beta/lib/libpangoft2-1.0.so /opt/Xfce-beta/lib/libpango-1.0.so /opt/Xfce-beta/lib/libcairo.so /opt/Xfce-beta/lib/libfontconfig.so /opt/Xfce-beta/lib/libfreetype.so /opt/Xfce-beta/lib/libxml2.so -lpthread /opt/Xfce-beta/lib/libpng12.so -lz -lXrender -lSM -lICE -lX11 -lsocket -lnsl -lm /opt/Xfce-beta/lib/libgobject-2.0.so /opt/Xfce-beta/lib/libgmodule-2.0.so /opt/Xfce-beta/lib/libglib-2.0.so -R/opt/Xfce-beta/lib -R/opt/Xfce-beta/lib
ld: warning: symbol `my_stat' has differing sizes:
        (file xarchiver-main.o value=0x90; file xarchiver-extract_dialog.o value=0x84);
        xarchiver-main.o definition taken
ld: warning: symbol `my_stat' has differing sizes:
        (file xarchiver-main.o value=0x90; file xarchiver-add_dialog.o value=0x84);
        xarchiver-main.o definition taken
Undefined                       first referenced
 symbol                             in file
mkdtemp                             xarchiver-extract_dialog.o
ld: fatal: Symbol referencing errors. No output written to xarchiver
*** Error code 1
dmake: Fatal error: Command failed for target `xarchiver'
Comment 1 Giuseppe Torelli 2006-09-07 07:26:42 CEST
I would include the same patch Benny applied to  Thunar to fix the bug but how to detect if Xarchiver is runnig on Solaris so to include the code otherwise don't ?
Comment 2 Giuseppe Torelli 2006-09-07 07:42:16 CEST
Created attachment 777 
mkdtemp patch on Solaris

Please apply this patch and let me know, thanks.
Comment 3 Anil 2006-09-07 15:13:46 CEST
I think the route Benny had taken is to have configure look for mkdtemp rather than this approach.

I needed to also add #include <errno.h>

That said, I still get the error. I did a make clean followed with make.

Undefined                       first referenced
 symbol                             in file
mkdtemp                             xarchiver-extract_dialog.o
Comment 4 Giuseppe Torelli 2006-09-11 08:20:29 CEST
*** Bug 2286 has been marked as a duplicate of this bug. ***
Comment 5 Giuseppe Torelli 2006-09-11 08:22:14 CEST
I think I fixed it in revision 23126. Can you check and close this bug if it is fixed ?

Thanks,
Giuseppe
Comment 6 Giuseppe Torelli 2006-09-13 11:25:08 CEST
I haven't receiving any news from you so I consider this bug fixed in revision 23126. If it doesn't please reopen it.

Bug #2277

Reported by:
Anil
Reported on: 2006-09-06
Last modified on: 2006-09-13
Duplicates (1):
  • 2286 Xarchiver fails to compile with Sun Studio 11 compilers on Sparc Solaris 10

People

Assignee:
Giuseppe Torelli
CC List:
1 user

Version

Attachments

mkdtemp patch on Solaris (1.63 KB, patch)
2006-09-07 07:42 CEST , Giuseppe Torelli
no flags

Additional information