BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

{bb} bbgen-3.5 - cant compile - union member: r_number



Dear all

I try to compile the bbgen-3.5 with cc or gcc but unfortunately till
know without success. The reason seems to be the same for the both compilers:


cc = undefined struct/union member: r_number
gcc = "bbtest-net.c", line 1929: undefined struct/union member: r_number

BBHOME/bbgen-3.5/Makefile
=========================
I had to change it to:

#CFLAGS = -g -O2 -Wall -Wno-unused -D_REENTRANT -DHAVE_RPCENT
CFLAGS = -g -DDEBUG

because I get always the message: illegal option and so on and so on....to go further I had to uncommend followings CFLAGS:
-O2 -Wall -Wno-unused -D_REENTRANT -DHAVE_RPCENT


Do you have any suggesstions, recommendations or any ideas about the settings?

Thank you for your help!

greetings maria

SunOS 5.9
apache2
larrd-0.43d
rrdtool-1.0.49
bbgen-3.5
perl5/5.6.1/
cc Sun C 5.7
gcc (GCC) 3.2.3

cc
==
CC="cc" CFLAGS="-g -DDEBUG -DMAXMSG=8192 -DBBDPORTNUMBER=1984 -I. -I/include" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" LDAPFLAGS="" LDAPINCDIR="" LDAPLIBS="" NETLIBS="-lresolv -lsocket -lnsl" BBHOME="/usr/bb" make -C bbnet all
make[1]: Entering directory `/usr/bb1.9e-btf/bbgen-3.5/bbnet'
cc -g -DDEBUG -DMAXMSG=8192 -DBBDPORTNUMBER=1984 -I. -I/include -c -o bbtest-net.o bbtest-net.c
"bbtest-net.c", line 1922: warning: implicit function declaration: getrpcbyname
"bbtest-net.c", line 1922: warning: improper pointer/integer combination: op "="
"bbtest-net.c", line 1929: undefined struct/union member: r_number
"bbtest-net.c", line 1941: undefined struct/union member: r_number
"bbtest-net.c", line 1946: undefined struct/union member: r_number
"bbtest-net.c", line 2387: warning: assignment type mismatch:
pointer to char "=" pointer to unsigned char
cc: acomp failed for bbtest-net.c
make[1]: *** [bbtest-net.o] Error 2
make[1]: Leaving directory `/usr/bb1.9e-btf/bbgen-3.5/bbnet'
make: *** [bbnet-build] Error 2



gcc
===
gmake[1]: Leaving directory `/usr/bb1.9e-btf/bbgen-3.5/bbdisplay'
CC="gcc" CFLAGS="-g -DDEBUG -DMAXMSG=8192 -DBBDPORTNUMBER=1984 -I. -I/include" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" LDAPFLAGS="" LDAPINCDIR="" LDAPLIBS="" NETLIBS="-lresolv -lsocket -lnsl" BBHOME="/usr/bb" gmake -C bbnet all
gmake[1]: Entering directory `/usr/bb1.9e-btf/bbgen-3.5/bbnet'
gcc -g -DDEBUG -DMAXMSG=8192 -DBBDPORTNUMBER=1984 -I. -I/include -c -o bbtest-net.o bbtest-net.c
bbtest-net.c: In function `send_rpcinfo_results':
bbtest-net.c:1922: warning: assignment makes pointer from integer without a cast
bbtest-net.c:1929: dereferencing pointer to incomplete type
bbtest-net.c:1941: dereferencing pointer to incomplete type
bbtest-net.c:1946: dereferencing pointer to incomplete type
gmake[1]: *** [bbtest-net.o] Error 1
gmake[1]: Leaving directory `/usr/bb1.9e-btf/bbgen-3.5/bbnet'
gmake: *** [bbnet-build] Error 2



BBHOME/bbgen-3.5/Makefile # configure settings for bbgen BBHOME = /usr/bb CGIDIR = /usr/apache2/cgi-bin HISTGRAPHDEF = -DDEFBARSUMS=15 MAXMSG = 8192 BBPORT = 1984 MANROOT = /usr/local/man # CC = gcc # # OpenSSL settings #SSLFLAGS = # Change the following line if compiler complains about a missing ssl.h #SSLINCDIR = -I #SSLLIBS = -L/usr/local/lib -lcrypto -lssl # # OpenLDAP settings #LDAPFLAGS = #BUILDTOPDIR=`pwd`

include build/Makefile.SunOS
# Add local CFLAGS etc. settings below here
include build/Makefile.rules


BBHOME/bbgen-3.5/build/Makefile.SunOS # bbgen compile-time settings for SunOS / Solaris

OSDEF = -DSunOS

# Solaris need this
NETLIBS = -lresolv -lsocket -lnsl

# Compile flags for normal build
#CFLAGS = -g -O2 -Wall -Wno-unused -D_REENTRANT -DHAVE_RPCENT
CFLAGS = -g -DDEBUG

# Compile flags for debugging
#CFLAGS = -g -DDEBUG -Wall -D_REENTRANT -DHAVE_RPCENT


-- SWITCH - The Swiss Education & Research Network -----------------------------------------------

System Engineering and Support    ses@switch.ch
Limmatquai 138                    Tel:   +41 44 268 1550
CH-8001 Zurich, Switzerland       Fax:   +41 44 253 9898


-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-= To unsubscribe from this list, or to subscribe to the bb-digest list send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or- subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index