Ticket #25083 (closed defect: invalid)
cppunit build fails: /usr/lib/system/libmathCommon.la
| Reported by: | macports@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.2 |
| Keywords: | Cc: | ryandesign@… | |
| Port: | cppunit |
Description (last modified by ryandesign@…) (diff)
Hello,
I am unable to build cppunit (a dependency for ffmpeg) on my system. I get an error:
grep: /usr/lib/system/libmathCommon.la: No such file or directory sed: /usr/lib/system/libmathCommon.la: No such file or directory libtool: link: `/usr/lib/system/libmathCommon.la' is not a valid libtool archive
I understand that this is related to the absence of *.la files on Snow Leopard, but I have not been able to find any workarounds or fixes to this problem. I have attempted uninstalling / cleaning / selfupdate / reinstalling, but no luck. I have also attempted to reinstall macports wholly (mv /opt/local /opt/local-2010.05.31, then re-installing from macports.org) but also had no luck.
This appears to be a general issue affecting macports on Snow Leopard. I also saw similar errors trying to compile the macports version of libtool, for example.
Are there any workaround for this problem?
Attachments
Change History
comment:3 Changed 3 years ago by jmr@…
- Owner changed from macports-tickets@… to mww@…
- Keywords /usr/lib/system/libmathCommon.la libtool removed
- Cc macports@… removed
- Summary changed from build fails: /usr/lib/system/libmathCommon.la (cppunit, dependency for ffmpeg) to cppunit build fails: /usr/lib/system/libmathCommon.la
Please remember to cc the maintainer, and note that you do not need to be in cc when you are the reporter.
comment:4 Changed 3 years ago by macports@…
uninstalled ports, reinstalled Snow Leopard, reinstalled XCode, patched OS up, and reinstalled Macports from svn. still receiving error, log attached.
comment:5 Changed 3 years ago by ryandesign@…
- Cc ryandesign@… added
- Description modified (diff)
We also have the report from you about this problem with gettext: #25159
I don't know why this is happening for you. I cannot reproduce the issue. I do not have the file /usr/lib/system/libmathCommon.la either; not sure why this file's absence is being considered a problem on your system.
comment:6 Changed 3 years ago by macports@…
Found fix, most conversation is on the gettext ticket. Posting fix data:
The difference was the presence of .la archives in /usr/lib confusing libtool. These were created with a modified version of fix-x11-lib.sh pulled from http://article.gmane.org/gmane.os.macosx.fink.devel/17289. I ran this sometime ago trying to get fink to work, and as we can tell it didn't work out. Removing the .la archives has caused gettext to build properly.


Cc Me!