Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry 3B+ Raspbian Buster -> Compiler Error: undefined reference to 'makedev' #29

Open
hubertmeier opened this issue Jun 24, 2019 · 8 comments

Comments

@hubertmeier
Copy link

Hi,

today i installed the brand new raspbian buster and i could not install WsprryPi becaus e make ends with the error message: undefined reference to 'makedev'

Thank you

@berrak
Copy link

berrak commented Jun 30, 2019

I can confirm above problem with gcc version 8 on Buster (Raspberry Pi v1 B).
gcc have had some major upgrades from Jessie (v. 4.9.2), Stretch (v. 6.3) to eight now in Buster thus I guess wspr-code is pretty much untouched for several years. My workaround was to install the latest released Jessie-image (2017-07-05) and make the binary this way. Compiles without any warnings/errors::

pi@wspr:/GIT/WsprryPi $ make
cc -Wall -c mailbox.c
g++ -D_GLIBCXX_DEBUG -std=c++11 -Wall -Werror -fmax-errors=5 -lm -DRPI1 mailbox.o wspr.cpp -owspr
g++ -D_GLIBCXX_DEBUG -std=c++11 -Wall -Werror -fmax-errors=5 -lm -DRPI1 gpioclk.cpp -ogpioclk
pi@wspr:
/GIT/WsprryPi $ sudo make install
install -m 0755 wspr /usr/local/bin
install -m 0755 gpioclk /usr/local/bin

@gibmat
Copy link

gibmat commented Jul 21, 2019

It's a pretty easy fix, just missing a header. I've got a commit in my fork: gibmat@bd85459

@hubertmeier
Copy link
Author

hubertmeier commented Jul 23, 2019 via email

@boxsection
Copy link

Works for me also. Just recompiled with gibmat's fork using buster on Pi 4.

@ghost
Copy link

ghost commented Oct 19, 2019

Hello, I have the same problem to install wsprryPi on Pi Zero W and raspbian buster.
Will it run when I do a new installation of an old jessie release?

@cirrussecure
Copy link

Many thanks Mathais (gibmat).

I successfully applied your diff (gibmat@bd85459) and built wsprry!

cat /sys/firmware/devicetree/base/model -> 'Raspberry Pi 3 Model B Rev 1.2'
cat /etc/os-release -> 'PRETTY_NAME="Raspbian GNU/Linux 10 (buster) ...'

Best,
Tom KE2KQ

@Bruiserhq
Copy link

Thanks @gibmat ! This worked!

@gibmat
Copy link

gibmat commented Jan 11, 2021

Seeing as @JamesP6000 hasn't had any activity in this repo in almost four years, I'd consider it dead. It does look like @threeme3's repo (from which this one was originally forked) is a bit more active -- for one thing, a commit mentions support for the RPi4. There's also the explosion of forks, although I doubt many of them contain improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants