$this->bbcode_second_pass_quote('dan64', 'c')ould you post the output of: cat /etc/pacman.d/mirrorlist
P.S.
Using makepkg you should see something like this:
$this->bbcode_second_pass_code('', '
[root@Arch86 dd]# makepkg --asroot
==> Determining latest svn revision...
-> Version found: 1047
==> Making package: downloaddaemon 1047-1 (Wed Feb 16 22:02:58 UTC 2011)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Starting build()...
A dd/INSTALLING
A dd/AUTHORS
A dd/TODO
A dd/doc
A dd/src/CMakeLists.txt
A dd/CHANGES
A dd/etc
A dd/etc/init.d
A dd/etc/init.d/downloadd
A dd/etc/downloaddaemon
A dd/etc/downloaddaemon/downloaddaemon.conf
A dd/etc/downloaddaemon/routerinfo.conf
A dd/etc/downloaddaemon/premium_accounts.conf
A dd/DEVELOPING
A dd/CMakeLists.txt
U dd
Checked out revision 1049.
==> SVN checkout done or server timeout
==> Starting make: ddconsole...
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /root/develop/dd/src/dd/src/ddconsole
==> Starting make: daemon...
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test HAVE_STD_CXX0X
-- Performing Test HAVE_STD_CXX0X - Success
-- Looking for C++ include thread
-- Looking for C++ include thread - found
-- Performing Test HAVE_UINT64_T
-- Performing Test HAVE_UINT64_T - Success
-- Looking for popen
-- Looking for popen - found
-- Found CURL: /usr/lib/libcurl.so
-- Looking for C++ include syslog.h
-- Looking for C++ include syslog.h - found
-- Found Subversion: /usr/bin/svn (found version "1.6.15")
-- Looking for initgroups
-- Looking for initgroups - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Looking for stat64
-- Looking for stat64 - found
-- Configuring done
-- Generating done
-- Build files have been written to: /root/develop/dd/src/dd/src/daemon
==> Starting package()...
==> Build: ddconsole...
Scanning dependencies of target ddconsole
[ 33%] Building CXX object CMakeFiles/ddconsole.dir/ddconsole.cpp.o
[ 66%] Building CXX object CMakeFiles/ddconsole.dir/root/develop/dd/src/dd/src/include/netpptk/netpptk.cpp.o
[100%] Building CXX object CMakeFiles/ddconsole.dir/root/develop/dd/src/dd/src/include/crypt/md5.cpp.o
Linking CXX executable ddconsole
[100%] Built target ddconsole
Install the project...
-- Install configuration: ""
-- Installing: /root/develop/dd/pkg/usr/bin/ddconsole
==> Build: daemon...
Scanning dependencies of target DownloadDaemon
[ 3%] Building CXX object CMakeFiles/DownloadDaemon.dir/downloaddaemon.cpp.o
[ 6%] Building CXX object CMakeFiles/DownloadDaemon.dir/tools/helperfunctions.cpp.o
[ 9%] Building CXX object CMakeFiles/DownloadDaemon.dir/tools/curl_callbacks.cpp.o
[ 12%] Building CXX object CMakeFiles/DownloadDaemon.dir/mgmt/global_management.cpp.o
[ 15%] Building CXX object CMakeFiles/DownloadDaemon.dir/mgmt/mgmt_thread.cpp.o
[ 18%] Building CXX object CMakeFiles/DownloadDaemon.dir/mgmt/connection_manager.cpp.o
[ 21%] Building CXX object CMakeFiles/DownloadDaemon.dir/dl/download.cpp.o
[ 24%] Building CXX object CMakeFiles/DownloadDaemon.dir/dl/recursive_parser.cpp.o
[ 27%] Building CXX object CMakeFiles/DownloadDaemon.dir/root/develop/dd/src/dd/src/include/netpptk/netpptk.cpp.o
[ 30%] Building CXX object CMakeFiles/DownloadDaemon.dir/root/develop/dd/src/dd/src/include/cfgfile/cfgfile.cpp.o
[ 33%] Building CXX object CMakeFiles/DownloadDaemon.dir/dl/download_container.cpp.o
[ 36%] Building CXX object CMakeFiles/DownloadDaemon.dir/dl/package_container.cpp.o
[100%] Building CXX object plugins/CMakeFiles/youtube.com.dir/youtube_com.cpp.o
Linking CXX shared module libyoutube.com.so
[100%] Built target youtube.com
Install the project...
==> Tidying install...
-> Purging other files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Finished making: downloaddaemon 1047-1 (Wed Feb 16 22:16:41 UTC 2011)
')