Solved

Compiling C++ in Fedora

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

778 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