{"action":"created","issue":{"url":"https://api.github.com/repos/rhinstaller/efivar/issues/60","repository_url":"https://api.github.com/repos/rhinstaller/efivar","labels_url":"https://api.github.com/repos/rhinstaller/efivar/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/rhinstaller/efivar/issues/60/comments","events_url":"https://api.github.com/repos/rhinstaller/efivar/issues/60/events","html_url":"https://github.com/rhinstaller/efivar/issues/60","id":172493706,"number":60,"title":"efivar 26: errors when trying to build from source","user":{"login":"tgurr","id":414984,"avatar_url":"https://avatars.githubusercontent.com/u/414984?v=3","gravatar_id":"","url":"https://api.github.com/users/tgurr","html_url":"https://github.com/tgurr","followers_url":"https://api.github.com/users/tgurr/followers","following_url":"https://api.github.com/users/tgurr/following{/other_user}","gists_url":"https://api.github.com/users/tgurr/gists{/gist_id}","starred_url":"https://api.github.com/users/tgurr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgurr/subscriptions","organizations_url":"https://api.github.com/users/tgurr/orgs","repos_url":"https://api.github.com/users/tgurr/repos","events_url":"https://api.github.com/users/tgurr/events{/privacy}","received_events_url":"https://api.github.com/users/tgurr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-22T16:15:39Z","updated_at":"2016-10-27T13:21:22Z","closed_at":null,"body":"My compile params are:\r\n\r\n```\r\nbindir=/usr/$(exhost --target)/bin\r\nincludedir=/usr/$(exhost --target)/include\r\nlibdir=/usr/$(exhost --target)/lib\r\nprefix=/usr/$(exhost --target)\r\nCROSS_COMPILE=$(exhost --tool-prefix)\r\nBINTARGETS=efivar\r\nSTATICLIBTARGETS=\r\n```\r\n\r\nWhen trying to build efivar 26 I get the following error:\r\n\r\n```\r\nx86_64-pc-linux-gnu-cc -pipe -O2 -march=native -I/var/tmp/paludis/build/sys-boot-efivar-26/work/efivar-26/src/include/efivar/    -L.      -pipe -O2 -march=native -shared \\\r\n  -Wl,-soname,libefivar.so.26 \\\r\n  -Wl,--version-script=libefivar.map \\\r\n  -o libefivar.so dp.o dp-acpi.o dp-hw.o dp-media.o dp-message.o efivarfs.o error.o export.o guid.o guids.o guid-symbols.o lib.o vars.o -ldl \r\nmake[1]: Leaving directory '/var/tmp/paludis/build/sys-boot-efivar-26/work/efivar-26/src'\r\nlib.o:(*IND*+0x0): multiple definition of `efi_set_variable'\r\nlib.o:lib.c:(.text+0xf0): first defined here\r\ncollect2: error: ld returned 1 exit status\r\nmake[1]: *** [/var/tmp/paludis/build/sys-boot-efivar-26/work/efivar-26/Make.rules:20: libefivar.so] Error 1\r\nmake: *** [Makefile:11: all] Error 2\r\n```\r\n\r\n\r\nWhen I apply a patch found at openembedded (source: https://github.com/openembedded/meta-openembedded/blob/master/meta-oe/recipes-extended/efivar/efivar/allow-multi-definitions-for-native.patch ) I get the following error:\r\n\r\n```\r\nx86_64-pc-linux-gnu-cc -pipe -O2 -march=native -I/var/tmp/paludis/build/sys-boot-efivar-26/work/efivar-26/src/include/efivar/    -L.      -pipe -O2 -march=native -shared \\\r\n  -Wl,-soname,libefiboot.so.26 \\\r\n  -Wl,--version-script=libefiboot.map \\\r\n  -Wl,-z,muldefs \\\r\n  -o libefiboot.so crc32.o creator.o disk.o gpt.o linux.o loadopt.o -lefivar \r\nx86_64-pc-linux-gnu-cc -pipe -O2 -march=native -I/var/tmp/paludis/build/sys-boot-efivar-26/work/efivar-26/src/include/efivar/    -L.      -pipe -O2 -march=native -o efivar efivar.c -lefivar -ldl -lpopt\r\n\r\nError:\r\n  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =sys-boot/efivar-26:0::arbor --destination installed --x-of-y 1 of 1:\r\n  * When installing 'sys-boot/efivar-26:0::arbor':\r\n  * When running an ebuild command on 'sys-boot/efivar-26:0::arbor':\r\n  * Install failed for 'sys-boot/efivar-26:0::arbor' (paludis::ActionFailedError)\r\n\r\nmake[1]: Leaving directory '/var/tmp/paludis/build/sys-boot-efivar-26/work/efivar-26/src'\r\n./libefivar.so: undefined reference to `strdupa'\r\ncollect2: error: ld returned 1 exit status\r\nmake[1]: *** [/var/tmp/paludis/build/sys-boot-efivar-26/work/efivar-26/Make.rules:13: efivar] Error 1\r\nmake: *** [Makefile:11: all] Error 2\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rhinstaller/efivar/issues/comments/256638650","html_url":"https://github.com/rhinstaller/efivar/issues/60#issuecomment-256638650","issue_url":"https://api.github.com/repos/rhinstaller/efivar/issues/60","id":256638650,"user":{"login":"vathpela","id":1063106,"avatar_url":"https://avatars.githubusercontent.com/u/1063106?v=3","gravatar_id":"","url":"https://api.github.com/users/vathpela","html_url":"https://github.com/vathpela","followers_url":"https://api.github.com/users/vathpela/followers","following_url":"https://api.github.com/users/vathpela/following{/other_user}","gists_url":"https://api.github.com/users/vathpela/gists{/gist_id}","starred_url":"https://api.github.com/users/vathpela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vathpela/subscriptions","organizations_url":"https://api.github.com/users/vathpela/orgs","repos_url":"https://api.github.com/users/vathpela/repos","events_url":"https://api.github.com/users/vathpela/events{/privacy}","received_events_url":"https://api.github.com/users/vathpela/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T13:21:21Z","updated_at":"2016-10-27T13:21:21Z","body":"https://github.com/rhinstaller/efivar/pull/70 should also fix this case."}}
{"actor":{"display_login":"vathpela"}}