Discussion:
[rancid] Erro with Rancid on solaris 10.
Fabio Santos
2014-04-10 15:12:22 UTC
Permalink
Hi all,

I'm trying to compile rancid 3.0 on solaris 10, the ./configure command works fine. but when i try make i received the erro above,

Making all in bin
gmake[1]: Entering directory `/tmp/rancid-3.0/bin'
gcc -DHAVE_CONFIG_H -I. -I../include     -g -O0 -MT hpuifilter.o -MD -MP -MF .deps/hpuifilter.Tpo -c -o hpuifilter.o hpuifilter.c
mv -f .deps/hpuifilter.Tpo .deps/hpuifilter.Po
gcc  -g -O0   -o hpuifilter hpuifilter.o
gcc -DHAVE_CONFIG_H -I. -I../include     -g -O0 -MT par.o -MD -MP -MF .deps/par.Tpo -c -o par.o par.c
mv -f .deps/par.Tpo .deps/par.Po
gcc  -g -O0   -o par par.o
Undefined                       first referenced
 symbol                             in file
asprintf                            par.o
ld: fatal: Symbol referencing errors. No output written to par
gmake[1]: *** [par] Error 1
gmake[1]: Leaving directory `/tmp/rancid-3.0/bin'
make: *** [all-recursive] Error 1
bash-3.00#

Someone know how can i fix this problem?

Att,
heasley
2014-05-02 19:09:30 UTC
Permalink
Post by Fabio Santos
Hi all,
I'm trying to compile rancid 3.0 on solaris 10, the ./configure command works fine. but when i try make i received the erro above,
Making all in bin
gmake[1]: Entering directory `/tmp/rancid-3.0/bin'
gcc -DHAVE_CONFIG_H -I. -I../include     -g -O0 -MT hpuifilter.o -MD -MP -MF .deps/hpuifilter.Tpo -c -o hpuifilter.o hpuifilter.c
mv -f .deps/hpuifilter.Tpo .deps/hpuifilter.Po
gcc  -g -O0   -o hpuifilter hpuifilter.o
gcc -DHAVE_CONFIG_H -I. -I../include     -g -O0 -MT par.o -MD -MP -MF .deps/par.Tpo -c -o par.o par.c
mv -f .deps/par.Tpo .deps/par.Po
gcc  -g -O0   -o par par.o
Undefined                       first referenced
 symbol                             in file
asprintf                            par.o
ld: fatal: Symbol referencing errors. No output written to par
gmake[1]: *** [par] Error 1
gmake[1]: Leaving directory `/tmp/rancid-3.0/bin'
make: *** [all-recursive] Error 1
bash-3.00#
Someone know how can i fix this problem?
would you add -D__EXTENSIONS__ to the CFLAGS line in bin/Makefile and tell
me if that fixes this problem with gcc on solaris?
Fabio Santos
2014-11-04 18:52:16 UTC
Permalink
Hi heasley,




I put the flags, see:




#CPPFLAGS += @PG_CPPFLAGS@

#INCLUDES += -I$(top_srcdir)/include @PG_CPPFLAGS@



#INCLUDES += -I$(top_srcdir)/include


#CFLAGS += -g



CFLAGS = -g -O0 -D__EXTENSIONS__


But i had same problem, any other idea?


Em Quinta-feira, 10 de Abril de 2014 12:12, Fabio Santos <***@yahoo.com> escreveu:


Hi all,
I'm trying to compile rancid 3.0 on solaris 10, the ./configure command works fine. but when i try make i received the erro above,
Making all in bingmake[1]: Entering directory `/tmp/rancid-3.0/bin'gcc -DHAVE_CONFIG_H -I. -I../include     -g -O0 -MT hpuifilter.o -MD -MP -MF .deps/hpuifilter.Tpo -c -o hpuifilter.o hpuifilter.cmv -f .deps/hpuifilter.Tpo .deps/hpuifilter.Pogcc  -g -O0   -o hpuifilter hpuifilter.ogcc -DHAVE_CONFIG_H -I. -I../include     -g -O0 -MT par.o -MD -MP -MF .deps/par.Tpo -c -o par.o par.cmv -f .deps/par.Tpo .deps/par.Pogcc  -g -O0   -o par par.oUndefined                       first referenced symbol                             in fileasprintf                            par.old: fatal: Symbol referencing errors. No output written to pargmake[1]: *** [par] Error 1gmake[1]: Leaving directory `/tmp/rancid-3.0/bin'make: *** [all-recursive] Error 1bash-3.00#
Someone know how can i fix this problem?
Att,

Loading...