|
From: Sebastian P. <seb...@pi...> - 2011-10-30 15:49:53
|
On 10/19/2011 06:59 AM, Keith Woelke wrote:
> I had a working Fuse application when using Ubuntu 11.04, and I'm 99.9% sure I've
> installed everything I need after re-installing Ubuntu 11.10, so I'm wondering if
> there is a problem in the Ubuntu 11.10 install or repository.
>
> I installed libfuse-dev and copied the
> /usr/share/doc/libfuse-dev/examples/hello.c file to /tmp and ran the the command
> listed at the top of the file:
>
> gcc -Wall `pkg-config fuse --cflags --libs` hello.c -o hello
>
> and it returns:
>
> /tmp/ccYYt1z4.o: In function `main':
> hello.c:(.text+0x33f): undefined reference to `fuse_main_real'
> collect2: ld returned 1 exit status
>
> Is anyone using Ubuntu 11.10 (64-bit) who can confirm if it does or does not work
> for them, or can anyone tell me how I can figure out the root cause of this
> problem?
Can you share the output of
pkg-config fuse --cflags --libs
i.e. the command embedded in your call to GCC?
For the link error I suspect that
(1) You do not have package libfuse-dev installed (do you?) and
(2) `pkg-config fuse --cflags --libs` evaluates to an empty
string just like
`pkg-config INVALID_WHATEVER --cflags --libs`
does.
Does that help?
Best,
Sebastian
|