Opened 14 years ago

Last modified 14 years ago

#24193 closed defect

I can't use Cunit , installed but doesn't work. 10.6 — at Initial Version

Reported by: iliesaya@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: cunit

Description

Hi everybody,

I'm using mac os x 10.6 (snow leopard). Macport is installed, and i followed this tutorial to install Cunit ( http://cunit.darwinports.com/ )

$ port installed The following ports are currently installed:

cunit @2.1-0_1 (active) ncurses @5.7_0+darwin_10 (active) ncursesw @5.7_0+darwin_10 (active)

When I try to use it like this :

#include "CUnit/Basic.h" and in my Makefile CC = gcc -lcunit

I get this kind of error:

error: CUnit/Basic.h: No such file or directory

If I compile like this : $ gcc -I/opt/local/include/ -L/opt/local/lib irc.c -lcunit -o irc there is no error, it compile , but at the execution I get this:

$ ./irc 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

:( What can I do ? May be my $PATH variable is wrong:

$ echo $PATH /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/X11R6/bin

Please help me, I really need to use Cunit.

Thank you.

Change History (0)

Note: See TracTickets for help on using tickets.