Ryan Schmidt | 18 Apr 2010 14:06
Favicon

arla and Mac OS X 10.6 Snow Leopard

We have a port for arla in MacPorts, but it hasn't been upgraded past version 0.35.11. In trying to upgrade it
to 0.90 today, I ran into many problems. Beginning at the beginning:

checking for readline... no
checking for tgetent... no
configure: error: Could not find tgetent, needed by edit/editline

Looking in the config.log:

configure:7162: checking for tgetent
configure:7190: /usr/bin/gcc-4.2 -o conftest  -DKERNEL -D_KERNEL
-I/System/Library/Frameworks/Kernel.framework/Headers -static -DDIAGNOSTIC -DUSE_SELECT
-DMACH_USER_API -traditional-cpp -traditional-cpp  -DKERNEL -D_KERNEL
-I/System/Library/Frameworks/Kernel.framework/Headers -static -DDIAGNOSTIC -DUSE_SELECT
-DMACH_USER_API -traditional-cpp -traditional-cpp -L/opt/local/lib -flat_namespace conftest.c     >&5
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
configure:7190: $? = 1

I believe the fault here is the following lines of your configure.in:

  case "$nnpfs_target" in
    darwin[[789]].*)
          ;;
    *) 
	  KERNEL_CPPFLAGS="${KERNEL_CPPFLAGS} -traditional-cpp"
	  CPPFLAGS="${KERNEL_CPPFLAGS} -traditional-cpp"
	  CFLAGS="${KERNEL_CPPFLAGS} -traditional-cpp"
	  ;;
  esac
(Continue reading)

Tomas Olsson | 18 Apr 2010 21:16
Picon
Picon
Favicon

RE: arla and Mac OS X 10.6 Snow Leopard

Ryan Schmidt writes:
> I encounter several other problems after this, so perhaps I should
> just leave it at this for now and ask if you intend for arla to work
> on Mac OS X at all these days. If you do, I'll be happy to share
> my further problem reports with you.
>
There isn't much arla development going on nowadays. We did a huge
rewrite for Tiger, but I don't think we've kept up with things since
then. That said, if you send patches I'm happy to commit them.

The proposed fix looks ok, but from a quick look a few lines up in
configure.in I guess you need to start by looking at all darwin
references, there are probably more of them that are broken.
Removing support for ancient OS releases is ok too.

thanks
    /t

Gmane