Symbol not found - CUnit on Snow Leopard - osx-snow-leopard

I just installed CUnit on Snow Leopard with MacPorts/DarwinPorts. The installation went fine, however, I get en error when trying to run the unit tests:
dyld: Symbol not found: _acs_map
Referenced from: /opt/local/lib/libcunit.1.dylib
Expected in: flat namespace
in /opt/local/lib/libcunit.1.dylib
Trace/BPT trap
Has anyone come across this problem or has anyone successfully got CUnit working on Snow Leopard some other way?

resolved by linking ncurses (-lncurses) in build.

Related

Error while loading shared libraries - Using CUnit on Netbeans

I am a newbie working with Cygwin and CUnit. I have to develop some Unit Tests using CUnit and Netbeans and I have followed the next tutorial:
https://netbeans.org/kb/docs/cnd/c-unit-test.html?print=yes#project
At the end, when I was trying to run the first example test I got stocked by an error:
0 [main] make 4380 C:\cygwin\bin\make.exe: *** fatal error - error while loading shared libraries: /cygdrive/C/Program Files/NetBeans 8.0.2/ide/bin/nativeexecution/Windows-x86_64/unbuffer.dll: cannot open shared object file: Exec format error
448 [main] make 4380 open_stackdumpfile: Dumping stack trace to make.exe.stackdump
I don't know if this has relation to the Cygwin version I have, I have a computer running Windows 7 Enterprise 64bits edition. I have configured my C project to use Cygwin 64bits edition...
Could you please share any idea about how I can solve this?
Thanks!
I had a similar issue, but in my case I was trying to run CppUnit tests in Netbeans. I was using make provided by MSYS2 and it was failing to load unbuffer.dll, but error was "No such file or directory". I switched the make from MSYS2 for the one found in MSYS and the error went away. You could try this as a workaround.
I found sole here:
https://bz.apache.org/netbeans/attachment.cgi?id=164026&action=edit
Need download new version of unbuffer.dll.
Yar

Upgraded to Mavericks, C compiler cannot create executables

Upgrading to Mavericks, I appear to have broken my Ruby on Rails development environment, which requires ruby 1.9.3 because of various gem dependencies. Within that app directory, I'm trying to reinstall ruby 1.9.3-p547:
rvm reinstall ruby-1.9.3-p547
I then get an error:
checking whether the C compiler works... no
configure: error: in `/Users/dsfaulkenberry/.rvm/src/ruby-1.9.3-p547':
configure: error: C compiler cannot create executables
Looking at the config.log file (~/.rvm/src/ruby-1.9.3-p547/config.log), I see:
dyld: Library not loaded: /usr/local/opt/cloog-ppl015/lib/libcloog.0.dylib
Referenced from: /usr/local/Cellar/gcc46/4.6.4/gcc/libexec/gcc/x86_64-apple-darwin12.4.0/4.6.4/cc1
Reason: image not found
I can see that other people have encountered issues vis-à-vis upgrading to Mavericks and having c compiler issues, but I can't find any referencing this specific library or what I should do (reinstall gcc? is that even a thing I can do?)
Many solutions mention accepting an XCode license agreement, which I have done, and the problem persists.
Reinstalling gcc46 solved the issue for me:
brew uninstall gcc46 && brew install gcc46

How to get FFTW working

I am having problems getting FFTW 3.3 to work on my system.I downloaded the files from the fftw.org website, and then followed the installation instructions which told me to go to the terminal and type
./Configure
make
and everything seemed OK, but when I try and use FFTW in my C code by using the include<fft3> statement I get the fatal error
fatal error: 'fftw3.h' file not found
Does anyone know what I am doing wrong?
My IDE: Eclipse, My System: OSX 10.8
./configure
make
make install
You forgot the install command.

libavdevice.dylib is the wrong version, how do I update it?

I am running osx 10.9 mavericks and unfortunately DaVinci Resolve no longer works. I think it has a possibility of working as the error message I get is this:
Dyld Error Message:
Library not loaded: #executable_path/../Libraries/libavdevice.dylib
Referenced from: /Applications/DaVinci Resolve.app/Contents/MacOS/Resolve
Reason: Incompatible library version: Resolve requires version 54.0.0 or later, but libavdevice.dylib provides version 52.0.0
I tried downloading ffmpeg and replacing the dylib but that didn't work. Anybody know how to update it?
I suggest using a package management tool Homebrew or MacPorts. My preference is Homebrew.
Alternatively you could install ffmpeg from source and get all the associated libav libraries

Having trouble installing PIL in Snow Leopard

I followed these instructions:
http://proteus-tech.com/blog/cwt/install-pil-in-snow-leopard/
And everything went as described.
However, at the end, I tried running:
python selftest.py
to verify that everything is working properly, but I get:
*** The _imaging C module is not installed
I then run the python interpreter and tried:
import _imaging
and get this error:
Traceback (most recent call last):
File "", line 1, in
ImportError: dlopen(/Library/Python/2.6/site-packages/PIL/_imaging.so, 2): Symbol not found: _jpeg_resync_to_restart
Referenced from: /Library/Python/2.6/site-packages/PIL/_imaging.so
Expected in: flat namespace
in /Library/Python/2.6/site-packages/PIL/_imaging.so
This is on my first Mac, so apologize if I'm missing anything obvious, but any help you could provide would be greatly appreciated.
Thanks!
The problem happens because jpeglib is not available as part of standard MAC OS X distribution for Leopard and Snow Leopard.
The solution is as follows:
- compile lib jpeg
- make sure tha libjpeg62.dylib is available on your DYLD_LIBRARY_PATH (you might like to put it in places like /usr/local/lib)
Useful instructions are available here
Ok, got it working thanks to Shailesh's help. First, I ran this:
otool -L /Library/Python/2.6/site-packages/PIL/_imaging.so
to see where the dependencies were. I removed those references to libjpeg, and then recompiled libjpeg and PIL (following the instructions in the link below) and then everything worked.
http://jetfar.com/libjpeg-and-python-imaging-pil-on-snow-leopard/

Resources