Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144749 - fuzz stress test utility (new ebuild)
Summary: fuzz stress test utility (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://packages.ubuntu.com/breezy/dev...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-08-22 07:31 UTC by otg
Modified: 2007-11-26 19:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fuzz-0.6 ebuild (fuzz-0.6.ebuild,613 bytes, text/plain)
2006-08-22 12:19 UTC, Aggelos Orfanakos (RETIRED)
Details
fuzz-0.6-gentoo patch for sys_errlist (fuzz-0.6-gentoo.diff,375 bytes, patch)
2006-08-22 12:20 UTC, Aggelos Orfanakos (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description otg 2006-08-22 07:31:01 UTC
There doesn't seem to be an ebuild for the app fuzz - 
http://gentoo-portage.com/Search?search=fuzz

Fuzz is used to stress test programms, which seems useful to me in a source-based distro.

Further info e.g. -
http://packages.ubuntu.com/breezy/devel/fuzz
Comment 1 otg 2006-08-22 08:41:33 UTC
Due to the fact that the code seems to be quite old (2000) it doesn't compile on a modern gentoo. Thus gives:
gentoo fuzz-0.6 # ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for mawk... no
checking for gawk... gawk
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for readline in -lreadline... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for getcwd... yes
checking for strdup... yes
checking for strerror... yes
checking for snprintf... yes
checking for getopt_long... yes
using libc's getopt_long
updating cache ./config.cache
creating ./config.status
creating Makefile
gentoo fuzz-0.6 # make
gcc -DPACKAGE=\"fuzz\" -DVERSION=\"0.6\" -DHAVE_LIBREADLINE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_GETCWD=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_SNPRINTF=1  -I. -I.      -g -O2 -c fuzz.c
gcc -DPACKAGE=\"fuzz\" -DVERSION=\"0.6\" -DHAVE_LIBREADLINE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_GETCWD=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_SNPRINTF=1  -I. -I.      -g -O2 -c getopt.c
gcc -DPACKAGE=\"fuzz\" -DVERSION=\"0.6\" -DHAVE_LIBREADLINE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_GETCWD=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_SNPRINTF=1  -I. -I.      -g -O2 -c getopt1.c
gcc  -g -O2  -o fuzz  fuzz.o getopt.o getopt1.o  -lreadline
fuzz.o: In function `do_child':
/root/fuzzVersuch/fuzz-0.6/fuzz.c:815: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
gentoo fuzz-0.6 #     
Comment 2 Aggelos Orfanakos (RETIRED) gentoo-dev 2006-08-22 12:19:58 UTC
Created attachment 94881 [details]
fuzz-0.6 ebuild
Comment 3 Aggelos Orfanakos (RETIRED) gentoo-dev 2006-08-22 12:20:43 UTC
Created attachment 94882 [details, diff]
fuzz-0.6-gentoo patch for sys_errlist
Comment 4 Aggelos Orfanakos (RETIRED) gentoo-dev 2006-08-22 12:21:22 UTC
Hello.

As the error output says, the use of `sys_errlist' (http://www.mkssoftware.com/docs/man5/sys_errlist.5.asp) is deprecated and applications should use the `strerror' or `strerror_r' functions instead.

I've written (and attached) a patch that corrects the problem, as well as an ebuild for version 0.6 of fuzz which compiles and installs correctly on my system (x86). Please let me know if it works for you too.

If you need help on installing 3rd party ebuilds (like this one), please refer to: http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds

Regards.
Comment 5 otg 2006-08-24 05:42:50 UTC
Hi - following http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds
worked out except that I manually had to do the ebuild ... digest,  unpack, compile, install, qmerge.

My arch is x86.

emerge --info is:
Portage 2.1.1_pre5-r3 (default-linux/x86/no-nptl, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r5 i686)
=================================================================
System uname: 2.6.17-gentoo-r5 i686 AMD Athlon(TM) XP 2100+
Gentoo Base System version 1.12.4
Last Sync: Thu, 24 Aug 2006 09:30:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="de en ru"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt ctype cups dba dlloader dri eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile idn imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux lcms libg++ libwww linguas_de linguas_en linguas_ru mad memlimit mikmod mmx mng motif mozilla mp3 mpeg mysql ncurses nls nsplugin ogg opengl oss pam pcre pdflib perl png posix postgres pppd python qt qt3 qt4 quicktime readline reflection samba sdl session simplexml slang soap sockets spell spl ssl symlink tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa vorbis x86 xml xml2 xmms xorg xsl xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-11-26 18:35:50 UTC
committed as dev-util/fuzz.
agorf: since you wrote the ebuilds before you became a developer, I've included you as a maintainer.

Various ebuild review notes:
- never quote ${A}
- glibc is in the system set, and should not be explicitly included (also mucks with the alt guys)
- Use the debian patches rather than writing our own, they fix the sys_errlist as well as a $TMPDIR usage issue.
Comment 7 Aggelos Orfanakos (RETIRED) gentoo-dev 2007-11-26 19:03:24 UTC
ACK.