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:
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
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
** 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
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,
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
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,
2011/12/1 Flávio Martins xha...@gmail.com:
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
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
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
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.
--
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:
12 matches
Mail list logo