Help for compiling Xarchiver svn on freeBSD

Landry Breuil landry.breuil at gmail.com
Sun Jul 6 13:20:56 CEST 2008


On Sun, Jul 6, 2008 at 12:40 PM, Giuseppe Torelli <colossus73 at gmail.com> wrote:
> On Sun, Jul 6, 2008 at 11:22 AM, Jannis Pohlmann <jannis at xfce.org> wrote:
>> Well, maybe ask on a FreeBSD mailinglist?
>
> I asked here because I know some xfce developers
> use FreeBSD... btw I will ask there too.

At least svn compiles on OpenBSD (gcc 3.3.5, gtk 2.12.9) .. but some details :

window.c: In function `xa_handle_selected_rows':
window.c:1457: warning: passing arg 1 of `g_strdup_printf' makes
pointer from integer without a cast
window.c:1494: warning: passing arg 1 of `g_strdup_printf' makes
pointer from integer without a cast

This is a scary warning :)

The detection of xdg-open is still bad in configure.in.in, kill the
AC_CHECK_FILE and use AC_PATH_PROG.

And it badly segfaults when trying to opening an archive (i have gtar
installed and in path btw)


(gdb) r ~/bsdav-1.4.tar.gz
Starting program: /home/landry/src/xarchiver/src/xarchiver ~/bsdav-1.4.tar.gz

(xarchiver:8294): GLib-CRITICAL **: g_shell_parse_argv: assertion
`command_line != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
free_bytes (d=0x24abed60, r=0x8687a000, ptr=0x0) at
/usr/src/lib/libc/stdlib/malloc.c:987
987	/usr/src/lib/libc/stdlib/malloc.c: No such file or directory.
	in /usr/src/lib/libc/stdlib/malloc.c
(gdb) bt
#0  free_bytes (d=0x24abed60, r=0x8687a000, ptr=0x0) at
/usr/src/lib/libc/stdlib/malloc.c:987
#1  0x04af1a9e in ofree (p=0xb) at /usr/src/lib/libc/stdlib/malloc.c:1199
#2  0x04af1b45 in free (ptr=0x4) at /usr/src/lib/libc/stdlib/malloc.c:1217
#3  0x00b17d38 in g_free () from /usr/local/lib/libglib-2.0.so.1600.0
#4  0x00b2d54c in g_strfreev () from /usr/local/lib/libglib-2.0.so.1600.0
#5  0x1c00ae4b in xa_spawn_async_process (archive=0x7f2c6700,
command=0x0) at archive.c:82
#6  0x1c018107 in xa_open_gzip (archive=0x7f2c6700, dummy=0x0) at gzip.c:52
#7  0x1c011133 in xa_open_archive (menuitem=0x0, data=0x87d32d40) at
window.c:367
#8  0x1c008d92 in main (argc=2, argv=0xcfbe20f4) at main.c:247

Dunno how command can be NULL here, gzip.c looks correct.

(gdb) r /usr/ports/distfiles/xfce4/xfce4-diskperf-plugin-2.2.0.tar.bz2
Starting program: /home/landry/src/xarchiver/src/xarchiver
/usr/ports/distfiles/xfce4/xfce4-diskperf-plugin-2.2.0.tar.bz2

(xarchiver:16874): GLib-CRITICAL **: g_shell_parse_argv: assertion
`command_line != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
free_bytes (d=0x2c529d60, r=0x847defd0, ptr=0x0) at
/usr/src/lib/libc/stdlib/malloc.c:987
987	/usr/src/lib/libc/stdlib/malloc.c: No such file or directory.
	in /usr/src/lib/libc/stdlib/malloc.c
(gdb) bt
#0  free_bytes (d=0x2c529d60, r=0x847defd0, ptr=0x0) at
/usr/src/lib/libc/stdlib/malloc.c:987
#1  0x0c55ca9e in ofree (p=0xa) at /usr/src/lib/libc/stdlib/malloc.c:1199
#2  0x0c55ccb7 in orealloc (p=0x7ca47380, newsz=72) at
/usr/src/lib/libc/stdlib/malloc.c:1290
#3  0x0c55ceb1 in realloc (ptr=0x7ca47380, size=72) at
/usr/src/lib/libc/stdlib/malloc.c:1317
#4  0x0f271cd3 in g_realloc () from /usr/local/lib/libglib-2.0.so.1600.0
#5  0x0fd2cd80 in g_cclosure_marshal_STRING__OBJECT_POINTER () from
/usr/local/lib/libgobject-2.0.so.1600.0
#6  0x0fd2c71d in g_cclosure_marshal_STRING__OBJECT_POINTER () from
/usr/local/lib/libgobject-2.0.so.1600.0
#7  0x0fd25eae in g_param_spec_override () from
/usr/local/lib/libgobject-2.0.so.1600.0
#8  0x0fd28ecd in g_signal_connect_data () from
/usr/local/lib/libgobject-2.0.so.1600.0
#9  0x08e7e8db in gtk_tree_view_set_model () from
/usr/local/lib/libgtk-x11-2.0.so.1200.9
#10 0x1c012c7a in xa_create_liststore (archive=0x88063500,
columns_names=0xcfbe3810) at window.c:1133
#11 0x1c017eb3 in xa_open_tar_compressed_file (archive=0x88063500) at
bzip2.c:170
#12 0x1c0179be in xa_open_bzip2_lzma (archive=0x88063500, dummy=0x0)
at bzip2.c:55
#13 0x1c011146 in xa_open_archive (menuitem=0x0, data=0x7ca47900) at
window.c:371
#14 0x1c008d92 in main (argc=2, argv=0xcfbe3a60) at main.c:247

Hope you can fix this, i'm willing to test patches if needed.

Landry



More information about the Xfce4-dev mailing list