cleanname: not found on FreeBSD

Issue #121 new
Sevan Janiyan
created an issue

Trying to build on FreeBSD-CURRENT From stock source, executing ./INSTALL:

* Building everything (be patient)...
>>> cd /usr/ports/devel/plan9port/work/plan9port/src/libmach; mk all               
9c -I. FreeBSD.c
FreeBSD.c:75: warning: assignment from incompatible pointer type
FreeBSD.c:82: warning: assignment from incompatible pointer type
>>> cd /usr/ports/devel/plan9port/work/plan9port/src/cmd; mk all       
9l -o o.9import 9import.o 
/usr/ports/devel/plan9port/work/plan9port/src/libthread/pthread.c:113: undefined reference to `pthread_create'
mk: 9l -o o.9import ...  : exit status=exit(1)
mk: for i in ...  : exit status=exit(1)

From ports:

* Building everything (be patient)...
>>> cd /usr/ports/devel/plan9port/work/plan9port/src/libmach; mk all               
9c -I. FreeBSD.c
FreeBSD.c:75: warning: assignment from incompatible pointer type
FreeBSD.c:82: warning: assignment from incompatible pointer type
>>> cd /usr/ports/devel/plan9port/work/plan9port/src/cmd; mk all       
9l -o o.9import 9import.o 
/usr/ports/devel/plan9port/work/plan9port/src/libthread/pthread.c:113: undefined reference to `pthread_create'
mk: 9l -o o.9import ...  : exit status=exit(1)
mk: for i in ...  : exit status=exit(1)
/bin/rm -rf `/usr/bin/find /usr/ports/devel/plan9port/work/plan9port/dist -type f ! -regex ".*\.png"`
/bin/rm -rf `/usr/bin/find /usr/ports/devel/plan9port/work/plan9port -name .hg -o -name .cvsignore`
( cd /usr/ports/devel/plan9port/work &&  /usr/bin/find plan9port -type f -a ! -path "plan9/man/man[0-9]/*.[0-9]*";  for D in plan9/log  plan9/bin/lpbin  plan9/9pm/Windows/386/bin  plan9/9pm/Plan9/386/lib  plan9/dist/debian  plan9/dist/pkg; do  echo "@exec /bin/mkdir -p /usr/local/${D}";  done;  /usr/bin/find plan9port -type d | /usr/bin/sort -r | /usr/bin/sed -e 's|^|@dirrm |';  ) > /usr/ports/devel/plan9port/work/.PLIST
[X61s]:/usr/ports/devel/plan9port% make install 
===>  Installing for plan9port-20130105
===>   plan9port-20130105 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   plan9port-20130105 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found
===>   plan9port-20130105 depends on file: /usr/local/libdata/pkgconfig/xi.pc - found
===>   plan9port-20130105 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - found
===>   Generating temporary packing list
===>  Checking if devel/plan9port already installed
===>  Switching to root credentials for 'install' target
/bin/cp -Rp /usr/ports/devel/plan9port/work/plan9port /usr/local
cd /usr/local/plan9 && /usr/bin/env PLAN9=/usr/local/plan9 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/sevan/bin:/usr/local/plan9/bin  /bin/sh /usr/ports/devel/plan9port/work/plan9port/lib/moveplan9.sh /usr/ports/devel/plan9port/work/plan9port
/usr/ports/devel/plan9port/work/plan9port/lib/moveplan9.sh: cleanname: not found
/usr/ports/devel/plan9port/work/plan9port/lib/moveplan9.sh: cleanname: not found
cleanname failed
*** [post-install] Error code 2

Stop in /usr/ports/devel/plan9port.
*** [/usr/ports/devel/plan9port/work/.install_done.plan9port._usr_local] Error code 1

Comments (4)

  1. Aymeric Mansoux

    To be able to compile plan9port on -CURRENT and prior to plan9port-20130320.tgz you need to have the following in your INSTALL script (~line 48 if you like):

     if [ `uname` = FreeBSD ]; then
            echo "* Running on FreeBSD, adjusting linker flags"
            echo "LDFLAGS='-L/usr/local/lib -pthread'" >> $PLAN9/config
     fi
    
  2. Log in to comment