Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

unable to compile

4 views
Skip to first unread message

CrashedAgain

unread,
May 1, 2006, 12:00:23 AM5/1/06
to
I am still trying to run Turbocad Le under wine (see earlier post
http://groups.google.ca/group/comp.emulators.ms-windows.wine/browse_thread/thread/2abfa5ba1de237d3/05ad0098dae2ca05?q=crashedagain&rnum=8#05ad0098dae2ca05)

I have discovered it will run under version 20040121 or older but has
errors with later versions.
20040121 .deb package must be forced installed because of a libc6
version conflict so I am attempting to recompile hoping this will fix
the problem.

"make install" fails with the following message:

gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+
-Wpointer-arith -g -O2 -o newstruc.o newstruc.c
newstruc.c: In function 'handle_ani_list':
newstruc.c:764: error: invalid lvalue in increment
newstruc.c: In function 'new_ani_curico':
newstruc.c:875: error: invalid lvalue in increment
make[2]: *** [newstruc.o] Error 1
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools/wrc'
make[1]: *** [wrc] Error 2
make[1]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools'
make: *** [tools] Error 2
desktop:/home/crashedagain/compile/wine-20040121#

The relevant sections of newstruc.c are:

"static void handle_ani_list(riff_tag_t *lst, enum res_e type, int
isswapped)
{
riff_tag_t *rtp = lst+1; /* Skip the "LIST" tag */

while((char *)rtp < (char *)lst + lst->size + sizeof(*lst))
{
if(!memcmp(rtp->tag, info, sizeof(info)))
{
rtp = (riff_tag_t *)(((char *)rtp) + 4);
}
else if(!memcmp(rtp->tag, inam, sizeof(inam)))
{
/* Ignore the icon/cursor name; its a string */
rtp = NEXT_TAG(rtp);
}
else if(!memcmp(rtp->tag, iart, sizeof(iart)))
{
/* Ignore the author's name; its a string */
rtp = NEXT_TAG(rtp);
}
else if(!memcmp(rtp->tag, fram, sizeof(fram)))
{
/* This should be followed by "icon"s, but we
* simply ignore this because it is pure
* non-information.
*/
rtp = (riff_tag_t *)(((char *)rtp) + 4);
}
else if(!memcmp(rtp->tag, icon, sizeof(icon)))
{
handle_ani_icon(rtp, type, isswapped);
rtp = NEXT_TAG(rtp);
}
else
internal_error(__FILE__, __LINE__, "Unknown tag \"%c%c%c%c\" in RIFF
file",
isprint(rtp->tag[0]) ? rtp->tag[0] : '.',
isprint(rtp->tag[1]) ? rtp->tag[1] : '.',
isprint(rtp->tag[2]) ? rtp->tag[2] : '.',
isprint(rtp->tag[3]) ? rtp->tag[3] : '.');

/* FIXME: This relies in sizeof(DWORD) == sizeof(pointer_type) */
if((DWORD)rtp & 1)
((char *)rtp)++;
}
}

line 764 is the "FIXME" line near the end.
line 875 is similar.

anyone know how to fix this?

Daniel Skorka

unread,
May 1, 2006, 6:08:00 AM5/1/06
to
CrashedAgain <tedh...@sasktel.net> wrote:
> I have discovered it will run under version 20040121 or older but has
> errors with later versions.

Cool. You found a regression. Assuming you can get around your problem
below, you can follow this [1] to find out which patch exactly caused
the failure.

> "make install" fails with the following message:

I assume you did "./configure; make install"?

> gcc -c -I. -I. -I../../include -I../../include
> -DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
> -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+
> -Wpointer-arith -g -O2 -o newstruc.o newstruc.c
> newstruc.c: In function 'handle_ani_list':
> newstruc.c:764: error: invalid lvalue in increment
> newstruc.c: In function 'new_ani_curico':
> newstruc.c:875: error: invalid lvalue in increment

Hmmph. It kinda seems like code from 2004 won't compile anymore. If this
were true, it would really suck. What version of gcc are you using?

> make[2]: *** [newstruc.o] Error 1
> make[2]: Leaving directory
> `/home/crashedagain/compile/wine-20040121/tools/wrc'
> make[1]: *** [wrc] Error 2
> make[1]: Leaving directory
> `/home/crashedagain/compile/wine-20040121/tools'
> make: *** [tools] Error 2
> desktop:/home/crashedagain/compile/wine-20040121#

The problem appears to be confined to a rather unimportant tool. You can
try to give the option "-k" to make and see how far you get along.

> line 764 is the "FIXME" line near the end.
> line 875 is similar.

Sometimes #define's and #include's throw the line count of track. The
actual problem propably is a few lines before that.

Daniel

[1] http://winehq.org/site/docs/winedev-guide/x1344

CrashedAgain

unread,
May 1, 2006, 11:04:22 AM5/1/06
to
yes, I did ./configure, make depends && make before doing make install.

gcc is 4.0.4 20060422 from Debian unstable. I actually set up a
complete new system to track this problem down...initially I discovered
turbocad would run on these oly versions by usingold knoppix disks so I
made a new partition & did a debian sarge netinstall to have a system I
could wreck if it came to that.

make -k gives the following:

desktop:/home/crashedagain/compile/wine-20040121# make -k
make[1]: Entering directory
`/home/crashedagain/compile/wine-20040121/libs'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/libs/port'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/libs/port'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/libs/unicode'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/libs/unicode'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/libs/uuid'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/libs/uuid'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/libs/wine'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/libs/wine'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/libs/wpp'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/libs/wpp'
make[1]: Leaving directory
`/home/crashedagain/compile/wine-20040121/libs'
make[1]: Entering directory
`/home/crashedagain/compile/wine-20040121/tools'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/tools/widl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools/widl'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/tools/winebuild'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools/winebuild'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/tools/winedump'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools/winedump'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/tools/winegcc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools/winegcc'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/tools/wmc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools/wmc'
make[2]: Entering directory
`/home/crashedagain/compile/wine-20040121/tools/wrc'


gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+
-Wpointer-arith -g -O2 -o newstruc.o newstruc.c
newstruc.c: In function 'handle_ani_list':
newstruc.c:764: error: invalid lvalue in increment
newstruc.c: In function 'new_ani_curico':
newstruc.c:875: error: invalid lvalue in increment

make[2]: *** [newstruc.o] Error 1

gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+

-Wpointer-arith -g -O2 -o readres.o readres.c
readres.c: In function 'read_res32':
readres.c:236: warning: pointer targets in assignment differ in
signedness
readres.c:270: warning: pointer targets in assignment differ in
signedness


gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+

-Wpointer-arith -g -O2 -o translation.o translation.c


gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+

-Wpointer-arith -g -O2 -o utils.o utils.c


gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+

-Wpointer-arith -g -O2 -o wrc.o wrc.c


gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+

-Wpointer-arith -g -O2 -o writeres.o writeres.c
bison -y -d -t ./parser.y
conflicts: 5 shift/reduce


gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+

-Wpointer-arith -g -O2 -o y.tab.o y.tab.c
flex -Cf -d -8 ./parser.l


gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+

-Wpointer-arith -g -O2 -o lex.yy.o lex.yy.c
lex.yy.c:9175: error: syntax error before numeric constant
lex.yy.c: In function 'yy_scan_string':
lex.yy.c:9176: error: number of arguments doesn't match prototype
lex.yy.c:367: error: prototype declaration
lex.yy.c:9178: warning: passing argument 1 of 'strlen' makes pointer
from integer without a cast
lex.yy.c:9178: warning: passing argument 1 of 'yy_scan_bytes' makes
pointer from integer without a cast
make[2]: *** [lex.yy.o] Error 1
make[2]: Target `all' not remade because of errors.


make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools/wrc'
make[1]: *** [wrc] Error 2

make[1]: Target `all' not remade because of errors.


