If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Either libmp3 hasn't worked for a while, or it's not actually using jiffies for anything, considering jiffies hasn't actually been counting anything for a long time... I'll have to look at it to fix that.
I built Kos(not Kos-Ports) in an older version(2.0.0) as you had said that jiffies is not used.
Kos-Ports is successfully built.
A changed part of the newest kos caused my build error of Kos-Ports.
Please use this as reference to fix the same kind of error.
As I said, libmp3 is referencing a variable that isn't available anymore. KOS 2.0.0 had jiffies available, but it did absolutely nothing.
EDIT:
As expected, the use of jiffies in that code was completely pointless... It has been removed and the revision has been pushed to the git repository (also the sem_create warning has been fixed as well, but that wasn't actually a "problem" so to speak).
Yes, the URL is correct and it "should" work. Maybe it's something with OS X, but It returns a HTTP header stating error 403 forbidden, do not have permission to access zlib from this server. Preliminary research suggests it has to do with how browsers send user-agent strings or headers but I get garbage when I try to set -A "".
Anyway, my main issue right now is that I can't get dc-load-1.0.4 to compile. For some reason, libbfd and related includes are not being installed in --prefix. If I recall correctly, building binutils used to install them automatically without extra options. I used to compile it easily for whichever unix system I was using. Is there an updated dc-tool? I'll try manually copying it over....
Otherwise, I'm glad to get back to some Dreamcast coding. We''ll see if I can get some actual work released. Good work managing all of it, Bluecrab and team.
I'd recommend grabbing the latest dcload from the Git repository (hosted alongside KOS'). It can be built to use libelf instead of bfd these days (and that's the default, since Binutils doesn't install bfd anymore).
I just tried building zlib through kos-ports on another box (a Raspberry Pi running Debian), and it works fine there too. For good measure, I tried both with curl and wget, and both worked fine. I think the issue is on your end here, unfortunately... Either that, or it was on the end of the zlib folks and they've since fixed it.
Yes. It was on my end. I was trying out MacPostFactor to run Mountain Lion on an older Mac but I switched back to Lion because of some minor performance issues and did not encounter the error. The OS version mismatch is probably the culprit. It would be nice to keep the downloaded sources though...
BlueCrab wrote:If you want to keep the sources after the build, then just do "make install" instead of "make install clean".
Or, you can always re-fetch/unpack/patch them with "make fetch unpack copy-kos-files".
You're posting a lot of undocumented make commands lately. How about writing a wiki article?
The only one of those that is "undocumented" is the copy-kos-files (and that's because it generally shouldn't be used). The other two are in the kos-ports README.
I must compliment you on a well-structured and modular build system. The only obstacle to using the make commands is that the build-all.sh is so much more convenient Unfortunately, it does make clean. I've modified mine to just pass the first parameter to the makefiles. (build-all.sh [ fetch, install, clean-dist, clean-build, clean... ].
#! /bin/sh
for _dir in ${KOS_PORTS}/* ; do
if [ -d "${_dir}" ] ; then
if [ -f "${_dir}/Makefile" ] ; then
echo "Checking if ${_dir} is installed and up-to-date..."
${KOS_MAKE} -C "${_dir}" version-check > /dev/null 2>&1
rv=$?
if [ "$rv" -eq 0 ] ; then
echo "Building ${_dir}... $1"
${KOS_MAKE} -C "${_dir}" $1
rv=$?
echo $rv
if [ "$rv" -ne 0 ] ; then
echo "Error building ${_dir}. Bailing out."
exit 1
fi
else
echo "${_dir} is already installed and up-to-date. Skipping."
fi
fi
fi
done