Gcc error during make depend/make of latest Git-Wine source.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Aldrenean
Newbie
Newbie
Posts: 4
Joined: Sun Feb 22, 2009 10:37 pm

Gcc error during make depend/make of latest Git-Wine source.

Post by Aldrenean »

I'm on Linux Mint Fluxbox CE 5 trying to compile the latest Git source. I previously had Wine 1.0 something from the Synaptic repos, and wanted bleeding edge so I did

Code: Select all

$ aptitude remove wine
and then followed the Wine + Git instructions. After the repo was cloned I ran ./configure, installed a couple dependencies and libfreetype-dev, and the config script then ran fine. Then I started the make process, and after about 45 minutes of compiling and such (massive amounts of text ran by, if I need to salvage them you'll have to tell me how,) this happened:

Code: Select all

$ make depend && make
...
gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith  -g -O2  -o xvidmode.o xvidmode.c
../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include  -D__WINESRC__   -foversion.res version.rc
../../tools/winegcc/winegcc  -B../../tools/winebuild -shared ./winex11.drv.spec    bitblt.o bitmap.o brush.o clipboard.o codepage.o desktop.o dib.o dib_convert.o dib_dst_swap.o dib_src_swap.o event.o graphics.o ime.o init.o keyboard.o mouse.o opengl.o palette.o pen.o scroll.o settings.o systray.o text.o window.o wintab.o x11ddraw.o x11drv_main.o xdnd.o xfont.o xim.o xinerama.o xrandr.o xrender.o xvidmode.o     version.res  -o winex11.drv.so -lcomctl32 -luser32 -lgdi32 -ladvapi32 -limm32 -lkernel32 -lntdll -Wb,-dcomctl32 ../../libs/port/libwine_port.a -lXext -lX11   
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
winegcc: gcc failed
make[2]: *** [winex11.drv.so] Error 2
make[2]: Leaving directory `/home/aldrenean/.wine-git/dlls/winex11.drv'
make[1]: *** [winex11.drv] Error 2
make[1]: Leaving directory `/home/aldrenean/.wine-git/dlls'
make: *** [dlls] Error 2

Then I was dumped to the terminal. Any one have any idea? Should I even post this here, or is this a problem with non-wine stuff?

Thanks in advance.

-Scott
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Gcc error during make depend/make of latest Git-Wine source.

Post by austin987 »

On Sun, Feb 22, 2009 at 9:46 PM, Aldrenean <[email protected]> wrote:
I'm on Linux Mint Fluxbox CE 5 trying to compile the latest Git source. I previously had Wine 1.0 something from the Synaptic repos, and wanted bleeding edge so I did


Code:
$ aptitude remove wine



and then followed the Wine + Git instructions. After the repo was cloned I ran ./configure, installed a couple dependencies and libfreetype-dev, and the config script then ran fine. Then I started the make process, and after about 45 minutes of compiling and such (massive amounts of text ran by, if I need to salvage them you'll have to tell me how,) this happened:


Code:
$ make depend && make
...
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -g -O2 -o xvidmode.o xvidmode.c
../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include -D__WINESRC__ -foversion.res version.rc
../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./winex11.drv.spec bitblt.o bitmap.o brush.o clipboard.o codepage.o desktop.o dib.o dib_convert.o dib_dst_swap.o dib_src_swap.o event.o graphics.o ime.o init.o keyboard.o mouse.o opengl.o palette.o pen.o scroll.o settings.o systray.o text.o window.o wintab.o x11ddraw.o x11drv_main.o xdnd.o xfont.o xim.o xinerama.o xrandr.o xrender.o xvidmode.o version.res -o winex11.drv.so -lcomctl32 -luser32 -lgdi32 -ladvapi32 -limm32 -lkernel32 -lntdll -Wb,-dcomctl32 ../../libs/port/libwine_port.a -lXext -lX11
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
winegcc: gcc failed
make[2]: *** [winex11.drv.so] Error 2
make[2]: Leaving directory `/home/aldrenean/.wine-git/dlls/winex11.drv'
make[1]: *** [winex11.drv] Error 2
make[1]: Leaving directory `/home/aldrenean/.wine-git/dlls'
make: *** [dlls] Error 2





Then I was dumped to the terminal. Any one have any idea? Should I even post this here, or is this a problem with non-wine stuff?

Thanks in advance.

-Scott





Are there any errors with:
./configure --verbose
?

--
-Austin
Aldrenean
Newbie
Newbie
Posts: 4
Joined: Sun Feb 22, 2009 10:37 pm

Post by Aldrenean »

Nope, I just get a few warnings at the end, same as non-verbose. This is the tail:

Code: Select all

configure: libxcursor development files not found, the Xcursor extension won't be supported.
configure: libxi development files not found, the Xinput extension won't be supported.
configure: XShm development files not found, X Shared Memory won't be supported.
configure: XShape development files not found, XShape won't be supported.
configure: libXxf86vm development files not found, XFree86 Vidmode won't be supported.
configure: libxrandr development files not found, XRandr won't be supported.
configure: libxinerama development files not found, multi-monitor setups won't be supported.
configure: libxcomposite development files not found, Xcomposite won't be supported.
configure: libGLU development files not found, GLU won't be supported.
configure: libhal development files not found, no dynamic device support.
configure: libgnutls development files not found, no schannel support.
configure: lib(n)curses development files not found, curses won't be supported.
configure: libsane development files not found, scanners won't be supported.
configure: libgphoto2 development files not found, digital cameras won't be supported.
configure: liblcms development files not found, Color Management won't be supported.
configure: libcapi20 development files not found, ISDN won't be supported.
configure: libcups development files not found, CUPS won't be supported.
configure: fontconfig development files not found, fontconfig won't be supported.
configure: libldap (OpenLDAP) development files not found, LDAP won't be supported.

configure: WARNING: libxrender development files not found, XRender won't be supported.

configure: WARNING: No OpenGL library found on this system.
OpenGL and Direct3D won't be supported.

configure: WARNING: libxml2 development files not found, XML won't be supported.

configure: WARNING: libxslt development files not found, xslt won't be supported.

configure: WARNING: OpenSSL development files not found, SSL won't be supported.

configure: WARNING: libjpeg development files not found, JPEG won't be supported.

configure: WARNING: libpng development files not found, PNG won't be supported.

configure: Finished.  Do 'make depend && make' to compile Wine.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Gcc error during make depend/make of latest Git-Wine source.

Post by austin987 »

On Sun, Feb 22, 2009 at 10:26 PM, Aldrenean <[email protected]> wrote:
Nope, I just get a few warnings at the end, same as non-verbose. This is the tail:


Code:
configure: libxcursor development files not found, the Xcursor extension won't be supported.
configure: libxi development files not found, the Xinput extension won't be supported.
configure: XShm development files not found, X Shared Memory won't be supported.
configure: XShape development files not found, XShape won't be supported.
configure: libXxf86vm development files not found, XFree86 Vidmode won't be supported.
configure: libxrandr development files not found, XRandr won't be supported.
configure: libxinerama development files not found, multi-monitor setups won't be supported.
configure: libxcomposite development files not found, Xcomposite won't be supported.
configure: libGLU development files not found, GLU won't be supported.
configure: libhal development files not found, no dynamic device support.
configure: libgnutls development files not found, no schannel support.
configure: lib(n)curses development files not found, curses won't be supported.
configure: libsane development files not found, scanners won't be supported.
configure: libgphoto2 development files not found, digital cameras won't be supported.
configure: liblcms development files not found, Color Management won't be supported.
configure: libcapi20 development files not found, ISDN won't be supported.
configure: libcups development files not found, CUPS won't be supported.
configure: fontconfig development files not found, fontconfig won't be supported.
configure: libldap (OpenLDAP) development files not found, LDAP won't be supported.

configure: WARNING: libxrender development files not found, XRender won't be supported.

configure: WARNING: No OpenGL library found on this system.
OpenGL and Direct3D won't be supported.

configure: WARNING: libxml2 development files not found, XML won't be supported.

configure: WARNING: libxslt development files not found, xslt won't be supported.

configure: WARNING: OpenSSL development files not found, SSL won't be supported.

configure: WARNING: libjpeg development files not found, JPEG won't be supported.

configure: WARNING: libpng development files not found, PNG won't be supported.

configure: Finished. Do 'make depend && make' to compile Wine.








There's your problem. Fix those warnings/errors. The WARNING ones can be fatal.

--
-Austin
Aldrenean
Newbie
Newbie
Posts: 4
Joined: Sun Feb 22, 2009 10:37 pm

Post by Aldrenean »

Alright, I'll fix em. Thanks!

Edit: Awesome, that worked, at least to the point where wine --version returns correctly. Thanks again! :)
Last edited by Aldrenean on Mon Feb 23, 2009 4:03 am, edited 1 time in total.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Gcc error during make depend/make of latest Git-Wine source.

Post by austin987 »

On Sun, Feb 22, 2009 at 10:57 PM, Aldrenean <[email protected]> wrote:
Alright, I'll fix em. Thanks!

This should help:
http://wiki.winehq.org/Recommended_Packages

--
-Austin
User avatar
Daemon
Level 4
Level 4
Posts: 101
Joined: Wed Nov 12, 2008 2:24 pm

Post by Daemon »

Handy little script that you and future wine hackers might find useful.
Adjust to your wants for the configure options. It's meant for a x64 system hence the -m32 and -L'pwd'/lib32 switches.

Code: Select all

#! /bin/sh

CC="gcc-4.3 -m32" LDFLAGS="-L/lib32 -L/usr/lib32 -L`pwd`/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32" ./configure -v --prefix=/usr --exec-prefix=/usr --without-capi --without-cups --without-jack --without-sane --without-gphoto --with-x --without-freetype --disable-tests --without-nas
make depend && make
echo put password here | sudo -S make install
Locked