Solved

Compiling C++ in Fedora

Posted on 2009-06-30
4
1,257 Views
Last Modified: 2013-12-06

Hi there

I'm a complete newbie in Linux so please forigve me if this is a dumb quetion (as I suspect it is)

I'm having problems compiling an open source C++ project on Fedora. When I download and run the ./configure I eventually end up with.

.
.
.
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
./configure: line 15513: AX_CFLAGS_WARN_ALL: command not found
./configure: line 15514: AX_CXXFLAGS_WARN_ALL: command not found
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison
./configure: line 15784: AX_PROG_GPERF: command not found
checking trace option enabled... no
checking for getrusage... yes
checking time profiling enabled... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking forcing use of select... no
checking use pipes to communication between scheduler and dispatcher... no
./configure: line 16280: syntax error near unexpected token `1.39.0'
./configure: line 16280: `AX_BOOST_BASE(1.39.0)'

When I compiled the equivilant project in Windows I did need to install and update project references to Boost. I can see that this is related to boost but not sure why I would get a syntax error.

A few other things to note, the original source code in configure and configure.ac had references to boost 1.3.5 with the same compile errors (obviously with 1.3.5 in the error msg).

I have recently installed boost 1.3.9 and updated the source. Also note that when I tried to

 yum install boost

it reports I have 1.3.7 installed and that is the latest version. I did also try 1.3.7 inside the source code but I get the same problem. I just don't get why I would get a syntax error!

this is the code inside configure and configre.ac that throws the error

#BOOST
AX_BOOST_BASE(1.39.0)
AX_BOOST_THREAD

Any thoughts on where to go next would be great.
0
Comment
Question by:GillyTheTaffy
  • 2
4 Comments
 
LVL 8

Expert Comment

by:JIEXA
ID: 24744069
It seems that "./configure" script is broken.
0
 
LVL 18

Expert Comment

by:JoseParrot
ID: 24780176
Did you checked $BOOST_ROOT environment variable?
Also, try AX_BOOST_BASE([1.33.1]) instead of AX_BOOST_BASE(1.33.1)

Jose
 
0
 
LVL 18

Expert Comment

by:JoseParrot
ID: 24780185
Actuially, in your case, try AX_BOOST_BASE([1.39.0]) instead of AX_BOOST_BASE(1.39.0). The hint is on using [...].
Jose

0
 
LVL 1

Accepted Solution

by:
GillyTheTaffy earned 0 total points
ID: 24790377
Thanks for all the comments. It appeared there are lot of pre-requisites for building and even then I ran into more problems when running make. I managed to get some herlp off the Fedora Forum but in short, I needed to developer tools and developer libraries using yum. I'd figured that as I'd checked the developer/programming option during install these kind of dependencies would of been installed.

Anyhow, thanks again for the help
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question