sillysloft / fluxbox

Fluxbox Window Manager (Mirror)
http://fluxbox.org/news/
Other
0 stars 1 forks source link

Linker error with gcc 3.3 #127

Open sillysloft opened 21 years ago

sillysloft commented 21 years ago

Hi.

Linking fluxbox fails with some error messages. I use gcc version 3.3 20030226 (prerelease)

This message appears on screen:

fluxbox.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, int) ': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0):/build/fluxbox/src/Window.hh:415: first defined here Gnome.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, int)': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here IconBar.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, int) ': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here main.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, int)': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here Netizen.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, int) ': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here Screen.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, int)' : /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here Slit.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, int)': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here Tab.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, int)': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here Toolbar.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, int) ': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here ToolbarHandler.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(in t, int)': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here Window.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, int)' : /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here Workspace.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, in t)': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here FbCommands.o(.text+0x0): In function `LayerMenuItem<FluxboxWindow>::click(int, i nt)': /build/fluxbox/src/Window.hh:415: multiple definition of `LayerMenuItem<FluxboxW indow>::click(int, int)' Ewmh.o(.text+0x0): first defined here collect2: ld returned 1 exit status

If i un-comment line 415-417 in Window.hh (the template specialization), all works fine. It compiles and link successfull, the XServer runs the binary.

Patrick. BTW. IIRC this error does not appear with gcc 3.2

Reported by: polsche

sillysloft commented 21 years ago

Logged In: YES user_id=392275

Oops, used release is 0.9.1

Original comment by: polsche

sillysloft commented 21 years ago

Logged In: YES user_id=392275

and happens also with the CVS version.

btw: in

src/FbAtoms.cc src/Theme.cc src/Window.hh

you forget a #include <cassert>

at least for me

Original comment by: polsche

sillysloft commented 21 years ago

Original comment by: rathnor

sillysloft commented 21 years ago

Logged In: YES user_id=603593

Hi,

I've fixed up the cassert and click build problems (in cvs a week or so ago, thus v0.9.2 and up). Let us know of any others.

Thanks,

- Simon

Original comment by: rathnor