#1
  1. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1100

    FreeBSD: make error (ambiguous output redirect) when compiling proftpd


    I am having a problem compiling ProFTPd on FreeBSD 5.3-RELEASE. Yes, I know I can install the port/package, but that's not what I'm trying to do.

    Here's what I'm doing:
    Code:
    ./configure
      --prefix=/usr/local/proftpd
      --exec-prefix=/usr/local
      --enable=dso
      --with-shared=mod_tls:mod_sql:mod_sql_mysql:mod_ifsession:mod_rewrite
    make
    and this is how it dies
    Code:
    SED=/usr/bin/sed: Command not found.
    Xsed=/usr/bin/sed -e s/^X//: Command not found.
    Ambiguous output redirect.
    *** Error code 1
    
    Stop in /usr/src/proftpd-1.3.0rc2/modules.
    *** Error code1
    
    Stop in /usr/src/proftpd-1.3.0rc2.
    If I ask `whereis sed`, it returns /usr/bin/sed, so that looks to be installed.

    Does anybody have any idea what the problem is, and more importantly, how to fix it?
    # Jeremy

    Explain your problem instead of asking how to do what you decided was the solution.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    Sorry no direct help, but this looks suspicious:
    SED=/usr/bin/sed: Command not found.
    Xsed=/usr/bin/sed -e s/^X//: Command not found.
    These are not commands, these are variable assignments. There is a problem with the interpreter, maybe the shell but probably "make".

    Install "gmake" and try again. Maybe this is the problem.

    It stops in the modules directory, so the problem is most likely one of the modules. If the above doesn't help, remove them one by one and see when it compiles again.

    Manuel

    Comments on this post

    • jharnois agrees : Thank you ... gmake solved the first problem.
  4. #3
  5. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1100
    gmake definately gets me further. Now it throws a bunch of errors when it starts working with mod_sql_mysql, starting with this one:
    Code:
    mod_sql_mysql.c:135:19: mysql.h: No such file or directory
    I used the MySQL binary from mysql.com for FreeBSD 5, and I'm guessing mysql.h is a source file that wasn't included. Does this sound about right?
    # Jeremy

    Explain your problem instead of asking how to do what you decided was the solution.
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,638
    Rep Power
    4247
    Absolutely. mysql.h is part of the C source code for mysql.

    Comments on this post

    • jharnois agrees : Thank you ... that helped me find out what I needed to add.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  8. #5
  9. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1100
    I just had to find that file and a lib file for mysql and include the paths to those files in the ./configure with --with-includes= and --with-libraries=

    Simple enough. Thanks.
    # Jeremy

    Explain your problem instead of asking how to do what you decided was the solution.

IMN logo majestic logo threadwatch logo seochat tools logo