>...
>compiled Amanda 2.4.2p2 with gcc
>...
>I get a segmentation fault when trying to run the planner (I had to
>experiment to find the problem).
>The problem is in one of the calls to getservbyname in planner.c (it
>doesn't really matter which).
>I've tried various versions of gcc, but get the fault every time.

Were all the versions of gcc built for the version of the OS you're
running?  Gcc is notorious for being picky about that.  For instance,
running gcc built for Solaris 2.5 may not work when building binaries
for 2.6.  You can tell what version of gcc you used and what OS it was
built for with "gcc -v".

Did you remove config.cache between each attempted rebuild?  Are you
sure you used the newly built planner and didn't accidentally get one
built with a previous compiler?

About the only other idea I have is to set up ./configure to not optimize
(i.e. do not use -O with gcc).  That's always the first guess at a
compiler problem.  This won't matter too much to Amanda because it
(at least the actual Amanda parts) are not CPU bound.

>My problem is this, I don't have access to the Sun cc compiler on all my
>systems.

How about building Amanda on one of them and pushing the binaries?

An easy way to do this is use --prefix on ./configure so Amanda gets
put into its own separate area, e.g. /opt/amanda-2.4.2p2 (or whatever).

>[EMAIL PROTECTED]

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to