make[1]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools'
make: *** [tools] Error 2

make[1]: Entering directory
`/home/crashedagain/compile/wine-20040121/documentation'
sed -e 's,@bindir\@,/usr/local/bin,g' -e
's,@dlldir\@,/usr/local/lib/wine,g' -e 's,@PACKAGE_STRING\@,Wine
20040121,g' ./wine.man.in >wine.man || (rm -f wine.man && false)
make[1]: Leaving directory
`/home/crashedagain/compile/wine-20040121/documentation'
make[1]: Entering directory
`/home/crashedagain/compile/wine-20040121/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/crashedagain/compile/wine-20040121/include'
make: Target `all' not remade because of errors.
desktop:/home/crashedagain/compile/wine-20040121#

will try following the regression. There are actually two different
errors..20040505 fails to display the drawing sheet, this error
continues up to whatever version is in debian stable, then the 0.9
series displays the drawing sheet dimensioning and all numbers display
incorrectly & the program will not communicate with any of the the edit
sub menues.

Thanks

Daniel Skorka

unread,
May 1, 2006, 12:33:30 PM5/1/06
to
CrashedAgain <tedh...@sasktel.net> wrote:
> yes, I did ./configure, make depends && make before doing make install.

It seems strange that 'make install' will compile something after you
already did 'make'. I assume 'make depends' is just a typo?

> gcc is 4.0.4 20060422 from Debian unstable. I actually set up a
> complete new system to track this problem down...initially I discovered
> turbocad would run on these oly versions by usingold knoppix disks so I
> made a new partition & did a debian sarge netinstall to have a system I
> could wreck if it came to that.

So what now? Are you using gcc 4.0.4 on Debian unstable or gcc 3.3.5 on
sarge? I higly recommend the latter.

Huh. It just gets worse. Anybody have an idea why this one won't
compile?

> make: Target `all' not remade because of errors.
> desktop:/home/crashedagain/compile/wine-20040121#

Try running wine, maybe it'll work anyway.

Daniel

CrashedAgain

unread,
May 1, 2006, 9:07:25 PM5/1/06
to
the "make depends && make command" came from the readme file in the
wine folder.
I was using gcc 4.0.4 (unstable) on Sarge. Debian netinstall gives a
sarge system but I wanted updated konqueror so I ended up with a mixed
system.
I removed this & installed gcc 3.3.5 from stable & tried again, this
time I got slightly different errors:

...
make[2]: Entering directory


`/home/crashedagain/compile/wine-20040121/tools/wrc'
gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+
-Wpointer-arith -g -O2 -o newstruc.o newstruc.c
newstruc.c: In function `handle_ani_list':

newstruc.c:764: warning: use of cast expressions as lvalues is
deprecated
newstruc.c: In function `new_ani_curico':
newstruc.c:875: warning: use of cast expressions as lvalues is
deprecated


gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+
-Wpointer-arith -g -O2 -o lex.yy.o lex.yy.c
lex.yy.c:9175: error: syntax error before numeric constant
lex.yy.c: In function `yy_scan_string':
lex.yy.c:9176: error: number of arguments doesn't match prototype
lex.yy.c:367: error: prototype declaration

lex.yy.c:9178: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
lex.yy.c:9178: warning: passing arg 1 of `yy_scan_bytes' makes pointer


from integer without a cast

./parser.l: At top level:
lex.yy.c:8688: warning: `yyunput' defined but not used
lex.yy.c:9267: warning: `yy_top_state' defined but not used


make[2]: *** [lex.yy.o] Error 1

make[2]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools/wrc'
make[1]: *** [wrc] Error 2

