[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unlink/rpl_unlink problem with MSVC (MacOS X too?)
From: |
Ben Abbott |
Subject: |
Re: unlink/rpl_unlink problem with MSVC (MacOS X too?) |
Date: |
Sun, 24 Jan 2010 11:50:57 -0500 |
On Jan 24, 2010, at 10:30 AM, Michael Goffioul wrote:
> I found yet another gnulib replacement problem with MSVC.
> This time with unlink. In liboctave, file_ops::unlink is correctly
> defined and exported, the problem is when linking liboctinterp:
> I get 2 undefined references to file_ops::rpl_unlink and Funlink.
> Indeed when I check the symbols in syscalls.o, I see
> Frpl_unlink instead of Funlink.
>
> Examining where it comes from, it looks to come from the
> gnulib version of unistd.h.
>
> Michael.
Michael,
I've also encountered problems with unlink, but on MacOS 10.6.2. However, I
don't see the problem until I run octave and try a plot using the gnuplot
backend.
octave:1> plot(1:10)
error: `unlink' undefined near line 156 column 7
error: called from:
error:
/Users/bpabbott/Development/mercurial/local_clone/scripts/plot/__gnuplot_get_var__.m
at line 156, column 7
error:
/Users/bpabbott/Development/mercurial/local_clone/scripts/plot/__go_draw_axes__.m
at line 39, column 18
error:
/Users/bpabbott/Development/mercurial/local_clone/scripts/plot/__go_draw_figure__.m
at line 112, column 29
error:
/Users/bpabbott/Development/mercurial/local_clone/scripts/plot/gnuplot_drawnow.m
at line 99, column 5
Looking at liboctinterp.dylib ...
$ nm src/.libs/liboctinterp.dylib | grep unlink
0032b220 T __Z11Frpl_unlinkRK17octave_value_listi
0028971b t __ZL14unlink_cleanupPKc
U __ZN8file_ops10rpl_unlinkERKSsRSs
008590d8 T _rpl_unlink
U _unlink
... and at syscall.o ...
$ nm src/.libs/liboctinterp_la-syscalls.o | grep unlink
00001a9b T __Z11Frpl_unlinkRK17octave_value_listi
00111520 S __Z11Frpl_unlinkRK17octave_value_listi.eh
U __ZN8file_ops10rpl_unlinkERKSsRSs
Do I infer correctly that I'm seeing the same problem?
Ben