sargon / trayer-srg

trayer fork with multi monitor support, cleaned up codebase and other fancy stuff
Other
223 stars 34 forks source link

compile error on Arch Linux #1

Closed Telkhine closed 13 years ago

Telkhine commented 13 years ago

Getting a make error, not sure what is going on?

gcc  -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgdk_pixbuf_xlib-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -lpng14 -lgthread-2.0 -lrt -lglib-2.0   -lX11 -L/usr/X11R6/lib  -lXmu panel.o misc.o bg.o egg-marshal.o eggtraymanager.o fixedtip.o main.o -o trayer
panel.o: In function `handle_error':
panel.c:(.text+0x28): undefined reference to `GDK_DISPLAY'
panel.o: In function `panel_set_wm_strut':
panel.c:(.text+0x1b7): undefined reference to `GDK_DISPLAY'
panel.c:(.text+0x1f1): undefined reference to `GDK_DISPLAY'
panel.o: In function `panel_start_gui':
panel.c:(.text+0x896): undefined reference to `GDK_DISPLAY'
panel.c:(.text+0x8e7): undefined reference to `GDK_DISPLAY'
panel.o:panel.c:(.text+0x918): more undefined references to `GDK_DISPLAY' follow
collect2: ld returned 1 exit status
make: *** [trayer] Error 1
sargon commented 13 years ago

Hi,

thanks for reporting. GDK_DISPLAY is deprecated since GDK 2.22, I have replaced it with the mentioned function from GDK manual. And now it build again.

regards Daniel

Telkhine commented 13 years ago

Works! Thanks sargon!

Telkhine commented 13 years ago

ah wait no, I'm getting:


[dankles@mercury ~]$ trayer 
Segmentation fault

It compiles, but doesnt run. Normal trayer runs on my system though.

sargon commented 13 years ago

Oh sry. I see the problem, doesn't run for me too. I have found the problem and will provide a patch tomorrow.

sargon commented 13 years ago

Okay. Now it builds for me and didn't segfault anymore.

Telkhine commented 13 years ago

Still segfaults for me. Here is the whole build:

http://dpaste.com/hold/283050/

and i get

[dankles@mercury ~]$ trayer Segmentation fault

sargon commented 13 years ago

narf. shouldn't rename the function after testing. Rename it again to avoid namespace conflicts ... hf

Telkhine commented 13 years ago

works now! thanks sargon for your help and work. :)