[megoldva] syslog-ng 2.0.7 forditasi hiba

Sziasztok,

Van egy Solaris 9-el (sparc) megaldott masina. Le kellene forditanom a 2.0.7 -es syslog-ng -t, hogy csomagot tudjak belole csinalni. A sunfreeware.com -rol feltettem ezeket a csomagokat:


#pkginfo | grep SMC
application SMCautoc                         autoconf
application SMCbison                         bison
application SMCflex                          flex
application SMCgcc                           gcc
application SMCglib                          glib
application SMCindent                        indent
application SMClgcc346                       libgcc
application SMClibnet                        libnet
application SMCliconv                        libiconv
application SMCm4                            m4
application SMCmake                          make
application SMCossl                          openssl
application SMCpcre                          pcre
application SMCperl                          perl

A kovetkezo opciokkal futtatom a configure scriptet:


#./configure --prefix=/usr/local/syslog-ng --enable-dynamic-linking --disable-ipv6 --with-libnet=/usr/local/bin/libnetcfg

Ez a kimenete:


checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/local/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/local/bin/gcc accepts -g... yes
checking for /usr/local/bin/gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/local/bin/gcc... gcc3
checking for /usr/local/bin/gcc option to accept ANSI C... none needed
checking for bison... /usr/local/bin/bison
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking how to enable static linking for certain libraries... GNU or Solaris
checking how to run the C preprocessor... /usr/local/bin/cpp
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dmalloc.h usability... no
checking dmalloc.h presence... no
checking for dmalloc.h... no
checking for strings.h... (cached) yes
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/strlog.h usability... yes
checking sys/strlog.h presence... yes
checking for sys/strlog.h... yes
checking door.h usability... yes
checking door.h presence... yes
checking for door.h... yes
checking tcpd.h usability... no
checking tcpd.h presence... no
checking for tcpd.h... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_gmtoff... no
checking for I_CONSLOG... yes
checking for O_LARGEFILE... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_in6... yes
checking for door_create in -ldoor... yes
checking for socket in -lsocket... yes
checking for nanosleep in -lrt... yes
checking for gethostbyname in -lnsl... yes
checking for regexec in -lregex... no
checking for res_init in -lresolv... yes
checking for strdup... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoimax... no
checking for inet_aton... yes
checking for inet_ntoa... yes
checking for getopt_long... no
checking for getaddrinfo... yes
checking for getutent... yes
checking for TCP wrapper library...
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for LIBNET... no
checking whether to enable Sun STREAMS support... yes
checking whether to enable Sun door support... yes
checking whether to enable TCP wrapper support... no
checking whether to enable spoof source support... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for EVTLOG... yes
checking for static GLib libraries... no
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

#echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig

Szoval elvileg ez is rendben.
Tovabbi kornyezeti valtozo beallitasok:
CC=/usr/local/bin/gcc
CFLAGS=-Os
CPPFLAGS=-I/usr/local/include/glib-2.0/glib
YACC=/usr/local/bin/bison
CPP=/usr/local/bin/cpp
EVTLOG_LIBS=/usr/local/lib

Mi lehet a problema, hogy nem talalja a glib header file -okat, mikor azok a /usr/local/include/glib-2.0 konyvtarban figyelnek? Vagy nem ez lenne a hiba? Annyira nem vagyok jartas a forditasok teruleten.

Hozzászólások

El kellene talan olvasni a hibauzenetet... hasznald a -m32 gcc opciot. Egyebkent ne hasznald a 2.0.7-et.


#grep GLIB_SIZEOF /usr/lib/glib-2.0/include/glibconfig.h
#define GLIB_SIZEOF_VOID_P 4
#define GLIB_SIZEOF_LONG   4
#define GLIB_SIZEOF_SIZE_T 4

#grep GLIB_SIZEOF /usr/lib/sparcv9/glib-2.0/include/glibconfig.h
#define GLIB_SIZEOF_VOID_P 8
#define GLIB_SIZEOF_LONG   8
#define GLIB_SIZEOF_SIZE_T 8

A /usr/local alatt viszont nem talaltam ilyen nevu file -t. Ami a Solaris 9 -ben van glib, az nekem nem jo, mert regi es nyusszog a syslog-ng a configure futtatasa soran. Talan rosszul mehetett fel a sunfreeware -s glib csomag...?

--
http://laszlo.co.hu/

1. pkg-config kimenete:
-I/usr/local/include/glib-2.0
2. A /usr/local/lib/glib-2.0 könyvtár nem létezik
3. #pkginfo -l SMCglib


PKGINST:  SMCglib
      NAME:  glib
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  2.6.2
   BASEDIR:  /usr/local
    VENDOR:  The GLIB Project
    PSTAMP:  Steve Christensen
  INSTDATE:  Jan 30 2008 11:01
     EMAIL:  steve@smc.vnet.net
    STATUS:  completely installed
     FILES:      780 installed pathnames
                  32 shared pathnames
                 163 directories
                  17 executables
               42974 blocks used (approx)

--
http://laszlo.co.hu/

Szerintem tegyel fel egy frissebb glibet a sunfreeware-rol. Most olyan 2.14.1 -nel jarnak.

Bar ez sajna azzal jar, hogy az osszes sunfreewares csomagot frissitened kell ha jol emlekszem, foleg akkor, ha uj gcc -t is teszel fel.

Szek:
Ahhoz hogy megtalalja a libnetet, a --with-libnet opcionak csak azt a konyvtarat kell megadni ahol a libnet-config script van. A libnetcfg -t nevezd at legyszives.

Köszönet! Felraktam a 2.14.1 -es glibet a sunfreeware -ről és frissítettem a szükséges csomagokat, és így hiba nélkül lefutott a configure script. A libnet -et is javítottam, bár nem átnevezéssel, csak egy symlink -kel.
Remélem most már le fog fordulni.

--
http://laszlo.co.hu/