Hi, I don't understand much about building from source so I was building lxpanel (in Debian sid) and got this error when running make (note that ./configure --sysconfdir=/etc completed fine):

/usr/bin/ld.bfd.real: ../src/plugins/libbuiltin_plugins.a(taskbar.o): undefined reference to symbol 'XGetWindowAttributes'
/usr/bin/ld.bfd.real: note: 'XGetWindowAttributes' is defined in DSO //usr/lib/libX11.so.6 so try adding it to the linker command line
//usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: ** [lxpanel] Erro 1
make[3]: Saindo do diretório `/home/lxde/src/lxpanel/src'
make[2]: ** [all-recursive] Erro 1
make[2]: Saindo do diretório `/home/lxde/src/lxpanel/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/lxde/src/lxpanel'
make: ** [all] Erro 2

It's the latest lxpanel from git and I have all the build dependencies installed (at least the ones Debian uses).

Is there a simple workaround for that error?
I know so little about these things that I don't even know if it's a bug in the package or not.

Thank you.