[syslog-ng] Compilation errors syslog-ng 3.2.5 on solaris 10

Arya, Manish Kumar m.arya at yahoo.com
Thu Mar 15 14:18:35 CET 2012


tried with gmake after some progress I got this error

gcc: unrecognized option `-pthread'
gcc: unrecognized option `-pthread'
/usr/ccs/bin/ld: illegal option -- whole-archive
/usr/ccs/bin/ld: illegal option -- no-whole-archive
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
        [-64]           enforce a 64-bit link-edit
        [-a]            create an absolute file
        [-b]            do not do special PIC relocations in a.out
        [-B direct | nodirect]
                        establish direct bindings, or inhibit direct binding
                        to, the object being created
        [-B dynamic | static]
                        search for shared libraries|archives
        [-B eliminate]  eliminate unqualified global symbols from the
                        symbol table
        [-B group]      relocate object from within group
        [-B local]      reduce unqualified global symbols to local
        [-B reduce]     process symbol reductions
        [-B symbolic]   bind external references to definitions when creating
                        shared objects
        [-c name]       record configuration file `name'
        [-C]            demangle C++ symbol name diagnostics
        [-d y | n]      operate in dynamic|static mode
        [-D token,...]  print diagnostic messages
        [-e epsym]      use `epsym' as entry point address
        [-f name]       specify library for which this file is an auxiliary
                        filter
        [-F name]       specify library for which this file is a filter
        [-G]            create a shared object
        [-h name]       use `name' as internal shared object identifier
        [-i]            ignore LD_LIBRARY_PATH setting
        [-I name]       use `name' as path of interpreter
        [-l x]          search for libx.so or libx.a
        [-L path]       search for libraries in directory `path'
        [-m]            print memory map
        [-M mapfile]    use processing directives contained in `mapfile'
        [-N string]     create a dynamic dependency for `string'
        [-o outfile]    name the output file `outfile'
        [-p auditlib]   identify audit library to accompany this object
        [-P auditlib]   identify audit library for processing the dependencies
                        of this object
        [-Q y | n]      do|do not place version information in output file
        [-r]            create a relocatable object
        [-R path]       specify a library search path to be used at run time
        [-s]            strip any symbol and debugging information
        [-S supportlib]
                        specify a link-edit support library
        [-t]            do not warn of multiply-defined symbols that have
                        different sizes or alignments
        [-u symname]    create an undefined symbol `symname'
        [-V]            print version information
        [-Y P,dirlist]  use `dirlist' as a default path when searching for
                        libraries
        [-z absexec]    when building an executable absolute symbols
                        referenced in dynamic objects are promoted to
                        the executable
        [-z allextract | defaultextract | weakextract]
                        extract all member files, only members that resolve
                        undefined tor tentative symbols, or allow extraction of
                        archive members to resolvetweak references from
                        archive files
        [-z altexec64]  execute the 64-bit link-editor
        [-z combreloc]  combine multiple relocation sections
        [-z defs]       disallow undefined symbol references
        [-z direct | nodirect]
                        enable|disable direct binding to shared object
                        dependencies
        [-z endfiltee]  marks a filtee such that it will terminate a filters
                        search
        [-z finiarray=function]
                        name of function to be appended to the .finiarray
        [-z groupperm | nogroupperm]
                        enable|disable setting of group permissions
                        on dynamic dependencies
        [-z help ]      print this usage message
        [-z ignore | record]
                        ignore|record unused dynamic dependencies
        [-z initarray=function]
                        name of function to be appended to the .initarray
        [-z initfirst]  mark object to indicate that its .init section should
                        be executed before the .init section of any other
                        objects
        [-z interpose]  dynamic object is to be an `interposer' on direct
                        bindings
        [-z lazyload | nolazyload]
                        enable|disable delayed loading of shared object
                        dependencies
        [-z ld32=arg1,arg2,...]
                        define arguments applicable to the 32-bit class of ld(1)
        [-z ld64=arg1,arg2,...]
                        define arguments applicable to the 64-bit class of ld(1)
        [-z loadfltr]   mark filter as requiring immediate loading of its
                        filtees at runtime
        [-z muldefs]    allow multiply-defined symbols
        [-z nocompstrtab]
                        disable compression of string tables
        [-z nodefs]     allow undefined symbol references
        [-z nodefaultlib]
                        mark object to ignore any default library search path
        [-z nodelete]   mark object as non-deletable
        [-z nodlopen]   mark object as non-dlopen()'able
        [-z nodump]     mark object as non-dldump()'able
        [-z now]        mark object as requiring non-lazy binding
        [-z nopartial]  expand any partially initialized symbols
        [-z noversion]  don't record any version sections
        [-z origin]     mark object as requiring $ORIGIN processing
        [-z preinitarray=function]
                        name of function to be appended to the .preinitarray
        [-z redlocsym]  reduce local syms in .symtab to a minimum
        [-z rescan]     rescan archive list until no further member
                        extraction occurs
        [-z text]       disallow output relocations against text
        [-z textoff]    allow output relocations against text
        [-z textwarn]   warn if there are relocations against text
        [-z verbose]    generate warnings for suspicious processings
collect2: ld returned 1 exit status
gmake[4]: *** [libsyslog-ng.la] Error 1
gmake[4]: Leaving directory `/home/marya/syslog-ng-3.3.4/lib'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/home/marya/syslog-ng-3.3.4/lib'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/marya/syslog-ng-3.3.4/lib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/marya/syslog-ng-3.3.4'
gmake: *** [all] Error 2
You have new mail in /var/mail//root
bash-3.00#




________________________________
 From: "Arya, Manish Kumar" <m.arya at yahoo.com>
