Solved

Compiling C++ in Fedora

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

896 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

11 Experts available now in Live!

Get 1:1 Help Now