Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332
Rep:
hostapd 'make' fails -- fatal error: demangle.h
Hello Group,
I have gotten myself boxed in and cannot find a solution.
Running Slackware 14.0 x86
The slackbuilds.org version of hostapd is old and I wanted to use the latest stable version.
Downloaded ver. 1.0 and trying to do 'make' and 'make install' per the README. I cannot complete make:
Code:
root@box:/usr/local/hostapd-1.0/hostapd# make
../src/utils/trace.c:28:22: fatal error: demangle.h: No such file or directory
compilation terminated.
make: *** [../src/utils/trace.o] Error 1
root@box:/usr/local/hostapd-1.0/hostapd#
I don't know how to troubleshoot the demangle.h error and/or determine what may be missing or wrong with my gcc compiler settings.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quote:
I do not have a hostapd.spec file.
Not required. Just use the "cat defconfig | sed" command,
and you can run 'make' with no errors.
If you want to read the spec file, you will have to plug it out
from the src source package, hostapd-1.0-3.fc18.src.rpm.
Links for a development package are short lived,
and the package is easy to find with Google.
But here is a current link example .. http://dl.fedoraproject.org/pub/fedo...3.fc18.src.rpm
Note : It is always a good idea to investigate how others build a new version.
I'd usually look for Debian and Fedora packages, to see the build commands,
and to get patches. "hostapd-1.0" : No usable patches in the Fedora package.
Debian http://packages.debian.org/sid/hostapd ( [wpa_1.0-3.debian.tar.gz] ).
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Well, one of the options that you have used seems to require the non existing demangle.h .
Please try out the config file that includes the options shown in post # 2.
1) Delete .config
2) Copy the attached config.txt to hostapd-1.0/hostapd/
3) Rename config.txt to .config
.... And run 'make'.
.
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332
Original Poster
Rep:
Knudfl,
Thank you very much for your patience.
I deleted the source directory for hostapd, un-tar'ed from source again, used the config.txt you provided, and make && make install worked with no errors or problems.
I don't know what option in my previous config file caused the demangle.h problem; still cannot figure that out.
Reviewing your config.txt -- am I seeing correctly that hostapd default is to build with support for wpa and wpa2?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.