#2 Problem compiling on FreeBSD

closed
Dori Seliskar
None
5
2005-12-29
2005-01-15
Yuri Meshalkin
No

Hi!

My try to build vmpsd-1.3 source on a several host's
running different versions of FreeBSD failed. After
running configure script and running make:

ttyp2#ns 22:58:39 ~/work/vmpsd/vmpsd# make
make all-am
source='vmpsd.c' object='vmpsd-vmpsd.o' libtool=no
depfile='.deps/vmpsd-vmpsd.Po'
tmpdepfile='.deps/vmpsd-vmpsd.TPo'
depmode=gcc /usr/local/bin/bash ./depcomp gcc -
DHAVE_CONFIG_H -I. -I. -I. -
DSYSCONFDIR="\"/usr/local/etc\"" -g -O2 -c -o vmpsd-
vmpsd.o `test -f 'vmpsd.c' || echo './'`vmpsd.c
source='daemon.c' object='vmpsd-daemon.o' libtool=no
depfile='.deps/vmpsd-daemon.Po'
tmpdepfile='.deps/vmpsd-daemon.TPo'
depmode=gcc /usr/local/bin/bash ./depcomp gcc -
DHAVE_CONFIG_H -I. -I. -I. -
DSYSCONFDIR="\"/usr/local/etc\"" -g -O2 -c -o vmpsd-
daemon.o `test -f 'daemon.c' || echo './'`daemon.c
daemon.c: In function `daemon_start':
daemon.c:73: `fd' undeclared (first use in this function)
daemon.c:73: (Each undeclared identifier is reported
only once
daemon.c:73: for each function it appears in.)
*** Error code 1

Stop in /home/zorick/work/vmpsd/vmpsd.
*** Error code 1

Stop in /home/zorick/work/vmpsd/vmpsd.
ttyp2#ns 22:58:40 ~/work/vmpsd/vmpsd#

A fix availible just after looking code in a daemon.c.
As I understood fd variable was removed after annoying
compiler message. See attached patch to fix this
problem.

Discussion

  • Yuri Meshalkin
    Yuri Meshalkin
    2005-01-15

     
    Attachments
  • Dori Seliskar
    Dori Seliskar
    2005-01-30

    • assigned_to: nobody --> dori_seliskar
     
  • Dori Seliskar
    Dori Seliskar
    2005-12-29

    Logged In: YES
    user_id=466942

    Applied in CVS - will appear in 1.4.

     
  • Dori Seliskar
    Dori Seliskar
    2005-12-29

    • status: open --> closed