Subject: many easy fixes for FreeBSD to be done
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/26/2005 00:01:52
Some notes from the bulk builds (non-root) from bunzip to fonts/jmk-font
... many easy fixes ...

(This took a while to do ... instead of sending multiple PRs and instead
of keeping my own private list of stuff to look at, I send here.)

===> Building for bunzip-0.21
cd /storage1/home/jreed/tmp/pkgsrc-work/archivers/bunzip/work.twinmp && cc
-O2 -
o bunzip bunzip021.c
In file included from bunzip021.c:120:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by
<stdlib.h>"
*** Error code 1

(common FreeBSD issue)

fastjar:
jargrep.c:576: error: label at end of compound statement


archivers/zziplib

In file included from ../zzip/lib.h:21,
                 from zip.c:14:
../zzip/zzip.h:83: error: syntax error before "zzip_ssize_t"


audio/amp

audioIO_Linux.c:45: error: `AFMT_S16_LE' undeclared (first use in this function)
audioIO_Linux.c:45: error: (Each undeclared identifier is reported only once
audioIO_Linux.c:45: error: for each function it appears in.)
audioIO_Linux.c:51: error: `SNDCTL_DSP_SETFMT' undeclared (first use in this function)
...

audio/libac3

cc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -Werror -O1 -g -c bitstream.c
bitstream.c: In function `bitstream_fill_current':
bitstream.c:94: warning: use of cast expressions as lvalues is deprecated


audio/maplay

In file included from obuffer.h:36,
                 from maplay.cc:48:
audio_includes.h:1:31: machine/soundcard.h: No such file or directory

audio/mixer.app

Mixer.cc:37:31: machine/soundcard.h: No such file or directory
Mixer.cc:53: error: `SOUND_MIXER_NRDEVICES' was not declared in this scope
Mixer.cc:53: error: `SOUND_DEVICE_NAMES' was not declared in this scope
Mixer.cc: In constructor `Mixer::Mixer(int, char**)':
Mixer.cc:99: error: `SOUND_MIXER_NRDEVICES' undeclared (first use this
function)
...

audio/mp3check

c++ -DHAVE_CONFIG_H -I. -I. -I.     -O2 -c mp3check.cc
In file included from tappconfig.h:25,
                 from mp3check.cc:29:
tmap.h: In member function `bool tmap<K, T>::contains(const K&) const':
tmap.h:57: error: there are no arguments to `end' that depend on a
template parameter, so a declaration of `end' must be available
tmap.h:57: error: (if you use `-fpermissive', G++ will accept your code,
but allowing the use of an undeclared name is deprecated)


audio/nspmod

dacio.c:6:40: sys/audioio.h: No such file or directory


audio/oss

=> Couldn't fetch oss398e-netbsd-v1.6.2.tar.gz - please try to retrieve
this


audio/splay

In file included from wavetoraw.cc:12:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by
<stdlib.h>"
wavetoraw.cc: In destructor `Wavetoraw::~Wavetoraw()':
wavetoraw.cc:25: error: `free' undeclared (first use this function)


audio/taglib

In file included from taglib.h:38,
                 from tstring.h:25,
                 from tstring.cpp:22:
id3lib_strings.h:124: error: redefinition of `struct
std::char_traits<wchar_t>'
/usr/include/c++/3.4/bits/char_traits.h:303: error: previous definition of
`struct std::char_traits<wchar_t>'


audio/tfmxplay

audio.c:11:29: linux/soundcard.h: No such file or directory
audio.c: In function `open_snddev':
audio.c:383: error: `SNDCTL_DSP_RESET' undeclared (first use in this
function)

audio/tracker

Arch/PCux/audio.c:34:31: machine/soundcard.h: No such file or directory

audio/wmmixer

mixctl.h:22:31: machine/soundcard.h: No such file or directory

audio/wmsmixer

mixctl.h:22:31: machine/soundcard.h: No such file or directory

audio/xcdplayer

In file included from cdrom_freebsd.c:25:
/usr/include/sys/buf.h:102: error: field `b_io' has incomplete type
cdrom_freebsd.c: In function `ushort_malloc':
cdrom_freebsd.c:562: warning: conflicting types for built-in function
'calloc'
*** Error code 1

audio/xmix

xmix.c:84:31: machine/soundcard.h: No such file or directory


audio/xwave

In file included from xwave.c:44:
types.h:55: error: syntax error before "ulong"
types.h:71: error: syntax error before "ulong"


benchmarks/bonnie

install   -c -s   -o root -g wheel -m 555 bonnie
/storage1/home/jreed/pkg/bin/bonnie
install: /storage1/home/jreed/pkg/bin/bonnie: chown/chgrp: Operation not
permitted

(needs to honor ROOT_USER and ROOT_GROUP or BINOWN and BINGRP)

benchmarks/dbench

util.c: In function `shm_setup':
util.c:60: error: `IPC_R' undeclared (first use in this function)
...
util.c:60: error: `IPC_W' undeclared (first use in this function)

benchmarks/nettest

make: don't know how to make FreeBSD. Stop


benchmarks/ttcp

pkg_create: can't stat `/storage1/home/jreed/pkg/man/cat1/ttcp.0'
pkg_create: can't stat `/storage1/home/jreed/pkg/man/man1/ttcp.1'


biology/profit

=> Checksum SHA1 mismatch for profit/profit.tar.gz.
=> Checksum RMD160 mismatch for profit/profit.tar.gz.


biology/rasmol

/usr/bin/install -c -s  rasmol /usr/X11R6/bin/rasmol
install: /usr/X11R6/bin/rasmol: Permission denied

(should use pkg/bin)


cad/pcb

error.c:56: error: conflicting types for 'sys_nerr'


cad/spice

/storage1/home/jreed/tmp/pkgsrc-work/cad/spice/work.twinmp/src/include/misc.h:85
: warning: conflicting types for built-in function 'malloc'
...
/usr/include/unistd.h:458: error: previous declaration of 'sbrk' was here


chat/bitchx

./term.c:95: error: conflicting types for 'tparm'
./term.c:95: note: a parameter list with an ellipsis can't match an empty
parameter name list declaration


chat/emech

link.c:1991: error: label at end of compound statement


chat/i2cbd

main.c:16:18: util.h: No such file or directory
main.c: In function `main':
main.c:109: warning: implicit declaration of function `pidfile'

chat/icb

In file included from panic.c:21:
./stdlib.h:44: warning: conflicting types for built-in function 'alloca'
./stdlib.h:45: warning: conflicting types for built-in function 'calloc'
./stdlib.h:46: warning: conflicting types for built-in function 'malloc'
./stdlib.h:145: warning: conflicting types for built-in function 'exit'
panic.c: In function `panic':
panic.c:49: error: 'format' redeclared as different kind of symbol
panic.c:42: error: previous definition of 'format' was here
panic.c:51: warning: second parameter of `va_start' not last named
argument


chat/licq-core

socket.cpp: In member function `bool TCPSocket::SecureConnect()':
socket.cpp:1015: error: ISO C++ forbids cast to non-reference type used as
lvalue


chat/scrollz

ircaux.c:872: error: `EAI_ADDRFAMILY' undeclared (first use in this
function)