make[1]: Leaving directory
`/home/crashedagain/compile/wine-20040121/tools'
make: *** [tools] Error 2

desktop:/home/crashedagain/compile/wine-20040121#

but the end result is still no joy.

at this point,wine does not run. make install is supposed to install it
(I think) so it does not get installed. "./wine " run from the compile
directory results in "could not locate Wine source tree" error. I'm
afraid I'm not very experienced at compliling having done most of my
system maintenance with .deb packages.

I am also using the 2.6 kernel (Sarge comes with 2.4.26), one of the
things I wanted to check was if the turbocad failure was due to the 2.6
kernel. I seemed like that might be the case from the Knoppix disks,
Knoppix 3.4 came with both the 2.4 & the 2.6 kernel & turbocad would
run with the 2.4 but not the 2.6. Knoppix 3.4 implementation of the 2.6
kernel was know to be buggy so I thought this might be it. It wasn't,
turbocad run just the same with either kernel on my experimental
system.

Will switch to the 2.4 kernel & attempt to compile again.

I obtained the wine tarball from
http://ftp.citkit.ru/pub/sourceforge/w/wi/wine/, I will also try to
find a different source,it might be a buggy tarball.

KGJ

unread,
May 2, 2006, 5:29:00 AM5/2/06
to wine-...@winehq.org
hi,

CrashedAgain wrote:
> the "make depends && make command" came from the readme file in the
> wine folder.
> I was using gcc 4.0.4 (unstable) on Sarge. Debian netinstall gives a
> sarge system but I wanted updated konqueror so I ended up with a mixed
> system.
>

Do you really install unstable packages with all their dependencies? If
yes, this site might be worth a look: http://backports.org/

Is there a reason for you to not use the official wine CVS? The snapshot
you want to compile is very old (2004<->2006). Wine became much better
in these years and I thought I read in another thread that someone
failed to compile an old wine, too. I would recommend to use the winehq
CVS: http://winehq.org/site/cvs
If CVS is not installed on your machine you have to do "apt-get install
cvs" first. The instructions on this site gives you the latest wine but
I think there is also a CVS option (-D) to checkout a specified date. I
never used it but "man cvs" is your friend ;)
Besides I don't think that another kernel will help you to compile. But
it might be possible that the program works under one kernel and not
under another...


Greetings KGJ

CrashedAgain

unread,
May 2, 2006, 8:31:00 AM5/2/06
to
didn't use the official cvs because I didn'tknow about it. I'm not very
experienced at this!
I 'assume' apt took care of all dependencies for upgrading to unstable.
I don't think this is a problem; I have always run mixed systems OK.
The wine 20040121 was installed on this system from and old Ubuntu
package. dpkg complained about a version conflict (libc6 was newer
(3.somthing instaed of 2.2.90)) & libwine had to be installed with dpkg
--force-conflict option but once install edit worked ok. apt wouldn't
work any more though..it detected the conflict & wouldn't proceed until
it was corrected. I don't think there is any way to install two
versions of wine on a system using .deb packages.

CrashedAgain

unread,
May 2, 2006, 9:37:05 AM5/2/06
to
Perhaps there is something wrong with my system???

I just tried to compile wine 0.9.12 & ended up with a bunch of errors
in the 'make depend && make". Here is the tail end of the output:

bitblt.c:1276: warning: type defaults to `int' in declaration of
`wine_dbg_log'
bitblt.c:1276: warning: data definition has no type or storage class
bitblt.c:1283: error: redefinition of `__dbcl'
bitblt.c:1276: error: `__dbcl' previously defined here
bitblt.c:1283: error: syntax error before string constant
bitblt.c:1283: warning: type defaults to `int' in declaration of
`wine_dbg_log'
bitblt.c:1283: warning: data definition has no type or storage class
bitblt.c:1295: error: redefinition of `__dbcl'
bitblt.c:1283: error: `__dbcl' previously defined here
bitblt.c:1295: error: syntax error before string constant
bitblt.c:1295: warning: type defaults to `int' in declaration of
`wine_dbg_log'
bitblt.c:1295: warning: data definition has no type or storage class
bitblt.c:1300: warning: type defaults to `int' in declaration of
`width'
bitblt.c:1300: error: `width' used prior to declaration
bitblt.c:1300: error: `visRectDst' undeclared here (not in a function)
bitblt.c:1300: error: `visRectDst' undeclared here (not in a function)
bitblt.c:1300: warning: data definition has no type or storage class
bitblt.c:1301: warning: type defaults to `int' in declaration of
`height'
bitblt.c:1301: error: `visRectDst' undeclared here (not in a function)
bitblt.c:1301: error: `visRectDst' undeclared here (not in a function)
bitblt.c:1301: warning: data definition has no type or storage class
bitblt.c:1303: error: syntax error before "if"
bitblt.c:1312: error: syntax error before '->' token
bitblt.c:1312: warning: type defaults to `int' in declaration of
`XSetForeground'
bitblt.c:1312: warning: data definition has no type or storage class
bitblt.c:1313: error: syntax error before '->' token
bitblt.c:1313: warning: type defaults to `int' in declaration of
`XSetFillStyle'
bitblt.c:1313: warning: data definition has no type or storage class
bitblt.c:1315: error: syntax error before '->' token
bitblt.c:1318: warning: type defaults to `int' in declaration of
`XFillRectangle'
bitblt.c:1318: warning: data definition has no type or storage class
bitblt.c:1319: warning: type defaults to `int' in declaration of
`wine_tsx11_unlock'
bitblt.c:1319: error: conflicting types for `wine_tsx11_unlock'
x11drv.h:73: error: previous declaration of `wine_tsx11_unlock'
bitblt.c:1319: warning: data definition has no type or storage class
bitblt.c:1320: error: syntax error before "return"
bitblt.c:1324: error: syntax error before '->' token
bitblt.c:1324: warning: type defaults to `int' in declaration of
`XSetFunction'
bitblt.c:1324: warning: data definition has no type or storage class
bitblt.c:1335: error: syntax error before '->' token
bitblt.c:1335: warning: type defaults to `int' in declaration of
`XSetFunction'
bitblt.c:1335: warning: data definition has no type or storage class
bitblt.c:1336: error: syntax error before '->' token
bitblt.c:1336: warning: type defaults to `int' in declaration of
`XSetForeground'
bitblt.c:1336: warning: data definition has no type or storage class
bitblt.c:1337: error: syntax error before '->' token
bitblt.c:1337: warning: type defaults to `int' in declaration of
`XSetFillStyle'
bitblt.c:1337: warning: data definition has no type or storage class
bitblt.c:1339: error: syntax error before '->' token
bitblt.c:1342: warning: type defaults to `int' in declaration of
`XFillRectangle'
bitblt.c:1342: warning: data definition has no type or storage class
bitblt.c:1343: warning: type defaults to `int' in declaration of
`wine_tsx11_unlock'
bitblt.c:1343: warning: data definition has no type or storage class
bitblt.c:1344: error: syntax error before "return"
bitblt.c:1350: error: syntax error before '->' token
bitblt.c:1350: warning: type defaults to `int' in declaration of
`XSetFunction'
bitblt.c:1350: warning: data definition has no type or storage class
bitblt.c:1351: error: syntax error before '->' token
bitblt.c:1354: warning: type defaults to `int' in declaration of
`XFillRectangle'
bitblt.c:1354: warning: data definition has no type or storage class
bitblt.c:1355: warning: type defaults to `int' in declaration of
`wine_tsx11_unlock'
bitblt.c:1355: warning: data definition has no type or storage class
bitblt.c:1356: error: syntax error before '}' token
bitblt.c:1363: error: syntax error before '->' token
bitblt.c:1363: warning: type defaults to `int' in declaration of
`XSetFunction'
bitblt.c:1363: warning: data definition has no type or storage class
bitblt.c:1364: error: syntax error before '->' token
bitblt.c:1367: warning: type defaults to `int' in declaration of
`XFillRectangle'
bitblt.c:1367: warning: data definition has no type or storage class
bitblt.c:1368: warning: type defaults to `int' in declaration of
`wine_tsx11_unlock'
bitblt.c:1368: warning: data definition has no type or storage class
bitblt.c:1369: error: syntax error before '}' token
bitblt.c:1376: error: syntax error before '->' token
bitblt.c:1376: warning: type defaults to `int' in declaration of
`XSetFunction'
bitblt.c:1376: warning: data definition has no type or storage class
bitblt.c:1377: error: syntax error before '->' token
bitblt.c:1383: warning: type defaults to `int' in declaration of
`XCopyArea'
bitblt.c:1383: warning: data definition has no type or storage class
bitblt.c:1384: error: syntax error before '->' token
bitblt.c:1385: warning: type defaults to `int' in declaration of
`wine_tsx11_unlock'
bitblt.c:1385: warning: data definition has no type or storage class
bitblt.c:1386: error: syntax error before "return"
bitblt.c:1392: error: syntax error before '&' token
bitblt.c:1392: warning: type defaults to `int' in declaration of
`get_colors'
bitblt.c:1392: error: conflicting types for `get_colors'
bitblt.c:539: error: previous declaration of `get_colors'
bitblt.c:1392: warning: data definition has no type or storage class
bitblt.c:1393: warning: type defaults to `int' in declaration of
`wine_tsx11_lock'
bitblt.c:1393: error: conflicting types for `wine_tsx11_lock'
x11drv.h:72: error: previous declaration of `wine_tsx11_lock'
bitblt.c:1393: warning: data definition has no type or storage class
bitblt.c:1395: error: syntax error before '->' token
bitblt.c:1395: warning: type defaults to `int' in declaration of
`XSetBackground'
bitblt.c:1395: warning: data definition has no type or storage class
bitblt.c:1396: error: syntax error before '->' token
bitblt.c:1396: warning: type defaults to `int' in declaration of
`XSetForeground'
bitblt.c:1396: warning: data definition has no type or storage class
bitblt.c:1397: error: syntax error before '->' token
bitblt.c:1397: warning: type defaults to `int' in declaration of
`XSetFunction'
bitblt.c:1397: warning: data definition has no type or storage class
bitblt.c:1398: error: syntax error before '->' token
bitblt.c:1404: warning: type defaults to `int' in declaration of
`XCopyPlane'
bitblt.c:1404: warning: data definition has no type or storage class
bitblt.c:1405: error: syntax error before '->' token
bitblt.c:1406: warning: type defaults to `int' in declaration of
`wine_tsx11_unlock'
bitblt.c:1406: warning: data definition has no type or storage class
bitblt.c:1407: error: syntax error before "return"
bitblt.c:1413: warning: type defaults to `int' in declaration of
`wine_tsx11_lock'
bitblt.c:1413: warning: data definition has no type or storage class
bitblt.c:1414: error: syntax error before '->' token
bitblt.c:1414: warning: type defaults to `int' in declaration of
`XSetFunction'
bitblt.c:1414: warning: data definition has no type or storage class
bitblt.c:1415: error: syntax error before '->' token
bitblt.c:1418: warning: type defaults to `int' in declaration of
`XFillRectangle'
bitblt.c:1418: warning: data definition has no type or storage class
bitblt.c:1419: warning: type defaults to `int' in declaration of
`wine_tsx11_unlock'
bitblt.c:1419: warning: data definition has no type or storage class
bitblt.c:1420: error: syntax error before "return"
bitblt.c:1429: error: syntax error before '->' token
bitblt.c:1431: error: syntax error before '->' token
bitblt.c:1431: warning: type defaults to `int' in declaration of
`XSetFillStyle'
bitblt.c:1431: warning: data definition has no type or storage class
bitblt.c:1433: error: syntax error before '->' token
bitblt.c:1436: warning: type defaults to `int' in declaration of
`XFillRectangle'
bitblt.c:1436: warning: data definition has no type or storage class
bitblt.c:1437: warning: type defaults to `int' in declaration of
`wine_tsx11_unlock'
bitblt.c:1437: warning: data definition has no type or storage class
bitblt.c:1438: error: syntax error before "return"
bitblt.c:1441: warning: type defaults to `int' in declaration of
`wine_tsx11_lock'
bitblt.c:1441: warning: data definition has no type or storage class
bitblt.c:1443: warning: type defaults to `int' in declaration of
`tmpGC'
bitblt.c:1443: error: redefinition of `tmpGC'
bitblt.c:1229: error: `tmpGC' previously defined here
bitblt.c:1443: warning: implicit declaration of function `XCreateGC'
bitblt.c:1443: error: `physDevDst' undeclared here (not in a function)
bitblt.c:1443: error: initializer element is not constant
bitblt.c:1443: warning: data definition has no type or storage class
bitblt.c:1444: warning: type defaults to `int' in declaration of
`XSetSubwindowMode'
bitblt.c:1444: warning: parameter names (without types) in function
declaration
bitblt.c:1444: warning: data definition has no type or storage class
bitblt.c:1445: warning: type defaults to `int' in declaration of
`XSetGraphicsExposures'
bitblt.c:1445: warning: parameter names (without types) in function
declaration
bitblt.c:1445: warning: data definition has no type or storage class
bitblt.c:1446: warning: type defaults to `int' in declaration of
`pixmaps'
bitblt.c:1446: warning: implicit declaration of function
`XCreatePixmap'
bitblt.c:1447: error: `physDevDst' undeclared here (not in a function)
bitblt.c:1447: error: invalid initializer
bitblt.c:1447: warning: data definition has no type or storage class
bitblt.c:1448: error: syntax error before "if"
bitblt.c:1465: warning: type defaults to `int' in declaration of
`destUsed'
bitblt.c:1465: warning: data definition has no type or storage class
bitblt.c:1467: error: syntax error before "for"
bitblt.c:1467: warning: type defaults to `int' in declaration of
`opcode'
bitblt.c:1467: warning: data definition has no type or storage class
bitblt.c:1467: error: syntax error before '++' token
bitblt.c:1470: error: syntax error before '(' token
bitblt.c:1502: error: syntax error before '->' token
bitblt.c:1502: warning: type defaults to `int' in declaration of
`XSetFunction'
bitblt.c:1502: warning: data definition has no type or storage class
bitblt.c:1503: error: syntax error before '->' token
bitblt.c:1505: error: syntax error before '[' token
bitblt.c:1505: warning: type defaults to `int' in declaration of
`XFreePixmap'
bitblt.c:1505: warning: data definition has no type or storage class
bitblt.c:1508: warning: type defaults to `int' in declaration of
`XFreeGC'
bitblt.c:1508: warning: parameter names (without types) in function
declaration
bitblt.c:1508: warning: data definition has no type or storage class
bitblt.c:1509: warning: type defaults to `int' in declaration of
`wine_tsx11_unlock'
bitblt.c:1509: warning: data definition has no type or storage class
bitblt.c:1510: error: syntax error before "return"
bitblt.c:1517: error: syntax error before '*' token
bitblt.c: In function `X11DRV_PatBlt':
bitblt.c:1521: error: `physDev' undeclared (first use in this function)
bitblt.c:1522: error: `left' undeclared (first use in this function)
bitblt.c:1522: error: `top' undeclared (first use in this function)
bitblt.c:1522: error: `rop' undeclared (first use in this function)
bitblt.c: At top level:
bitblt.c:1531: error: syntax error before '*' token
bitblt.c: In function `X11DRV_BitBlt':
bitblt.c:1539: error: `rop' undeclared (first use in this function)
bitblt.c:1546: error: `physDevDst' undeclared (first use in this
function)
bitblt.c:1547: error: `physDevSrc' undeclared (first use in this
function)
bitblt.c:1595: error: `GXcopy' undeclared (first use in this function)
bitblt.c: At top level:
bitblt.c:1622: error: syntax error before '*' token
bitblt.c: In function `X11DRV_StretchBlt':
bitblt.c:1629: error: `physDevDst' undeclared (first use in this
function)
bitblt.c:1630: error: `physDevSrc' undeclared (first use in this
function)
bitblt.c:1634: error: `rop' undeclared (first use in this function)
bitblt.c: At top level:
bitblt.c:856: warning: `BITBLT_GetSrcAreaStretch' defined but not used
bitblt.c:906: warning: `BITBLT_GetSrcArea' defined but not used
bitblt.c:1028: warning: `BITBLT_GetDstArea' defined but not used
bitblt.c:1080: warning: `BITBLT_PutDstArea' defined but not used
{standard input}: Assembler messages:
{standard input}:3403: Error: symbol `__dbcl' is already defined
{standard input}:3409: Error: symbol `__dbcl' is already defined
{standard input}:3415: Error: symbol `__dbcl' is already defined
{standard input}:3571: Error: symbol `tmpGC' is already defined
make[2]: *** [bitblt.o] Error 1
make[2]: Leaving directory
`/home/crashedagain/tmp/wine0912/wine-0.9.12/dlls/x11drv'
make[1]: *** [x11drv] Error 2
make[1]: Leaving directory
`/home/crashedagain/tmp/wine0912/wine-0.9.12/dlls'
make: *** [dlls] Error 2
desktop:/home/crashedagain/tmp/wine0912

