Help save net neutrality! Learn more.
Close

Compile problem

Help
2003-05-03
2003-05-05
  • Dana Rawding

    Dana Rawding - 2003-05-03

    I am having a problem compiling aprsd on my RedHat box.  It is RH 7.2 or 7.3 (I can't remember) it is running the stock 2.4.18-24.7.smp kernel (yes it is a dual processor box).<br><br>
    Running configure works with no errors.  Bu when I do the make a get:<br>
    <br>
    g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src    -g -O2 -Wall -pipe -pthread -c -o h
    istory.o `test -f 'history.cpp' || echo './'`history.cpp
    source='httpserver.cpp' object='httpserver.o' libtool=no \ depfile='.deps/httpserver.Po' tmpdepfile='.deps/httpserver.TPo' \ depmode=gcc3 /bin/sh ../support/depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src    -g -O2 -Wall -pipe -pthread -c -o h
    ttpserver.o `test -f 'httpserver.cpp' || echo './'`httpserver.cpp
    In file included from httpserver.cpp:43:
    serial.h:38: `FILE' was not declared in this scope
    serial.h:38: `f' was not declared in this scope
    make[2]: *** [httpserver.o] Error 1
    make[2]: Leaving directory `/data/home/dr/aprsd-2.2.5-6/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/data/home/dr/aprsd-2.2.5-6'
    make: *** [all] Error 2

    Any ideas?

     
    • Chuck Byam

      Chuck Byam - 2003-05-04

      add #include <cstdio> just above <string> in serial.h

       
      • Dana Rawding

        Dana Rawding - 2003-05-04

        Worked great.  Compiled without a problem.

        Thanks for the help!

        Dana
        N1OFZ

         
    • Chuck Byam

      Chuck Byam - 2003-05-04

      add #include <cstdio> just above <string> in serial.h

       
    • Dana Rawding

      Dana Rawding - 2003-05-04

      Got another question.  After doing the 'make install' I tried to start aprds.  I said the the conf file was missing.  Upon further investigation many files are missing.  I looked at what aprsd-2.2.5-6/doc/aprsddoc.html says should be installed.  None of the config stuff, init.d files, aprspass or anthing else was installed.  Is there someting I'm missing?

      Once I created the config file aprsd started working.  I'll be recreating these othe files as I figure out what theu do.

      Dana
      N1OFZ

       
    • Chuck Byam

      Chuck Byam - 2003-05-05

      Okay,  this is my bad.  I'll start by saying that I tend to run aprsd from ~/aprsd<version>/admin which is where the files you are looking for are located.  aprsdpass is another issue that I'll have to resolve as it appears that the make process isn't building that binary.  I'll commit the patch to get this done, but in the meantime if you want to compile it yourself try the following from aprsd<version>/src

      g++ -lcrypt -o aprspass aprspass.cpp validate.cpp

      The binary will be located in the src directory and can be run as ./aprspass <yourcall>

      -- Chuck

       
      • Dana Rawding

        Dana Rawding - 2003-05-05

        I looked in the admin directory.  There was nothing in there.  So I did the following:

        Downloaded the latest tar file again
        Moved it into /home and expanded
        Renamed it to /home/aprsd
        Built it again with the same result.

        The output from my configure and make can be viewed at:
        http://dana.rawding.com/aprsd.txt

        Any ideas?  Aprsd seems to compile OK so if we can't figure this out I can probably get along with just aprsd by creating the config files by hand. 

        I do appreciate the asistance.
        Dana

         
    • Chuck Byam

      Chuck Byam - 2003-05-05

      grab 2.2.5-7 and do a make clean ./configure and try again.  Don't do 'make install', just go to admin and cp ../src/aprsd .

      Be sure to verify aprsd.conf to your liking.

      -- Chuck

       
      • Dana Rawding

        Dana Rawding - 2003-05-05

        After the last build all the files have now appreared and aprsd is now up and running.

        Thanks for all the help.
        Dana

         

Log in to post a comment.