<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Ok.<br>
<br>
No problem migrated to:<br>
<br>
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<br>
/home/casimiro/Softwares/squeak/squeak-svn-source/platforms/unix/vm-display-fbdev/sqUnixFBDev.c:71:
error: conflicting types for 'dprintf'<br>
/usr/include/stdio.h:399: note: previous declaration of 'dprintf' was
here<br>
make[1]: ** [sqUnixFBDev.lo] Erro 1<br>
make: ** [vm-display-fbdev.la] Erro 2<br>
<br>
<br>
Looking at source... we have this !!!<br>
<br>
#if !defined(DEBUG)<br>
# define DEBUG 0<br>
#endif<br>
<br>
<br>
static void dprintf(const char *fmt, ...)<br>
{<br>
#if (DEBUG)<br>
va_list ap;<br>
va_start(ap, fmt);<br>
vprintf(fmt, ap);<br>
va_end(ap);<br>
#endif<br>
}<br>
<br>
So, debug.h is not included and dprintf is redefined...<br>
Let's see what can be done...<br>
<br>
-------- Mensagem original --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Assunto: </th>
<td>Re: Problems building squeak VM (Fedora core 11)</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Data: </th>
<td>Wed, 24 Jun 2009 12:48:47 -0300</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">De: </th>
<td>Casimiro de Almeida Barreto <></td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Para: </th>
<td>The general-purpose Squeak developers list <></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>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
</pre>
</body>
</html>