chat/tirc

screen.c:69: error: syntax error before "CIRCLEQ_ENTRY"

comms/birda

install   -c -s   -o root -g wheel -m 555 ircomm
/storage1/home/jreed/pkg/bin/ir
comminstall: /storage1/home/jreed/pkg/bin/ircomm: chown/chgrp: Operation not
permitted

(ROOT_USER and ROOT_GROUP should be honoured)

comms/dl-ezkit

In file included from lserial.c:16:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by
<stdlib.h>"

comms/modemd

errwarn.c(54): syntax error [249]
errwarn.c(63): incomplete or misplaced function definition [22]

(lint errors)

comms/snooper

bmake: don't know how to make /usr/include/machine/ansi.h. Stop


converters/ack

install: /storage1/home/jreed/pkg/man/ja_JP.EUC/man1/ack.1: No such file
or directory

(need to INSTALLATION_DIRS= man/ja_JP.EUC/man1 ?)

converters/hztty

main.c:270: error: storage size of 'status' isn't known

cross/uisp

In file included from DAPA.C:78:
/usr/include/machine/cpufunc.h:59: error: `u_int' does not name a type
...


databases/metakit-lib

/bin/sh ./libtool --mode=install install -c -s -o jreed -g jreed -m 755
libmk4.la /storage1/home/jreed/pkg/lib
install -c -o jreed -g jreed -m 755 .libs/libmk4.lai
/storage1/home/jreed/pkg/lib/libmk4.la
install: .libs/libmk4.lai: No such file or directory


devel/aegis

chown 3 /storage1/home/jreed/pkg/share/aegis/en/man5/aeustate.5 && chgrp 3
/stor
age1/home/jreed/pkg/share/aegis/en/man5/aeustate.5
chown: /storage1/home/jreed/pkg/share/aegis/en/man5/aeustate.5: Operation
not permitted

What is uid 3 and gid 3?


devel/avltree

install    -c  -o root -g wheel -m 444  avltree.h
/storage1/home/jreed/pkg/include/avltree.h
install: /storage1/home/jreed/pkg/include/avltree.h: chown/chgrp:
Operation not permitted

(doesn't honor ROOT_USER and ROOT_GROUP or other)


devel/bcc

express.c:24: warning: conflicting types for built-in function 'exp2'


devel/boost-headers

env: /bin/bjam: No such file or directory


devel/byacc

bmake: cannot open Makefile.


devel/cdecl/

cdecl.c:940: error: `errno' undeclared (first use in this function)


