So I nuked macports and reinstalled the required libraries and ledger
built cleanly. Unfortuantely now I get the following error:
09:06:09 ~/ledger > ./ledger bal
get_str.c:153: MPFR assertion failed: size_s1 >= m
Abort trap: 6
09:06:15 ~/ledger >
If I specify an account it will work:
09:06:15 ~/ledger > ./ledger bal Joint
$ 362.10 Assets:VWCU:Joint
09:08:35 ~/ledger >
Anyway, this looks like a local problem. I am still not sure how to
deconflict the mpfr I have in /usr/local/lib with the macports mpfr in
opt/local/lib/ I renamed the /usr/local/lib libraries just to see if
I could get ledger to link against the maports version, but the build
failed saying it had no recipe for /usr/local/lib/libmpfr.a
On Mon, May 21, 2012 at 5:14 AM, Craig Earls <[email protected]> wrote:
> It gets even more interesting. I have two libmpfr.a One in
> /opt/local/lib and one in /use/local/lib let me sort out what is
> happening.
>
> On Sun, May 20, 2012 at 9:24 PM, John Wiegley <[email protected]> wrote:
>>>>>>> Craig Earls <[email protected]> writes:
>>
>>> Linking CXX executable ../ledger ld: warning: ignoring file
>>> /usr/local/lib/libmpfr.a, file was built for archive which is not the
>>> architecture being linked (x86_64)
>>
>> This is the problem. Can you run "file" on that archive? And "ar xv" on it,
>> and then "file" on its contents? It sounds like the library is 32-bit, but
>> you are linking 64-bit...
>>
>> John
>
>
>
> --
> Craig, Corona De Tucson, AZ
> enderw88.wordpress.com
--
Craig, Corona De Tucson, AZ
enderw88.wordpress.com