These look like bugs in the code though, don't they?

KGJ

unread,
May 2, 2006, 9:48:13 AM5/2/06
to wine-...@winehq.org
Hi,

Well to avoid those conflicts you could use http://backports.org/ .
Those packages are compiled to use the old packages that exist in stable.
You can use a chroot but I think that is more like having 2 systems at
the same time...


Greetings KGJ

KGJ

unread,
May 2, 2006, 10:07:54 AM5/2/06
to wine-...@winehq.org
Hi,

Yeah, they look. But I would guess that your system is missing some
libraries or headers needed by wine. Could you post the output of
"./configure" ? I'm not sure if it helps but I would search for
something obvious there (especially in the first part).


Greetings KGJ

CrashedAgain

unread,
May 2, 2006, 10:25:16 AM5/2/06
to
The oldest wine version in backports is 0.9.7 so it won't help with the
20040121 version. The above attempt at compiling 0.9.12 was just to
check if I was able to compile anything & was done with gcc 3.3.5 from
stable.

Yes,chroot is essentially having two systems sort of at the same time.
I say 'sort of' because if you chroot to the other system you change
over to that system entirely, so you would have to have an entire
duplicate system to keep your other apps running. Even then there is
issues with where is 'home' & maintaining bookmarks, address files etc
on two systems.

