LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-09-2012, 05:28 AM   #1
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Rep: Reputation: 30
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.

Thank you for any guidance.
 
Old 11-09-2012, 09:43 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Code:
cd hostapd-1.0/hostapd/
cat defconfig | sed -e '/^#CONFIG_DRIVER_NL80211=y/s/^#//' \
                        -e '/^#CONFIG_RADIUS_SERVER=y/s/^#//' \
                        -e '/^#CONFIG_DRIVER_WIRED=y/s/^#//' \
                        -e '/^#CONFIG_DRIVER_NONE=y/s/^#//' \
                        -e '/^#CONFIG_IEEE80211N=y/s/^#//' > .config

make
No issues with the 32bits Slackware 14.

Ref. the file hostapd.spec , hostapd-1.0-3.fc18.src.rpm

.
 
Old 11-09-2012, 02:17 PM   #3
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by knudfl View Post
Ref. the file hostapd.spec , hostapd-1.0-3.fc18.src.rpm
I do not have a hostapd.spec file.
What does yours tell you?

The hostapd fedora rpm works on Slack 14?

Last edited by Sum1; 11-09-2012 at 02:19 PM.
 
Old 11-09-2012, 02:54 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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] ).

.
 
Old 11-09-2012, 03:20 PM   #5
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
I must be misunderstanding what to do.
I tried the following:

Code:
root@box:/usr/local/hostapd-1.0/hostapd# cat defconfig | sed -e '/^#CONFIG_DRIVER_NL80211=y/s/^#//' \
>                         -e '/^#CONFIG_RADIUS_SERVER=y/s/^#//' \
>                         -e '/^#CONFIG_DRIVER_WIRED=y/s/^#//' \
>                         -e '/^#CONFIG_DRIVER_NONE=y/s/^#//' \
>                         -e '/^#CONFIG_IEEE80211N=y/s/^#//' > .config
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#
 
Old 11-09-2012, 04:10 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
A simpler way of creating the file ".config" ( by using the example defconfig ) :

cd hostapd-1.0/hostapd/ && cp -a defconfig .config
... And then run 'make'.
 
Old 11-09-2012, 04:38 PM   #7
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
Yes, I originally created the .config file as recommended by the README --- edited defconfig and then saved to .config

But then make always gives the demangle.h error and I cannot understand how to fix it or work around it.
 
Old 11-09-2012, 05:00 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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'.
.
Attached Files
File Type: txt config.txt (8.2 KB, 41 views)

Last edited by knudfl; 11-09-2012 at 05:02 PM.
 
Old 11-09-2012, 05:19 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The file hostapd.defconfig from the Slackbuild hostapd-0.6.10 works too in 1.0 :
http://slackbuilds.org/repository/14.0/network/hostapd/
> http://slackbuilds.org/slackbuilds/1...hostapd.tar.gz

The same again : Delete .config, and use hostapd.defconfig as .config
 
Old 11-10-2012, 05:51 AM   #10
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
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?

Thanks again for your patience and guidance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installation of 96.43 Nvidia driver in Zenwalk fails: fatal error- no screens found slipstream5 Zenwalk 6 03-16-2012 03:14 AM
Installation of 96.43 Nvidia driver in Zenwalk fails: fatal error- no screens found (closed) slipstream5 Zenwalk 1 03-11-2012 03:45 PM
Fatal error, CentOS fails to boot, plan of attack needed Scotsguy101 Linux - General 1 11-18-2011 09:40 AM
make: Fatal error: Command failed for target `all-recursive' vous Linux - Software 1 07-13-2009 07:23 AM
Graphics Install fails with a fatal media/hardware error rraghuram Fedora - Installation 4 08-10-2005 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration