Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2000 18:24:16 +0200 (MET DST)
From:      Bart Thate <freebsd@1st.dudi.org>
To:        Michael Harnois <mdharnois@home.com>
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: libgtop compile fails
Message-ID:  <Pine.LNX.3.95.1000525181603.22237B-100000@node1457.a2000.nl>
In-Reply-To: <86hfbnd3yz.fsf@mharnois.workgroup.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On 24 May 2000, Michael Harnois wrote:

> cc -DHAVE_CONFIG_H -I. -I. -I../.. -D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -I../.. -I../.. -I../../sysdeps/freebsd -I../../include -I../../intl -I/usr/X11R6/include -DNEED_GNOMESUPPORT_H -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -O -pipe -march=i686 -Wall -Wunused -I/usr/X11R6/include -DGLIBTOP_GUILE -DGLIBTOP_GUILE_NAMES -I/usr/local/include -DGTOPLOCALEDIR=\"/usr/local/share/locale\" -DLIBGTOP_VERSION=\"1.0.7\" -DLIBGTOP_SERVER_VERSION=\"5\" -DLIBGTOP_VERSION_CODE=1000007 -DLIBGTOP_SERVER=\"/usr/local/bin/libgtop_server\" -I/usr/local/include -O -pipe -march=i686 -Wall -Wunused -c msg_limits.c  -fPIC -DPIC -o .libs/msg_limits.lo
> msg_limits.c: In function `glibtop_init_msg_limits_p':
> msg_limits.c:85: sizeof applied to an incomplete type
> msg_limits.c:85: sizeof applied to an incomplete type
> msg_limits.c: In function `glibtop_get_msg_limits_p':
> msg_limits.c:105: invalid use of undefined type `struct msginfo'
> msg_limits.c:106: invalid use of undefined type `struct msginfo'
> msg_limits.c:107: invalid use of undefined type `struct msginfo'
> msg_limits.c:108: invalid use of undefined type `struct msginfo'
> msg_limits.c:109: invalid use of undefined type `struct msginfo'
> msg_limits.c: At top level:
> msg_limits.c:66: storage size of `_msginfo' isn't known
> gmake[3]: *** [msg_limits.lo] Error 1
> gmake[3]: Leaving directory `/usr/ports/devel/libgtop/work/libgtop-1.0.7/sysdeps/freebsd'
> gmake[2]: *** [all-recursive] Error 1


The msginfo struct is defined in /usr/include/sys/msg.h. It wrapped in a 
if _KERNEL  instead of the if KERNEL that msg_limits.c uses.


from msg_limits.c :

/* #define KERNEL to get declaration of `struct msginfo'. */

#if (defined __FreeBSD__) || (defined __bsdi__)
#define KERNEL 1
#else
#define _KERNEL 1
#endif

#include <sys/ipc.h>
#include <sys/msg.h>


so changing the #define KERNEL 1 to #define _KERNEL 1 made the port
compile for me .. . I have no idea what should be the proper fix though.

Hope this helps,


Bart.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.95.1000525181603.22237B-100000>