Bug 27418 - latest eglut patches break build
Summary: latest eglut patches break build
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Chia-I Wu
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-01 16:26 UTC by Martin Stolpe
Modified: 2010-04-04 06:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Martin Stolpe 2010-04-01 16:26:31 UTC
When I try to compile mesa I get the following error:
make[3]: Leaving directory `/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut'
gcc -march=native -mtune=native -O2 -g -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -Wl,--hash-style=gnu -Wl,--as-needed -o eglgears_x11 eglgears.o -L../../../lib -lEGL -lGL -lm -L../../../progs/egl/eglut -leglut-x11 -lX11
../../../progs/egl/eglut/libeglut-x11.a(eglut.o): In function `_eglutDefaultKeyboard':
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:256: undefined reference to `eglMakeCurrent'
../../../progs/egl/eglut/libeglut-x11.a(eglut.o): In function `_eglutDestroyWindow':
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:56: undefined reference to `eglDestroySurface'
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:60: undefined reference to `eglDestroyContext'
../../../progs/egl/eglut/libeglut-x11.a(eglut.o): In function `_eglutFini':
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:246: undefined reference to `eglTerminate'
../../../progs/egl/eglut/libeglut-x11.a(eglut.o): In function `eglutInit':
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:190: undefined reference to `eglGetDisplay'
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:192: undefined reference to `eglInitialize'
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:197: undefined reference to `eglQueryString'
../../../progs/egl/eglut/libeglut-x11.a(eglut.o): In function `_eglutChooseConfig':
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:95: undefined reference to `eglChooseConfig'
../../../progs/egl/eglut/libeglut-x11.a(eglut.o): In function `_eglutCreateWindow':
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:134: undefined reference to `eglBindAPI'
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:135: undefined reference to `eglCreateContext'
../../../progs/egl/eglut/libeglut-x11.a(eglut.o): In function `eglutCreateWindow':
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:278: undefined reference to `eglMakeCurrent'
../../../progs/egl/eglut/libeglut-x11.a(eglut.o): In function `_eglutCreateWindow':
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:147: undefined reference to `eglCreatePixmapSurface'
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut.c:143: undefined reference to `eglCreateWindowSurface'
../../../progs/egl/eglut/libeglut-x11.a(eglut_x11.o): In function `_eglutNativeEventLoop':
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut_x11.c:217: undefined reference to `eglSwapBuffers'
../../../progs/egl/eglut/libeglut-x11.a(eglut_x11.o): In function `_eglutNativeInitWindow':
/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/eglut/eglut_x11.c:34: undefined reference to `eglGetConfigAttrib'
Comment 1 Chia-I Wu 2010-04-01 19:05:55 UTC
I've updated the build rule in 1054f22e480875b2d91c3d9ad1b85080e4705a35.  Could you verify that if it fixes the bug for you?
Comment 2 Martin Stolpe 2010-04-03 08:42:47 UTC
Now I get the following compile error:
gcc -c -I../../../include -I../../../progs/egl/eglut -march=native -mtune=native -O2 -g -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 eglgears.c -o eglgears.o
eglgears.c:34:19: error: eglut.h: No such file or directory
eglgears.c: In function 'idle':
eglgears.c:215: warning: implicit declaration of function 'eglutGet'
eglgears.c:215: error: 'EGLUT_ELAPSED_TIME' undeclared (first use in this function)
eglgears.c:215: error: (Each undeclared identifier is reported only once
eglgears.c:215: error: for each function it appears in.)
eglgears.c:224: warning: implicit declaration of function 'eglutPostRedisplay'
eglgears.c: In function 'main':
eglgears.c:285: warning: implicit declaration of function 'eglutInitWindowSize'
eglgears.c:286: warning: implicit declaration of function 'eglutInitAPIMask'
eglgears.c:286: error: 'EGLUT_OPENGL_BIT' undeclared (first use in this function)
eglgears.c:287: warning: implicit declaration of function 'eglutInit'
eglgears.c:289: warning: implicit declaration of function 'eglutCreateWindow'
eglgears.c:291: warning: implicit declaration of function 'eglutIdleFunc'
eglgears.c:292: warning: implicit declaration of function 'eglutReshapeFunc'
eglgears.c:293: warning: implicit declaration of function 'eglutDisplayFunc'
eglgears.c:298: warning: implicit declaration of function 'eglutMainLoop'
make[2]: *** [eglgears.o] Error 1
make[2]: Leaving directory `/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs/egl/opengl'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/martin/abs/2_xorg/5_-_mesa-full/src/mesa-build/progs'
make: *** [default] Error 1

There is no eglut.h file in the mesa source tree.
Comment 3 Martin Stolpe 2010-04-04 03:26:17 UTC
I've made a clean checkout and now it compiles without errors. I have no idea what went wrong because normally I don't touch the source directory.
Comment 4 Chia-I Wu 2010-04-04 06:45:53 UTC
The original bug is fixed.  I am closing this bug.  Feel free to open a new bug if you experience build failures in the future.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.