lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

`make install` fails

Open c8hunderscore opened this issue 3 years ago • 3 comments

Makefile:71: update target 'lighthouse' due to: objs/child.o objs/display.o objs/globals.o objs/keysyms.o objs/lighthouse.o objs/results.o
gcc -Isrc/inc -O2 -Wall -std=c99 `pkg-config --cflags gdk-2.0` `pkg-config --cflags pango` objs/child.o objs/display.o objs/globals.o objs/keysyms.o objs/lighthouse.o objs/results.o -o lighthouse -lxcb -lxcb-xkb -lxcb-xinerama -lxcb-randr -lcairo -lpthread `pkg-config --libs gdk-2.0` `pkg-config --libs pango`
/usr/bin/ld: objs/display.o:(.bss+0xc0): multiple definition of `global'; objs/child.o:(.bss+0xc0): first defined here
/usr/bin/ld: objs/display.o:(.bss+0x0): multiple definition of `settings'; objs/child.o:(.bss+0x0): first defined here
/usr/bin/ld: objs/globals.o:(.bss+0x0): multiple definition of `settings'; objs/child.o:(.bss+0x0): first defined here
/usr/bin/ld: objs/globals.o:(.bss+0xc0): multiple definition of `global'; objs/child.o:(.bss+0xc0): first defined here
/usr/bin/ld: objs/lighthouse.o:(.bss+0xc0): multiple definition of `global'; objs/child.o:(.bss+0xc0): first defined here
/usr/bin/ld: objs/lighthouse.o:(.bss+0x0): multiple definition of `settings'; objs/child.o:(.bss+0x0): first defined here
/usr/bin/ld: objs/results.o:(.bss+0x0): multiple definition of `settings'; objs/child.o:(.bss+0x0): first defined here
/usr/bin/ld: objs/results.o:(.bss+0xc0): multiple definition of `global'; objs/child.o:(.bss+0xc0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:71: lighthouse] Error 1

i don't know what to say other than please fix

c8hunderscore avatar Jul 24 '21 18:07 c8hunderscore

ok i just realised this is an old repo and i am probably not gonna get a response any time soon

c8hunderscore avatar Jul 24 '21 18:07 c8hunderscore

@c8hunderscore it maybe a little bit late, but you could apply this patch to fix this link error. https://gist.github.com/dearfl/f125dfc35e7114e9e5080d8bfb5aae3a

dearfl avatar Sep 08 '21 17:09 dearfl

With that I get

gcc -Isrc/inc -O2 -Wall -std=c99 -DNO_GDK `pkg-config --cflags pango` objs/child.o objs/display.o objs/globals.o objs/keysyms.o objs/lighthouse.o objs/results.o -o lighthouse -lxcb -lxcb-xkb -lxcb-xinerama -lxcb-randr -lcairo -lpthread `pkg-config --libs pango`
/usr/bin/ld: objs/display.o: in function `draw_text':
display.c:(.text+0x70): undefined reference to `pango_cairo_create_layout'
/usr/bin/ld: display.c:(.text+0xe0): undefined reference to `pango_cairo_update_layout'
/usr/bin/ld: display.c:(.text+0x107): undefined reference to `pango_cairo_show_layout_line'
/usr/bin/ld: objs/results.o: in function `get_characters.constprop.0':
results.c:(.text+0x29): undefined reference to `pango_cairo_create_layout'
/usr/bin/ld: results.c:(.text+0x5c): undefined reference to `pango_cairo_update_layout'
/usr/bin/ld: results.c:(.text+0xa3): undefined reference to `pango_cairo_update_layout'
collect2: error: ld returned 1 exit status
make: *** [Makefile:71: lighthouse] Error 1

Seegras avatar Jan 06 '24 11:01 Seegras