You are not logged in.
Whenever I use makepkg, it fails out with these errors:
==> Starting build()...
vdfuse-v82a.c: In function ‘detectDiskType’:
vdfuse-v82a.c:518:7: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
/usr/bin/ld: /tmp/cc0pWkfJ.o: undefined reference to symbol 'VDWrite'
/usr/bin/ld: note: 'VDWrite' is defined in DSO /usr/lib/virtualbox/VBoxDDU.so so try adding it to the linker command line
/usr/lib/virtualbox/VBoxDDU.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
strip: 'vdfuse-v82a': No such file
Compile Failed!
==> Starting package()...
install: cannot stat `vdfuse-v82a': No such file or directory
==> ERROR: A failure occurred in package().Whenever I tried to figure out what's causing it, I found that the work is being done by a shell script called vdbuild_new, which looks like this:
if [ $# -ne 2 ]; then
echo "Usage: $0 include-dir vdfuse.c"
exit 255
fi
if [ -z "${CFLAGS}" ]; then
CFLAGS="-pipe"
fi
incdir="$1"
infile="$2"
outfile="${infile%.c}"
if ! [ -e "${infile}" ]; then
echo "${infile} not found."
exit 1
fi
if [ -z "${INSTALL_DIR}" ]; then
if [ -e "/etc/vbox/vbox.cfg" ]; then
. /etc/vbox/vbox.cfg
elif [ -d "/usr/lib/virtualbox" ]; then
INSTALL_DIR="/usr/lib/virtualbox"
elif [ -z "${INSTALL_DIR}" ]; then
echo "INSTALL_DIR not defined"
exit 1
fi
fi
pkg-config --exists fuse
if [ $? -ne 0 ]; then
echo "FUSE headers not found. Are they installed?"
echo "(Run 'apt-get install libfuse-dev' on Ubuntu / Debian)"
exit 1
fi
if ! [ -e "${incdir}/VBox/vd.h" ]; then
echo "Invalid include directory. Make sure that it has the VBox directory inside."
exit 1
fi
gcc "${infile}" -o "${outfile}" \
`pkg-config --cflags --libs fuse` \
-I"${incdir}" \
-Wl,-rpath,"${INSTALL_DIR}" \
-l:"${INSTALL_DIR}"/VBoxDD.so \
-Wall ${CFLAGS}
if [ -z "${NOSTRIP}" ]; then
strip -sx "${outfile}"
fi
if [ $? -eq 0 ]; then
echo "Success!"
else
echo "Compile Failed!"
fiI'm pretty sure it's something about gcc that's making it flake out, but I don't have any idea. Anyone?
Offline