/ Zope / Apsis / Pound Mailing List / Archive / 2005 / 2005-05 / Pound 1.8.4 still won't getopt under FreeBSD 4.10

[ << ] [ >> ]

[ 1.8.4 changes / Robert Segall ... ] [ pound under attack / Jaroslav Lukesh ... ]

Pound 1.8.4 still won't getopt under FreeBSD 4.10
Dmitry Dvoinikov <dmitry(at)targeted.org>
2005-05-06 14:52:01 [ FULL ]
Having downloaded the latest just announced 1.8.4... Yes the getopt problem
goes away, but, there are other nuances - for one, pound simply won't start.

After obvious
# ./configure --with-ssl=/usr/local/ssl
(/usr/local/ssl is where thread-safe OpenSSL 0.9.7f lives)
# gmake
  ...
# ldd pound
pound:
        libssl.so.0.9.7 => /usr/local/lib/libssl.so.0.9.7 (0x28079000)
        libcrypto.so.0.9.7 => /usr/local/lib/libcrypto.so.0.9.7 (0x280a7000)
        libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28198000)
        libc.so.4 => /usr/lib/libc.so.4 (0x2824e000)
# cat > pound.conf
ListenHTTP 127.0.0.1,8000
UrlGroup ".*"
Backend 127.0.0.1,80,1
EndGroup
^D
# ./pound -f pound.conf
# tail /var/log/messages
...
May  6 05:30:19  pound: starting...
# ps ax | grep pound
55098  p0  R+     0:00.00 grep pound
#

And so pound simply disappears... Ok, proceeding in debug mode,
adding logmsg here and there reveals this:

# ./pound -f pound.conf
# tail /var/log/messages
...
May  6 05:47:22  pound: starting...
May  6 05:47:22  pound: pound.c: before config_parse...
May  6 05:47:22  pound: config.c: before getopt...
#

As pound: config.c: after getopt... did not appear I assume
getopt still doesn't work, although it does compile.

BTW, I had no problem building Pound 1.8 in the same environment.

Sincerely,
Dmitry Dvoinikov
http://www.targeted.org/

Re: Pound 1.8.4 still won't getopt under FreeBSD 4.10
Robert Segall <roseg(at)apsis.ch>
2005-05-06 14:59:56 [ FULL ]
On Fri, 6 May 2005 18:52:01 +0600 Dmitry Dvoinikov
<dmitry(at)targeted.org>
wrote:[...]

That's why I hate rushing things. There's an extra exit (for testing
only) which I forgot to remove. My mistake.

    if(optind < argc) {
        logmsg(LOG_ERR, "unknown extra arguments (%s...)",
            argv[optind]);
        exit(1);
    }
    exit(0);

Just remove the 'exit(0)' after the closing brace and you'll be OK.

Corrected code uploading...[...]

MailBoxer