Hi
I'm trying to compile Squeak 3.10 [1] from source. But I'm getting this error [2]. I have seen a work around to fix it, but I would like (as far as I can) to avoid this approach. Any ideas how to solve that? I didn't see a Squeak dependence list. What are the dependencies for compiling and running squeak ? Thanks in advance [1] http://ftp.squeak.org/current_stable/unix-linux/ [2] /usr/include/stdio.h:397:66: error: macro "dprintf" passed 3 arguments, but takes just 1 /tmp/Squeak-3.10-1/platforms/unix/vm/debug.c: In function ‘__sq_assert’: /tmp/Squeak-3.10-1/platforms/unix/vm/debug.c:21: warning: incompatible implicit declaration of built-in function ‘abort’ -- "A critical section of code is like a bathroom. Only one person is allowed inside at once. Iker Gondra, Operating Systems St. Francis Xavier University, Antigonish, NS" =================== Rodrigo L. M. Flores Computer Science Student - IME - USP Homepage (en): http://www.rodrigoflores.org Blog (pt-BR): http://blog.rodrigoflores.org Linux User # : 351304 Jabber: [hidden email] |
HiDo as follows: cp /usr/include/stdio.h <directory where source is>/platforms/unix/vm/stdio.h Then vi <directory where source is>/platforms/unix/vm/stdio.h and delete dprintf definition... (ugly but works) then vi <directory where source is> /platforms/unix/vm/debug.c and substitute #include <stdio.h> by #include "stdio.h" And you'll compile clean.
signature.asc (268 bytes) Download Attachment |
In reply to this post by Rodrigo Flores-4
On 18.08.2009, at 03:05, Rodrigo Flores wrote: > Hi > > I'm trying to compile Squeak 3.10 [1] from source. But I'm getting > this error [2]. I have seen a work around to fix it, but I would > like (as far as I can) to avoid this approach. Any ideas how to > solve that? Yes, rename our use of dprintf (it was added to the POSIX standard in 2008, alas): http://lists.squeak.org/pipermail/vm-dev/2009-August/002931.html If you can wait a day more or so it should make it into subversion, and shortly after that into a release I guess. Ian's been hacking like mad for the last two days: http://squeakvm.org/svn/squeak/trunk/platforms/unix/ChangeLog > I didn't see a Squeak dependence list. What are the dependencies for > compiling and running squeak ? This is from the Debian package: http://ftp.de.debian.org/debian/pool/main/s/squeak-vm/squeak-vm_3.10.3+svn1902.dfsg-1.dsc Build-Depends: debhelper (>= 4.0.0), dpatch, autotools-dev, libaudio- dev, libxt-dev, libgl1-mesa-dev, libasound2-dev, nas-dev, uuid-dev, libspeex-dev, libxpm-dev, libxtst-dev, libxrender-dev, sharutils, libffi-dev, chrpath, libdbus-1-dev, libgstreamer0.10-dev, libvorbis- dev, libfreetype6-dev, libpango1.0-dev And this from the Fedora package: http://squeak-fedora.googlecode.com/files/squeak-vm.spec BuildRequires: libX11-devel BuildRequires: libXt-devel BuildRequires: libvorbis-devel BuildRequires: libtheora-devel BuildRequires: speex-devel BuildRequires: dbus-devel BuildRequires: alsa-lib-devel BuildRequires: pango-devel BuildRequires: gstreamer-devel BuildRequires: mesa-libGL-devel BuildRequires: libICE-devel BuildRequires: libSM-devel BuildRequires: libXext-devel BuildRequires: e2fsprogs-devel - Bert - |
Free forum by Nabble | Edit this page |