Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not build - "cannot find -l:/usr/lib/virtualbox/VBoxDDU.so" #5

Open
velle opened this issue Mar 13, 2017 · 0 comments
Open

Can not build - "cannot find -l:/usr/lib/virtualbox/VBoxDDU.so" #5

velle opened this issue Mar 13, 2017 · 0 comments

Comments

@velle
Copy link

velle commented Mar 13, 2017

When running vdbuild_new with correct arguments, I get:

/usr/bin/ld: cannot find -l:/usr/lib/virtualbox/VBoxDDU.so
collect2: error: ld returned 1 exit status
strip: 'vdfuse': No such file
Compile Failed!

If removing the "-l:" part, from the vdbuild_new script, it will work. Thus I changed the vdbuild_script as described below:

BEFORE

gcc "${infile}" -o "${outfile}" \
	`pkg-config --cflags --libs fuse` \
	-I"${incdir}" \
	-Wl,-rpath,"${INSTALL_DIR}" \
	-l:"${INSTALL_DIR}"/VBoxDDU.so \
	-Wall ${CFLAGS}

AFTER FIX

gcc "${infile}" -o "${outfile}" \
	`pkg-config --cflags --libs fuse` \
	-I"${incdir}" \
	-Wl,-rpath,"${INSTALL_DIR}" \
	"${INSTALL_DIR}"/VBoxDDU.so \
	-Wall ${CFLAGS}

I admit, that I don't know if the -l was supposed to make a difference, but I know that it builds correctly without.

I'm on Ubuntu 16.10 using gcc (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant