Solved

Compiling C++ in Fedora

Posted on 2009-06-30
4
1,251 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now