To: "Arya, Manish Kumar" <m.arya at yahoo.com>; Syslog-ng users' and 
developers' mailing list <syslog-ng at lists.balabit.hu> 
Sent: Thursday, March 15, 2012 6:04 PM
Subject: Re: [syslog-ng] Compilation errors syslog-ng 3.2.5 on solaris 10
 

I have modified configure and now it went through fine

./configure --prefix=/opt/syslog/syslog-ng --enable-ipv6 
PKG_CONFIG_PATH=/opt/syslog/glib/lib/pkgconfig:/opt/syslog/eventlog/lib/pkgconfig

but now I see errors while make
bash-3.00# make
make  all-recursive
Making all in lib
make: Fatal error in reader: Makefile, line 641: Unexpected end of line seen
Current working directory /home/marya/syslog-ng-3.2.5/lib
*** Error code 1
The following command caused the error:
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='lib modules syslog-ng scripts tests doc contrib scl debian tgz2build'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home/marya/syslog-ng-3.2.5
*** Error code 1
make: Fatal error: Command failed for target `all'
bash-3.00#


________________________________
 From: "Arya, Manish Kumar" <m.arya at yahoo.com>
To: "syslog-ng at lists.balabit.hu" <syslog-ng at lists.balabit.hu> 
Sent: Thursday, March 15, 2012 5:23 PM
Subject: [syslog-ng] Compilation errors syslog-ng 3.2.5 on solaris 10
 

Hi Guys,

     I have compiled 


eventlog-0.2.12 and glib-2.12.12 in  /opt/syslog/eventlog and /opt/syslog/glib directories. now when I try to compile syslog-ng with following options in configure 


./configure --prefix=/opt/syslog/syslog-ng --enable-ipv6 EVTLOG_LIBS=/opt/syslog/eventlog/lib EVTLOG_CFLAGS=/opt/syslog/eventlog/include GLIB_CFLAGS=/opt/syslog/glib/include GLIB_LIBS=/opt/syslog/glib/lib PKG_CONFIG_PATH=/opt/syslog/glib/lib/pkgconfig

I see this error 


checking for GLIB... yes
checking sanity checking Glib headers... no
configure: error: Glib headers inconsistent with current compiler setting. You might be using 32 bit Glib with a 64 bit compiler, check PKG_CONFIG_PATH


here is the errors o/p from config.log

bash-3.00# grep -i error config.log
/usr/include/stdbool.h:42:2: #error "Use of <stdbool.h> is valid only in a c99 compilation environment."
conftest.c:59: error: syntax error before "text"
conftest.c:64: error: 'for' loop initial declaration used outside C99 mode
conftest.c:64: error: `text' undeclared (first use in this function)
conftest.c:64: error: (Each undeclared identifier is reported only once
conftest.c:64: error: for each function it appears in.)
conftest.c:108: error: `false' undeclared (first use in this function)
conftest.c:112: error: `true' undeclared (first use in this function)
conftest.c:113: error: syntax error before "newvar"
conftest.c:123: error: 'for' loop initial declaration used outside C99 mode
conftest.c:139: error: `newvar' undeclared (first use in this function)
ld: fatal: Symbol referencing errors. No output written to conftest
| static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
|               if ( c == EOF && ferror( yyin ) ) \
|                       YY_FATAL_ERROR( "input in flex scanner failed" ); \
|                 && ferror( yyin ) ) \
|               YY_FATAL_ERROR( "input in flex scanner failed" );
| /* Report a fatal error. */
| #ifndef YY_FATAL_ERROR
| #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
|               YY_FATAL_ERROR(
|                       "fatal flex scanner internal error--no action found" );
|               YY_FATAL_ERROR(
|               "fatal flex scanner internal error--end of buffer missed" );
|                       YY_FATAL_ERROR(
|                               YY_FATAL_ERROR(
|                               "fatal error - scanner input buffer overflow" );
|                       YY_FATAL_ERROR( "flex scanner push-back overflow" );
|               YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|               YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|               YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
|               YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
|               YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
|                       YY_FATAL_ERROR(
|               YY_FATAL_ERROR( "start-condition stack underflow" );
| static void yy_fatal_error( yyconst char msg[] )
| static void yy_fatal_error( msg )
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: File processing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
configure:12119: gcc -std=gnu99 -c -g -O2 -Wall -pedantic -Werror  -Wno-pointer-sign  conftest.c >&5
cc1: error: unrecognized command line option "-Wno-pointer-sign"
cc1: error: unrecognized command line option "-Wno-pointer-sign"
conftest.c:30: error: size of array `off_t_is_large' is negative
conftest.c:41: error: structure has no member named `tm_gmtoff'
conftest.c:41: error: structure has no member named `tm_gmtoff'
ld: fatal: File processing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: File processing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
ld: fatal: Symbol referencing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
configure:13336: $PKG_CONFIG --exists --print-errors "dbi >= $LIBDBI_MIN_VERSION"
configure:13352: $PKG_CONFIG --exists --print-errors "dbi >= $LIBDBI_MIN_VERSION"
ld: fatal: File processing errors. No output written to conftest
| /* Override any GCC internal prototype to avoid an error.
conftest.c:46: error: `GLIB_SIZEOF_LONG' undeclared (first use in this function)
conftest.c:46: error: (Each undeclared identifier is reported only once
conftest.c:46: error: for each function it appears in.)
configure:13605: error: Glib headers inconsistent with current compiler setting. You might be using 32 bit Glib with a 64 bit compiler, check PKG_CONFIG_PATH
bash-3.00#


help me !!

Regards,
-Manish


______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20120315/dbda95b5/attachment-0003.htm 


More information about the syslog-ng mailing list