RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
3.89k stars 1.03k forks source link

undefined reference to `openpty' #2286

Closed tch1001 closed 7 months ago

tch1001 commented 7 months ago

I faced the following issue when running make.

Compilation problems

$ make
undefined reference to `forkpty'
undefined reference to `openpty'

Solution Append -lutil to the end of this line

proxmark3: $(OBJS) $(STATICLIBS) lualibs/pm3_cmd.lua lualibs/mfc_default_keys.lua
    $(info [=] CXX $@)
#   $(Q)$(CXX) $(PM3LDFLAGS) $(OBJS) $(STATICLIBS) $(LDLIBS) -o $@
    $(Q)$(CXX) $(PM3CFLAGS) $(PM3LDFLAGS) $(OBJS) $(STATICLIBS) $(LDLIBS) -o $@ -lutil
iceman1001 commented 7 months ago

This is a first.... Which OS are you running on?

tch1001 commented 7 months ago

Ubuntu 22.04

P.S. big fan of your work!

iceman1001 commented 7 months ago

Hm, We never seen this before.

Did you install all dependencies according to the guides?

tch1001 commented 7 months ago

Yep! I am quite sure I did. It's alright then, you may ignore the pull request and I'll close this issue. Just wanted to open this issue so at least others who face the same bug can use my hacky fix :)

iceman1001 commented 7 months ago

I am confused since I never seen this message before.

We don't even have any calls to pty.h, or openpty or forkpty in the project.

You did git clone and tried to compiled? or have you downloaded this somewhere else?

tch1001 commented 7 months ago

Oh, the issue originated from /usr/local/lib/libpython3.6m.a, so I think it's a problem with my python installation. Sorry for the false reporting!