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
On Mon, 6 Nov 2006 12:19:39 +0100 Jorg.Schulz@systeam.se wrote:
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
Mr Senior Konsult, I've no knowledge of ndoutils, but I bet you forgot something essential here.. I'd suggest some consulting of other ports for references.
}
//treach
On Mon, Nov 06, 2006 at 12:19:39PM +0100, Jorg.Schulz@systeam.se wrote:
Hi
Hey,
My Pkgfile looks like the following
cd $name-$version ./configure --with-mysql-lib=/usr/lib/mysql make
[..]
=======> 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.
The archive is empty, since you did not install anything after compiling. Try adding something like 'make DESTDIR=$PKG install' after 'make' in the build() function. (just a guess, it really depends on the package) Regards, Simone
On Mon, Nov 06, 2006 at 12:19:39PM +0100, Jorg.Schulz@systeam.se wrote:
I would like to create my own package called ndoutlis
My Pkgfile looks like the following [...] 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 ----.
Hi, please attach the error log and the Pkgfile to your mail at the next time. That makes it much easier to read. The build process failed because there are no files in the $PKG directory. You have to use something like this: $ cp $SRC/foobar $PKG/foobar or usually: $ make DESTDIR=$PKG install You can have a look at one of my ports where I am doing this [1]. Regards [1] http://hometux.de/crux/ports/dokuwiki/Pkgfile
participants (4)
-
Jorg.Schulz@systeam.se
-
Simon Gloßner
-
Simone Rota
-
treach