devel/cscope

egrep.y:616: error: conflicting types for 'memset'
egrep.y:616: error: conflicting types for 'memset'

devel/cssc

delta.h: In member function `bool sccs_file::add_delta(mystring,
sccs_pfile&, my
list<mystring>, mylist<mystring>, bool)':
delta.h:82: error: `delta::delta(const delta&)' is private
sf-delta.cc:541: error: within this context


devel/electricfence

Testing Electric Fence.
After the last test, it should print that the test has PASSED.
./eftest

  Electric Fence 2.0.5 Copyright (C) 1987-1998 Bruce Perens.
*** Signal 10


devel/fortran-utils

fpr.c:83: warning: conflicting types for built-in function 'malloc'
fpr.c:84: warning: conflicting types for built-in function 'calloc'
fpr.c: In function `main':
fpr.c:127: error: too few arguments to function `gettext'

devel/libelf

In file included from ./private.h:93,
                 from begin.c:20:
./gelf.h:58: error: syntax error before "GElf_Sxword"
./gelf.h:58: warning: data definition has no type or storage class
./gelf.h:59: error: syntax error before "GElf_Xword


devel/libffi

configure: error: installation or configuration problem: C compiler cannot
create executables.

(I need to look at config.log but now removed.)

devel/libscsi

scsi.c:39:24: sys/scsiio.h: No such file or directory


devel/newmkdep

cc  -Wl,-R/storage1/home/jreed/pkg/lib  -o newmkdep newmkdep.o
bmake: don't know how to make newmkdep.cat1. Stop

devel/palmpower

splitprc.c:76: error: initializer element is not constant


devel/prcs

rebuild.cc: In member function `void RebuildFile::init_stream()':
rebuild.cc:1006: error: no matching function for call to
`__gnu_cxx::stdio_fileb
uf<char, std::char_traits<char> >::stdio_filebuf(int, const
std::_Ios_Openmode&,
 bool, const int&)'
/usr/include/c++/3.4/ext/stdio_filebuf.h:54: note: candidates are:
__gnu_cxx::st
dio_filebuf<char, std::char_traits<char> >::stdio_filebuf(const
__gnu_cxx::stdio
_filebuf<char, std::char_traits<char> >&)


devel/pmccabe

