[postfix-users] pipe unable to parse dash flags in argv (resolved)

Wietse Venema wietse at porcupine.org
Wed Oct 6 06:36:28 PDT 2004


Peter C. Lai:
> Date: Sat, 2 Oct 2004 09:45:12 -0400 (EDT)
> From: wietse at porcupine.org (Wietse Venema)
> 
> > I REPEAT: YOU HAVE LINKED POSTFIX WITH A BRAIN DAGAGED GNU GETOPT ROUTINE.
> >                                                                                
> > DON'T DO THAT. POSTFIX REQUIRES THAT YOU USE THE SYSTEM GETOPT
> > ROUTINE.
> 
> This is not a problem I can easily resolve. What would you propose?

Use the SYSTEM LIBRARY getopt() routine! 

DO NOT overrride system library routines with brain-damaged third
party versions.

If you must use third-party libraries that override native methods
specify

    -lc 

before 

    -lbraindamagedthirdpartylibrary

	Wietse

> I can see 
> if it will build correctly without linking -L /usr/local/lib, because it WILL 
> ALWAYS pick up the broken gnugetopt IF we are linking to /usr/local/lib AND 
> the freebsd libgnugetopt port is installed. In any case, we must change the 
> Makefile in order to get it to link to the correct getopt library, and doing 
> this is beyond my scope of expertise.
> 
> 



More information about the freebsd-ports mailing list