Hi

 

Crux2.2

 

I would like to create my own package called” ndoutlis”

My Pkgfile looks like the following

 

Name=ndoutils

Version=1.3.1

Release=1

source=(http://<myserver>/nagios-install/$name/$name-$version.tar.gz)

 

build () {

 

        cd $name-$version

        ./configure --with-mysql-lib=/usr/lib/mysql

        make     

}

 

So far so good, the ./configure runs fine, but when the compiler (make) runs iget the following error

 

+ make all DESTDIR=/usr/ports/nagiosinst/ndoutils/work/pkg

cd ./src/; make ; cd ..

make[1]: Entering directory `/usr/ports/nagiosinst/ndoutils/work/src/ndoutils-1.3.1/src'

gcc -O2 -march=i686 -pipe -DHAVE_CONFIG_H  -c -o io.o io.c

gcc -O2 -march=i686 -pipe -DHAVE_CONFIG_H  -c -o utils.o utils.c

gcc -O2 -march=i686 -pipe -DHAVE_CONFIG_H  -o file2sock file2sock.c io.o utils.o   -lm -lnsl

gcc -O2 -march=i686 -pipe -DHAVE_CONFIG_H  -o log2ndo log2ndo.c io.o utils.o   -lm -lnsl

make ndo2db-2x

make[2]: Entering directory `/usr/ports/nagiosinst/ndoutils/work/src/ndoutils-1.3.1/src'

gcc -O2 -march=i686 -pipe -DHAVE_CONFIG_H  -c -o db.o db.c

gcc -O2 -march=i686 -pipe -DHAVE_CONFIG_H  -D BUILD_NAGIOS_2X -c -o dbhandlers-2x.o dbhandlers.c

gcc -O2 -march=i686 -pipe -DHAVE_CONFIG_H   -D BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c dbhandlers-2x.o io.o utils.o db.o  -L/usr/li b/mysql  -lnsl -lmysqlclient

make[2]: Leaving directory `/usr/ports/nagiosinst/ndoutils/work/src/ndoutils-1.3.1/src'

make ndo2db-3x

make[2]: Entering directory `/usr/ports/nagiosinst/ndoutils/work/src/ndoutils-1.3.1/src'

gcc -O2 -march=i686 -pipe -DHAVE_CONFIG_H  -D BUILD_NAGIOS_3X -c -o dbhandlers-3x.o dbhandlers.c

gcc -O2 -march=i686 -pipe -DHAVE_CONFIG_H   -D BUILD_NAGIOS_3X -o ndo2db-3x ndo2db.c dbhandlers-3x.o io.o utils.o db.o  -L/usr/li b/mysql  -lnsl -lmysqlclient

make[2]: Leaving directory `/usr/ports/nagiosinst/ndoutils/work/src/ndoutils-1.3.1/src'

make ndomod-2x.o

make[2]: Entering directory `/usr/ports/nagiosinst/ndoutils/work/src/ndoutils-1.3.1/src'

gcc -fPIC -O2 -march=i686 -pipe -DHAVE_CONFIG_H  -D BUILD_NAGIOS_2X -o ndomod-2x.o ndomod.c io.o utils.o -shared   -lnsl

make[2]: Leaving directory `/usr/ports/nagiosinst/ndoutils/work/src/ndoutils-1.3.1/src'

make ndomod-3x.o

make[2]: Entering directory `/usr/ports/nagiosinst/ndoutils/work/src/ndoutils-1.3.1/src'

gcc -fPIC -O2 -march=i686 -pipe -DHAVE_CONFIG_H  -D BUILD_NAGIOS_3X -o ndomod-3x.o ndomod.c io.o utils.o -shared   -lnsl

make[2]: Leaving directory `/usr/ports/nagiosinst/ndoutils/work/src/ndoutils-1.3.1/src'

gcc -O2 -march=i686 -pipe -DHAVE_CONFIG_H  -o sockdebug sockdebug.c io.o utils.o   -lm -lnsl

make[1]: Leaving directory `/usr/ports/nagiosinst/ndoutils/work/src/ndoutils-1.3.1/src'

=======> Build result:

tar: *: Cannot stat: No such file or directory

tar: Error exit delayed from previous errors

=======> ERROR: Building '/usr/ports/nagiosinst/ndoutils/ndoutils#1.3.1-1.pkg.tar.gz' failed.

 

-- Packages where install failed

Ndoutils

 

This should not be a problem , but I don´t now whats wrong …

The clue is that I need some compiled files from the /src directory ----.

Thanks for reply

 

Regards

 

/Jörg

 

 

 

 

 

Mvh

Jörg Schulz
Senior Konsult

Linux/Unix/Novell/Windows/Networking
SYSteam Kalmar AB

Strömgatan 15
Box 99
S-391 21 Kalmar

Direkt 0480-456638
Mobil 0708-157806
E-Post jorg.schulz@systeam.se
http://www.systeam.se