[eq-dev] GLX glew redefinition error in client code on Linux with SVN Head Version

4 views
Skip to first unread message

Michael Luggen

unread,
Jan 14, 2010, 9:56:21 AM1/14/10
to eq-...@equalizergraphics.com

Hi everybody,

I get the following redefinitions compiling the latest equalizer (3934) on a
Ubuntu 9.10. I use the nvidia-glx-185. On the same setup the 0.9 branch did
compile.

make[1]: Entering directory `/home/lgm5/Equalizer-svn/src/lib'
g++ -I.././build/Linux/include -Wno-deprecated -m64 -fPIC -g -Werror
-DLinux -DGLX -DGLEW_MX -Wall -Wnon-virtual-dtor -Wsign-promo -Wshadow
-Winit-self -Wno-unknown-pragmas -Wno-unused-parameter -Wno-write-strings
-Wno-deprecated -m64 -fPIC -I/usr/X11R6/include -DEQUALIZER_EXPORTS
-DSUBDIR=\"./lib\" -c client/channel.cpp -o
.././obj/Debug/./lib/client/channel.Linux.o
In file included from .././build/Linux/include/eq/client/os.h:51,
from .././build/Linux/include/eq/util/bitmapFont.h:22,
from .././build/Linux/include/eq/client/window.h:27,
from client/channel.h:26,
from client/channel.cpp:18:
/usr/include/GL/glx.h:342: error: conflicting declaration ‘typedef struct
GLXPbufferClobberEvent GLXPbufferClobberEvent’
.././build/Linux/include/GL/glxew.h:274: error: ‘GLXPbufferClobberEvent’ has
a previous declaration as ‘typedef struct GLXPbufferClobberEvent
GLXPbufferClobberEvent’
/usr/include/GL/glx.h:344: error: redefinition of ‘union __GLXEvent’
.././build/Linux/include/GL/glxew.h:275: error: previous definition of
‘union __GLXEvent’
/usr/include/GL/glx.h:347: error: invalid type in declaration before ‘;’
token
/usr/include/GL/glx.h:347: error: conflicting declaration ‘typedef int
GLXEvent’
.././build/Linux/include/GL/glxew.h:278: error: ‘GLXEvent’ has a previous
declaration as ‘typedef union __GLXEvent GLXEvent’
make[1]: *** [.././obj/Debug/./lib/client/channel.Linux.o] Error 1
make[1]: Leaving directory `/home/lgm5/Equalizer-svn/src/lib'
make: *** [lib] Error 2

Can someone give me a hint where to look? Has someone compiled a recent
version on a linux box?

THX Michael

--
View this message in context: http://n2.nabble.com/GLX-glew-redefinition-error-in-client-code-on-Linux-with-SVN-Head-Version-tp4393028p4393028.html
Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.

_______________________________________________
eq-dev mailing list
eq-...@equalizergraphics.com
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Stefan Eilemann

unread,
Jan 14, 2010, 2:15:08 PM1/14/10
to Equalizer Developer List

On 14.01.2010, at 15:56, Michael Luggen <lg...@bfh.ch> wrote:
> Can someone give me a hint where to look? Has someone compiled a
> recent
> version on a linux box?

The problem are different definitions of glxevent in glew and your gl
header files. We had the same issue in the past with other gl
functions. You have to find out where they differ and fix the 'wrong'
definition.

We have tested recently on ubuntu and opensuse 11.2 with no issues, so
I'm afraid I can't help right now.

Hth,

Stefan.

Sarah Amsellem

unread,
Jan 15, 2010, 4:34:11 AM1/15/10
to Equalizer Developer List
Did you also installed nvidia-glx-185-dev? I've got the same problem by installing this package. It causes a conflict with other GLX dev files.
This is probably a conflict coming from nvidia packages and you will need to figure out which dependency causes the problem in your case.
Hope that helps.

Best,
Sarah

2010/1/14 Stefan Eilemann <eile...@gmail.com>

Michael Luggen

unread,
Jan 15, 2010, 4:40:00 AM1/15/10
to eq-...@equalizergraphics.com

Indeed I did install also the dev package.

I will dig deeper into the dependencies problems next Monday.

Thanks so far for the answers!

Regards
Michael

--
View this message in context: http://n2.nabble.com/GLX-glew-redefinition-error-in-client-code-on-Linux-with-SVN-Head-Version-tp4393028p4397764.html


Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.

_______________________________________________

Sarah Amsellem

unread,
Jan 15, 2010, 6:17:30 AM1/15/10
to Equalizer Developer List
If you don't need the dev package you can try to uninstall it and reinstall the libgl1-mesa-dev one.

Best,
Sarah

2010/1/15 Michael Luggen <lg...@bfh.ch>

Michael Luggen

unread,
Jan 18, 2010, 10:46:53 AM1/18/10
to eq-...@equalizergraphics.com

Hello,

Going back to the standard mesa package did the job...

http://n2.nabble.com/file/n4414263/eqOSG.jpg


I appreciate the help.

Kind regards,
Michael

--
View this message in context: http://n2.nabble.com/GLX-glew-redefinition-error-in-client-code-on-Linux-with-SVN-Head-Version-tp4393028p4414263.html

Sarah Amsellem

unread,
Jan 22, 2010, 5:20:40 AM1/22/10
to Equalizer Developer List
Hello,

Commit #3989 fixes the conflict problem when using the nvidia-glx-185-dev package.

Best,
Sarah

2010/1/18 Michael Luggen <lg...@bfh.ch>
Reply all
Reply to author
Forward
0 new messages