Try this one :

sudo apt-get install xgraph

2012/11/12 Muhammad Javed <javed_u...@yahoo.com>

>
> Hi all,
>
> I have installed NS2.34 it is working fine but xgraph is not working, I go
> to xgraph directory located into ns-allinone-2.34 when I executed "make" it
> displaying errors as below:
>
> [root@localhost ns-allinone-2.34]# cd xgraph-12.1
> [root@localhost xgraph-12.1]# ./configure
> loading cache ./config.cache
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) 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... missing
> checking if malloc debugging is wanted... no
> checking for gcc... (cached) 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... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking how to run the C preprocessor... (cached) gcc -E
> checking for X... (cached) libraries , headers
> checking for dnet_ntoa in -ldnet... (cached) no
> checking for dnet_ntoa in -ldnet_stub... (cached) no
> checking for gethostbyname... (cached) yes
> checking for connect... (cached) yes
> checking for remove... (cached) yes
> checking for shmat... (cached) yes
> checking for IceConnectionNumber in -lICE... (cached) yes
> checking for float.h... (cached) yes
> checking for limits.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking for strings.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for strcasecmp... (cached) yes
> creating ./config.status
> creating Makefile
> creating autoconf.h
> autoconf.h is unchanged
> [root@localhost xgraph-12.1]# make
> gcc -DHAVE_CONFIG_H -I. -I. -I.        -g    -c dialog.c
> dialog.c: In function ‘make_msg_box’:
> dialog.c:780: warning: passing argument 2 of ‘getline’ from incompatible
> pointer type
> /usr/include/stdio.h:653: note: expected ‘size_t * __restrict__’ but
> argument is of type ‘char *’
> dialog.c:780: error: too few arguments to function ‘getline’
> dialog.c: At top level:
> dialog.c:891: error: conflicting types for ‘getline’
> /usr/include/stdio.h:653: note: previous declaration of ‘getline’ was here
> make: *** [dialog.o] Error 1
>
> I think this error is preventing xgraph to be installed.
>
> Please help me out in this problem...
>
>
>
>
>
> Best regards,
>
> Muhammad Javed




-- 
*Cordialement*
*Basma Bejaoui*
*Ingénieur Informatique, Génie Télécommunication et Réseaux *
*+216  20 09 52 02 *

Reply via email to