pkg-config operates correct here. And fuse pkg-config (.pc) files are
also correct. The makefile is broken and bad =) either use it as a bad
example, and write better ones in your own projects (or e.g. use modern
cmake / automake from scratch instead of hand writting bad makefiles).
If you wish to
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: pkg-config (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/878612
Title:
LDFLAGS is the variable for the linker flags.
Linker libs such as -lfuse should be put in the LDLIBS variable, not in LDFLAGS.
To solve the problem and simplify the Makefile at the same time:
In the Makefile, the LDFLAGS definition should be replaced with LDLIBS:
LDLIBS := $(shell pkg-config fus
** Also affects: pkg-config (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/878612
Title:
Linker fails when compiling fuse files with "undefined re
I corrected the Makefile by reordering LDFLAGS similarly to how Flávio
Martins (xhaker) suggested, fixed installation of fioc.h header which
was needed to build all the examples (including cusexmp, fioc,
fioclient, fsel, fselclient) and uploaded the package to my PPA (at the
time of writing, pendin
I think I have found what is causing this issue.
It seems to be something wrong with pkg-config, when used inside of the `` chars
When running `pkg-config fuse --cflags --libs` it returns
-D_FILE_OFFSET_BITS=64: command not found
Without the `` chars it returns
-D_FILE_OFFSET_BITS=64 -I/usr/inclu
2011/12/1 Flávio Martins :
> This should work:
>
> gcc -Wall -o hello hello.c `pkg-config fuse --cflags --libs`
So what changed such that the libfuse-dev example Makefile has stopped
working correctly?
--
Jeremy Nickurak -= Email/XMPP: -= jer...@nickurak.ca =-
--
You received this bug notific
This should work:
gcc -Wall -o hello hello.c `pkg-config fuse --cflags --libs`
The order of sources and libraries matters.
If you want to know more, you can read
http://webpages.charter.net/ppluzhnikov/linker.html
--
You received this bug notification because you are a member of Ubuntu
Bugs,
Any workaround?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/878612
Title:
Linker fails when compiling fuse files with "undefined reference to
`fuse_main_real'
To manage notifications about this
This bug only appears when using "fuse_main" macro.
When underlying functions (fuse_new, fuse_mount, ...) are directly called, the
problem doesn't appear.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: fuse (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/878612
Title:
Linker
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/878612
Title:
Linker fails when compiling fuse files with "undefined reference to
`fuse_main_real'
To manage notifications about this bug go to:
https
12 matches
Mail list logo