Hi Mark, thanks for your message. I was thinking of compiling a new gcc but want to exhaust the options with the built in 4.0.1 complier first since it is less work. There is an issue with the built-in autoconf. I'll need a new autoconf to recognize the new version of libtool properly. The version of libtool apple puts on the system is old and I believe is the source of the problem. Can you tell me what version of autoconf, automake and libtool are on your system. Would really appreciate this.

The two ./acprep stages I do first allows me to use autogen directly with configure. They get the other bits needed for the compile. ./ acprep update is a 'do it all for you' script. The parameters are not right for my locations so have chosen to use configure for control. In fact I had modified the acprep script for the stock compiler and locations in some of my initial attempts a few days ago. Its sort of an all or nothing approach with macports because I use /opt/local for my own builds and macports would want to use this as well. Its comforting to know that the macports solution works since it means I ought to be able to eliminate the blockers to successfully compiling without it. Many thanks.

Regards,
David


On 28-Mar-09, at 7:56 AM, Mark Carter wrote:


2009/3/27 David Pratt <[email protected]>:
My steps for 3.0a complile are

clone from git repo
./acprep submodule
./acprep version
sh ./autogen.sh
./configure --prefix=/tmp/ledger CPPFLAGS='-I/opt/local/include
-I/opt/local/include/boost-1_38 -I/opt/local/include/python2.5' LDFLAGS='-g -L/opt/local/lib -L/opt/local/lib/python2.5/config' CXXFLAGS='-ansi -Wall
-Wcast-align -Wcast-qual -Wfloat-equal -Wmissing-field-initializers
-Wno-endif-labels -Woverloaded-virtual -Wsign-compare -Wsign-promo
-Wstrict-null-sentinel -Wwrite-strings -Wno-old-style-cast -Wno- deprecated'
--with-boost-suffix=-xgcc40-mt-1_38
make
(doesn't make it past make at this point)

David. I might have some good news for you. I think there's a problem
with Apple's gcc, so maybe use one from Macports.

I did
sudo port install boost +python25+st gmp mpfr gettext libedit \
    cppunit texlive doxygen graphviz texinfo lcov            \
    sloccount pcre libofx expat gcc43

I'm not sure that gcc43 is strictly necessary, though.

Ensure that Apple's gcc isn't being used:
  if [ -f /usr/bin/gcc ] ; then mv /usr/bin/gcc.ori ; fi

Start a new shell, just to be sure.

Then I did
  git clone ledger temp
This should create a vanilla build directory.

Now do
  ./acprep update

This now builds successfully for me. I can do
  ./ledger
for deep accounting joy :)

Let me know how how you get on.

Regards,
Mark.

Reply via email to