I downloaded from the enlightenment site some time ago (? a week? it
takes me some time to set up) . Pawn the P-code extension language . I
have just given up trying to build it , the cell fault is more than a
couple of brackets and an ifndef .
I enclose a build log and configuration file if my usage of cmake is
at fault ( It may be ).
awaiting a responce
B.S.J.W.S
#!/bin/sh
#
# $Id: pawn.SlackBuild 216 2005-01-21 17:47:02Z freerock $
CWD=`pwd`
TMP=${TMP:-/tmp}
PKG=$TMP/package-pawn
VERSION=4.0.4548.nftc
ARCH=${ARCH:-x86_64}
BUILD=1
if [ ! -d $TMP ]; then
mkdir -p $TMP # location to build the source
fi
rm -rf $PKG
mkdir -p $PKG
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
rm -r $TMP/pawn-$VERSION
cd $TMP
tar xjf $CWD/pawn-$VERSION.tar.bz2
cd $TMP/pawn-$VERSION
#CFLAGS="$SLKFLAGS " \
#./configure --prefix=/usr/Xorg/X11R7.6 --localedir=/usr/share/locale
#
# --pkg-config=/usr/lib/pkgconfig
#Options:
# <dir> = Project binary directory to be built.
# --target <tgt> = Build <tgt> instead of default targets.
# --config <cfg> = For multi-configuration tools, choose <cfg>.
# --clean-first = Build target 'clean' first, then build.
# (To clean only, use --target 'clean'.)
# -- = Pass remaining options to the native tool.
mkdir build
cd build
cmake ../source/compiler -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
#cd source/compiler
# cmake --config Unix Makefiles
# --config unix \
# --build
# ../source/compiler
# -DCMAKE_INSTALL_PREFIX=/usr \
# -DCMAKE_BUILD_TYPE=Release
make -j2
make install DESTDIR=$PKG
chown -R root.bin $PKG/usr/sbin
mkdir -p $PKG/usr/lib/pkgconfig
mv $PKG/usr/Xorg/X11R7.6/lib/pkgconfig $PKG/usr/lib/
mv $PKG/usr/Xorg/X11R7.6/share/pkgconfig $PKG/usr/lib/
mkdir -p $PKG/usr/share/aclocal
mv $PKG/usr/Xorg/X11R7.6/share/aclocal $PKG/usr/share/
mkdir -p $PKG/usr/doc
mv $PKG/usr/Xorg/X11R7.6/doc $PKG/usr/
mkdir -p $PKG/usr/share/man
mv $PKG/usr/Xorg/X11R7.6/share/man $PKG/usr/share
mkdir -p $PKG/usr/share/doc
mv $PKG/usr/Xorg/X11R7.6/share/doc $PKG/usr/share/
mkdir -p $PKG/usr/doc/pawn-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \
TODO \
$PKG/usr/doc/pawn-$VERSION
find $PKG/usr/doc/pawn-$VERSION/ -type f -exec chmod 644 {} \;
chown root.root $PKG/usr/doc/pawn-$VERSION/*
# strip:
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs
strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs
strip --strip-unneeded 2> /dev/null
)
gzip -9 $PKG/usr/share/man/*/*
gzip -9 $PKG/usr/info/*
mkdir -p $PKG/install
cat $CWD/slack-required > $PKG/install/slack-required
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh >> $PKG/install/doinst.sh
cd $PKG
makepkg -l y -c n $TMP/pawn-$VERSION-$ARCH-$BUILD.tgz
# Clean up the extra stuff:
if [ "$1" = "--cleanup" ]; then
rm -rf $TMP/pawn-$VERSION
rm -rf $PKG
fi
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/local/bin/gcc
-- Check for working C compiler: /usr/local/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/c++
-- Check for working CXX compiler: /usr/local/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for alloca.h
-- Looking for alloca.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pawn-4.0.4548.nftc/build
Scanning dependencies of target pawndisasm
[ 5%] Building C object CMakeFiles/pawndisasm.dir/pawndisasm.c.o
Scanning dependencies of target pawncc
[ 11%] Building C object CMakeFiles/pawncc.dir/sc1.c.o
In file included from /tmp/pawn-4.0.4548.nftc/source/compiler/pawndisasm.c:27:0:
/tmp/pawn-4.0.4548.nftc/source/compiler/../amx/amx.h:503:4: error: #error
Unsupported cell size
make[2]: *** [CMakeFiles/pawndisasm.dir/pawndisasm.c.o] Error 1
make[1]: *** [CMakeFiles/pawndisasm.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /tmp/pawn-4.0.4548.nftc/source/compiler/sc.h:47:0,
from /tmp/pawn-4.0.4548.nftc/source/compiler/sc1.c:67:
/tmp/pawn-4.0.4548.nftc/source/compiler/../amx/amx.h:503:4: error: #error
Unsupported cell size[ 16%]
Building C object CMakeFiles/pawncc.dir/sc2.c.o
In file included from /tmp/pawn-4.0.4548.nftc/source/compiler/sc.h:47:0,
from /tmp/pawn-4.0.4548.nftc/source/compiler/sc2.c:26:
/tmp/pawn-4.0.4548.nftc/source/compiler/../amx/amx.h:503:4: error: #error
Unsupported cell size
make[2]: *** [CMakeFiles/pawncc.dir/sc1.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/pawncc.dir/sc2.c.o] Error 1
make[1]: *** [CMakeFiles/pawncc.dir/all] Error 2
make: *** [all] Error 2
make: *** No rule to make target `install'. Stop.
chown: cannot access `/tmp/package-pawn/usr/sbin': No such file or directory
mv: cannot stat `/tmp/package-pawn/usr/Xorg/X11R7.6/lib/pkgconfig': No such
file or directory
mv: cannot stat `/tmp/package-pawn/usr/Xorg/X11R7.6/share/pkgconfig': No such
file or directory
mv: cannot stat `/tmp/package-pawn/usr/Xorg/X11R7.6/share/aclocal': No such
file or directory
mv: cannot stat `/tmp/package-pawn/usr/Xorg/X11R7.6/doc': No such file or
directory
mv: cannot stat `/tmp/package-pawn/usr/Xorg/X11R7.6/share/man': No such file or
directory
mv: cannot stat `/tmp/package-pawn/usr/Xorg/X11R7.6/share/doc': No such file or
directory
cp: cannot stat `AUTHORS': No such file or directory
cp: cannot stat `COPYING': No such file or directory
cp: cannot stat `ChangeLog': No such file or directory
cp: cannot stat `INSTALL': No such file or directory
cp: cannot stat `NEWS': No such file or directory
cp: cannot stat `README': No such file or directory
cp: cannot stat `TODO': No such file or directory
chown: cannot access `/tmp/package-pawn/usr/doc/pawn-4.0.4548.nftc/*': No such
file or directory
gzip: /tmp/package-pawn/usr/share/man/*/*: No such file or directory
gzip: /tmp/package-pawn/usr/info/*: No such file or directory
cat: /home/WindowManagers/build/enlightenment-wm/pawn/doinst.sh: No such file
or directory
Slackware package maker, version 3.14159.
Searching for symbolic links:
No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.
This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!
Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n
Creating Slackware package: /tmp/pawn-4.0.4548.nftc-x86_64-1.tgz
./
usr/
usr/share/
usr/share/aclocal/
usr/share/man/
usr/share/doc/
usr/lib/
usr/lib/pkgconfig/
usr/doc/
usr/doc/pawn-4.0.4548.nftc/
install/
install/slack-required
install/doinst.sh
install/slack-desc
WARNING: zero length file install/slack-required
WARNING: zero length file install/doinst.sh
WARNING: zero length file install/slack-desc
WARNING: /usr/share/man (with possibly not gzipped man pages) detected
Slackware package /tmp/pawn-4.0.4548.nftc-x86_64-1.tgz created.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users