lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 291 forks source link

Cannot compile on cygwin #599

Closed chrissten closed 11 months ago

chrissten commented 3 years ago

/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/cmd-login.c.o:cmd-login.c:(.bss+0x0): multiple definition of ARGC'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/cmd-login.c.o:cmd-login.c:(.bss+0x8): multiple definition ofARGV'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/cmd-share.c.o:cmd-share.c:(.bss+0x0): multiple definition of ARGC'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/cmd-share.c.o:cmd-share.c:(.bss+0x8): multiple definition ofARGV'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/cmd.c.o:cmd.c:(.bss+0x0): multiple definition of ARGC'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/cmd.c.o:cmd.c:(.bss+0x8): multiple definition ofARGV'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/lpass.c.o:lpass.c:(.bss+0x0): multiple definition of ARGC'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/lpass.c.o:lpass.c:(.bss+0x8): multiple definition ofARGV'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/process.c.o:process.c:(.bss+0x0): multiple definition of ARGC'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/process.c.o:process.c:(.bss+0x8): multiple definition ofARGV'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/upload-queue.c.o:upload-queue.c:(.bss+0x0): multiple definition of ARGC'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/upload-queue.c.o:upload-queue.c:(.bss+0x8): multiple definition ofARGV'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/util.c.o:util.c:(.bss+0x0): multiple definition of ARGC'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/lpass.dir/util.c.o:util.c:(.bss+0x8): multiple definition ofARGV'; CMakeFiles/lpass.dir/agent.c.o:agent.c:(.bss+0x8): first defined here

arpan3t commented 3 years ago

532

Edit lines 7 & 8 in process.h to make variables static -> save -> make install

sverhagen commented 3 years ago

I needed to do this on Linux too.

MrPeteH commented 1 year ago

Currently still an issue. Same errors. Same workaround. (Messy -- "defined but not used" warning)

arpan3t commented 1 year ago

I personally wouldn't waste your time putting effort into LastPass. I think everyone has jumped ship, and don't see this project getting any updates.

TiborKLP commented 11 months ago

Fix applied in d23846481066ea0a617a7338a3529e78b2eb517a

MrPeteH commented 8 months ago

I personally wouldn't waste your time putting effort into LastPass. I think everyone has jumped ship, and don't see this project getting any updates.

Obviously not "everyone" ;) ... I find significant value here. Yes, there be bugs. ALL software has bugs. LP has the significant advantage of having been seriously banged on....

arpan3t commented 8 months ago

I personally wouldn't waste your time putting effort into LastPass. I think everyone has jumped ship, and don't see this project getting any updates.

Obviously not "everyone" ;) ... I find significant value here. Yes, there be bugs. ALL software has bugs. LP has the significant advantage of having been seriously banged on....

I'm glad you find significant value in LastPass! Use the tools you like. For me, and a lot of other people, the way LastPass handled their breach and prior to that, the lack of activity in this repo (i.e., this issue took 3 years to close) is why we moved on to other password managers.