[syslog-ng]can't compile syslog in HP-UX 11.23

Balazs Scheidler syslog-ng@lists.balabit.hu
Mon, 18 Apr 2005 11:09:24 +0200


On Mon, 2005-04-18 at 17:26 +0900, XX XXXX wrote:
> Thank You Bazsi for your consideration :)
> I'll apply it as soon as possible
> 
> "ld -V" output is as follows
> 
> ld: 92453-07 linker ld HP Itanium(R) B.12.23 PBO 040721 (IPF/IPF)
> ld: No input files
> Fatal error.
> 

Can you check if applying this patch autodetects you ld options
correctly?

diff -u -r1.72.4.15 configure.in
--- configure.in        15 Apr 2005 08:24:11 -0000      1.72.4.15
+++ configure.in        18 Apr 2005 09:08:09 -0000
@@ -292,6 +292,10 @@
        LD_START_STATIC="-Wl,-Bstatic"
        LD_END_STATIC="-Wl,-Bdynamic"
        AC_MSG_RESULT(GNU or Solaris)
+elif echo $ldversion | egrep "HP" > /dev/null; then
+       LD_START_STATIC="-a archive"
+       LD_END_STATIC="-a shared_archive"
+       AC_MSG_RESULT(HP-UX)
 else
        LD_START_STATIC=""
        LD_END_STATIC=""


I've committed this patch, so it should be available in tomorrow's
snapshot.

-- 
Bazsi