ksh ./testsuite
bmake: Exec of `ksh' failed (No such file or directory)


devel/pthread-sem

building shared semaphore library (version 1.0)
ld -nostdlib -x -shared -soname libsemaphore.so.1 -o libsemaphore.so.1.0
--wh
ole-archive libsemaphore_pic.a  --no-whole-archive -lpthread
-L//storage1/home/
jreed/pkg/lib /storage1/home/jreed/pkg/lib
/storage1/home/jreed/pkg/lib: file not recognized: File format not
recognized


devel/ptl2

In file included from ../so/stdio.c:16:
/usr/include/varargs.h:34:2: #error "<varargs.h> is obsolete with this
version o
f GCC."
/usr/include/varargs.h:35:2: #error "Change your code to use <stdarg.h>
instead.
"
../so/stdio.c:31: error: syntax error before "va_dcl"



devel/ruby-byaccr

In file included from defs.h:8,
                 from closure.c:6:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by
<stdlib.h>"
*** Error code 1


devel/ruby-installpkg

===>  Running install.rb to
env: /storage1/home/jreed/pkg/bin/ruby16: No such file or directory
*** Error code 127

devel/ruby-optparse

install -c -o jreed -g jreed -m 444
/storage1/home/jreed/tmp/pkgsrc-work/devel/ruby-optparse/work.twinmp/optparse-0.12/optparse.rb
/storage1/home/jreed/pkg/lib/
ruby/site_ruby/1.6
install: /storage1/home/jreed/pkg/lib/ruby/site_ruby/1.6: No such file or
directory


(mkdir RUBY_SITELIBDIR not done yet?)

devel/tcllib

error copying "./apps/dtplite" to "/usr/local/bin/dtplite": permission
denied
    while executing

(/usr/local/bin is definitely wrong!)


devel/trio

cd
/storage1/home/jreed/tmp/pkgsrc-work/devel/trio/work.twinmp/trio-1.3/man/man3
&& install -c -o jreed -g jreed -m 444 trio_printf.3 trio_scanf.3
trio_register.3 strio.3 /storage1/home/jreed/pkg/man/man3
install: wrong number or types of arguments

devel/xxgdb

command.c:389: error: storage size of 'status' isn't known


editors/beav

In file included from basic.c:10:
def.h:569: warning: conflicting types for built-in function 'malloc'
basic.c:12: error: conflicting types for 'move_ptr'


editors/elvis
/usr/bin/ld: cannot find -lipc


editors/ex

mapmalloc.c:556: error: conflicting types for 'valloc'
/usr/include/unistd.h:543: error: previous declaration of 'valloc' was
here
mapmalloc.c:556: error: conflicting types for 'valloc'

editors/mg2a

In file included from echo.c:9:
def.h:311: warning: conflicting types for built-in function 'malloc'
echo.c:107: error: conflicting types for 'ereply'
echo.c:107: note: a parameter list with an ellipsis can't match an empty
paramet
er name list declaration
echo.c:73: error: previous implicit declaration of 'ereply' was here

emulators/fmsx

SndUnix.c:32:25: sys/audioio.h: No such file or directory
SndUnix.c:35:21: stropts.h: No such file or directory


emulators/lrmi

lrmi.c:248: error: syntax error before "ucontext_t"
lrmi.c: In function `pushw':
lrmi.c:287: error: structure has no member named `uc'
...

emulators/pcemu

In file included from /usr/include/memory.h:36,
                 from mfs.c:355:
/usr/include/string.h:79: error: syntax error before "int"
mfs.c: In function `GetRedirection':
mfs.c:2443: warning: comparison is always true due to limited range of
data type


emulators/spim

=> Checksum SHA1 mismatch for spim-6.5/spim.tar.gz.
=> Checksum RMD160 mismatch for spim-6.5/spim.tar.gz.


emulators/swarm

uartctrl.cpp:70: error: `getpt' undeclared (first use this function

emulators/x48

serial.c: In function `serial_init':
serial.c:288: error: label at end of compound statement

emulators/xbeeb

VoxWare.c:54:24: sys/midiio.h: No such file or directory
VoxWare.c:64:23: soundcard.h: No such file or directory



emulators/xtrs

/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by
<stdlib.h>"


fonts/jmk-fonts/

+ mkdir -p /usr/X11R6/lib/X11/fonts/jmk
mkdir: /usr/X11R6/lib/X11/fonts/jmk: Permission denied

Doesn't honor xpkgwedge correctly?


 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/