[syslog-ng]Error compiling syslog-ng1.6.6 on HP-UX 11.23 IPF

Balazs Scheidler syslog-ng@lists.balabit.hu
Fri, 11 Feb 2005 10:27:07 +0100


On Thu, 2005-02-10 at 12:33 -0500, Jenny-Lou Sequeira wrote:
> Hi,
> 
>  
> 
> I get the following error when running "make" for syslog-ng1.6.6 on
> HP-UX 11.23 IPF. I do not get the error for 1.6.5.
> 
>  
> 
>         gcc  -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE
> -o
> 
> syslog-ng  main.o sources.o center.o  filters.o destinations.o log.o
> cfgfile.o cfg-grammar.o cfg-lex.o  affile.o afsocket.o afunix.o
> afinet.o afinter.o afuser.o  afstreams.o afprogram.o afremctrl.o
> nscache.o utils.o syslog-names.o  macros.o getopt.o getopt1.o
> -lnsl  /usr/local/lib/libol.a
> 
> -lnsl -lxnet -Wl,-Bstatic -lfl -lwrap    -Wl,-Bdynamic
> 
> ld: Bad keyword argument: static
> 
> Fatal error.
> 
> collect2: ld returned 1 exit status
> 
> *** Error exit code 1

Too bad linkers are so much incompatible. As I see I need some configure
tests for linker options.

The fix is to copy the command above and remove the -Wl,-Bstatic and
-Wl,-Bdynamic options from the command line and link with that.

(the purpose of these switches are to link against -lfl and -lwrap
statically while keeping things like libc dynamic.

-- 
Bazsi