[squeak-dev] [Fwd: Re: Problems building squeak VM (Fedora core 11)]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] [Fwd: Re: Problems building squeak VM (Fedora core 11)]

CdAB63
Ok.

No problem migrated to:

gcc -g -O2 -fomit-frame-pointer -DLSB_FIRST=1 -g -O2 -fomit-frame-pointer -DLSB_FIRST=1 -Wall -Werror -DHAVE_CONFIG_H -I/home/casimiro/Softwares/squeak/squeak-svn-source/bld -I/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/unix/vm -I/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/Cross/vm -I/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/unix/src/vm -I/home/casimiro/Softwares/squeak/squeak-svn-source/bld -I/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/unix/vm -I/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/Cross/vm -I/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/unix/src/vm -I/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/Cross/plugins/FilePlugin -I/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/Cross/plugins/B3DAcceleratorPlugin -I/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/unix/plugins/B3DAcceleratorPlugin -c /home/casimiro/Softwares/squeak/squeak-svn-source/platforms/unix/vm-display-fbdev/sqUnixFBDev.c  -fPIC -DPIC -DPIC -o sqUnixFBDev.o
/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/unix/vm-display-fbdev/sqUnixFBDev.c:71: error: conflicting types for 'dprintf'
/usr/include/stdio.h:399: note: previous declaration of 'dprintf' was here
make[1]: ** [sqUnixFBDev.lo] Erro 1
make: ** [vm-display-fbdev.la] Erro 2


Looking at source... we have this !!!

#if !defined(DEBUG)
# define DEBUG  0
#endif


static void dprintf(const char *fmt, ...)
{
#if (DEBUG)
  va_list ap;
  va_start(ap, fmt);
  vprintf(fmt, ap);
  va_end(ap);
#endif
}

So, debug.h is not included and dprintf is redefined...
Let's see what can be done...

-------- Mensagem original --------
Assunto: Re: Problems building squeak VM (Fedora core 11)
Data: Wed, 24 Jun 2009 12:48:47 -0300
De: Casimiro de Almeida Barreto <>
Para: The general-purpose Squeak developers list <>


Hello,

First part of problem solved by changing order of includes as follows:

In file debug.c

#include<stdio.h>
#include<stdarg.h>
#include<string.h>
#include<stdlib.h>
#include "debug.h"
(debug.h comes after stdio.h)

But then there are other problems ahead