What I have been doing is just installing the wine version I want at
the time...ie if I want to use turbocad i have to force install
20040121 but then I have to restore the system when I'm done or else
apt won't work. I was hoping that by compiling it with libc6 2.3.xx on
the system it would record it's dependencies as being libc6 2.3.xx
instead of 2.2.90 which would mean I wouldn't have to force install it.
I was also hoping that if I could get it to compile I could have two
versions on the system at the same time.This is possible, there is some
info in how to select which version to use
(http://www.winehq.com/pipermail/wine-users/2001-August/003570.html)
but so far I haven't figured out how to install two versions.

I would also like to track down the bugs so turbocad would run on the
latest versions but this is maybe more than my meagre abilities can do.

Christoph Frick

unread,
May 2, 2006, 10:41:14 AM5/2/06
to wine-...@winehq.org
On Tue, May 02, 2006 at 07:25:16AM -0700, CrashedAgain wrote:

> Yes,chroot is essentially having two systems sort of at the same time.
> I say 'sort of' because if you chroot to the other system you change
> over to that system entirely, so you would have to have an entire
> duplicate system to keep your other apps running. Even then there is
> issues with where is 'home' & maintaining bookmarks, address files etc
> on two systems.

why not mounting home a second time in the chroot (option ``bind'' IIRC
in linux's mount?)

--
cu

CrashedAgain

unread,
May 2, 2006, 11:35:55 AM5/2/06
to
I suppose chroot could be made to work that way, but getting two
versions of wine on the same system (or, better yet, getting turbocad
to run under the latest wine) would be a far better solution.

0 new messages