Subject: Re: pkg/12452: "kdeutils2" package can't be built
To: None <netbsd-bugs@netbsd.org>
From: Mario Kemper <magick@bundy.lip.owl.de>
List: netbsd-bugs
Date: 03/22/2001 19:24:14
Matthias Scheler <tron@colwyn.zhadum.de> writes:

> /bin/sh ../libtool --mode=compile --tag=CXX c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/qt2/include -I/usr/X11R6/include  -I/usr/pkg/include -I/usr/X11R6/include    -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin -O2 -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -c disks.cpp
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/qt2/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/X11R6/include -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin -O2 -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -c disks.cpp  -fPIC -DPIC -o .libs/disks.o
> disks.moc: In function `static class QMetaObject * DiskEntry::staticMetaObject()':
> In file included from disks.cpp:32:
> disks.moc:200: initialization to `void (DiskEntry::*)(DiskEntry *, int)' from `void (DiskEntry::*)(DiskEntry *, int * (*)())'
> disks.moc:200: conversion to `void (DiskEntry::*)(DiskEntry *, int)' from `void (DiskEntry::*)(DiskEntry *, int * (*)())'
> disks.moc: At top level:
> In file included from disks.cpp:32:
> disks.moc:261: prototype for `void DiskEntry::sysCallError(class DiskEntry *, int)' does not match any in class `DiskEntry'
> disks.h:85: candidate is: void DiskEntry::sysCallError(class DiskEntry *, int * (*)())

There is a prototype for the class member with:
DiskEntry::sysCallError(class DiskEntry *, int errno);

Just as a hint.  For some reason the compiler interprets errno as a function prototype.

I fixed it by renaming errno to errn.
-- 
Mario Kemper
magick@bundy.zhadum.de