[syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc architecture

Girish Kumar girish.kumar at al-enterprise.com
Mon Feb 22 12:20:31 CET 2016


Thanks Chris for the information.

I commented following line in "syslog-ng-3.7.2/ltmain.sh" (at line 2967). With this my make install worked fine. Please let me know if this is ok to comment

test "$inst_prefix_dir" = "$destdir" && \
    #func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"


I will explain my Makefile

configure  --prefix=/ --host=$(CCPREFIX) --disable-python  --disable-json --enable-ssl --enable-glib
make
make install prefix=$(BUILT_BASE)

Here BUILT_BASE= /home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/built/46/7.X.X.R01/ppc_common
As I  am cross compiling, this is the path in my build system
After compilation generated exe and lib are copied to ramdisk path

Regards,
Girish


-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Herzig, Christian
Sent: Friday, February 19, 2016 5:56 PM
To: 'Syslog-ng users' and developers' mailing list'
Subject: Re: [syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc architecture

Hi Girish,

%PATH-TO-POWERPC-ROOTFS% is a path. In my setup, (I'm using the eldk from denx), the powerpc's rootfs is mounted over nfs to /opt/eldk/ppc_6xx.

For eventlog:
./configure --host=powerpc-linux-gnu
make
DESTDIR=/opt/eldk/ppc_6xx/ make install

For syslog-ng 3.7.2:
./configure --host=powerpc-linux-gnu --with-libtool-sysroot=/opt/eldk/ppc_6xx/
make
DESTDIR=/opt/eldk/ppc_6xx/ make install

What is your prefix? Try with the default prefix for eventlog and syslog-ng.
Is /sw/tps/built/46/7.X.X.R01/ppc_common/ the path on your host machine to your target rootfs?

Cheers,
Chris

-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Girish Kumar
Sent: Thursday, February 18, 2016 4:40 PM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc architecture

Hi Chris,

Could you please let me know  what is /%PATH-TO-POWERPC-ROOTFS%/ Is it flag or path.

In my case my lib path is  "/sw/tps/built/46/7.X.X.R01/ppc_common/lib"
Should I replace with that?

Regards,
Girish

-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Herzig, Christian
Sent: Thursday, February 18, 2016 7:44 PM
To: 'Syslog-ng users' and developers' mailing list'
Subject: Re: [syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc architecture

Hi Girish

I've successfully cross-compiled syslog-ng 3.7.2 for powerpc using:
$ ./configure --host=powerpc-linux-gnu --with-libtool-sysroot=/%PATH-TO-POWERPC-ROOTFS%/
$ make
$ DESTDIR=/%PATH-TO-POWERPC-ROOTFS% make install

Cheers, Chris

From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Girish Kumar
Sent: Thursday, February 18, 2016 2:54 PM
To: Syslog-ng users' and developers' mailing list
Subject: [syslog-ng] Cross Compiling syslog-ng 3.7.2 on power-pc architecture

Hi All,

I  am successful in configure   and  make . All compilation is successful.
"Make install "is giving following problem. Could you please help me on this

Is there any workaround for this?

/bin/mkdir -p '/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/built/46/7.X.X.R01/ppc_common/lib/syslog-ng'
/bin/sh ./libtool   --mode=install /usr/bin/install -c   modules/syslogformat/libsyslogformat.la modules/afsocket/libafsocket.la modules/affile/libaffile.la modules/afprog/libafprog.la modules/afuser/libafuser.la modules/afamqp/libafamqp.la modules/afmongodb/libafmongodb.la modules/csvparser/libcsvparser.la modules/confgen/libconfgen.la modules/system-source/libsystem-source.la modules/linux-kmsg-format/liblinux-kmsg-format.la modules/basicfuncs/libbasicfuncs.la modules/cryptofuncs/libcryptofuncs.la modules/dbparser/libdbparser.la modules/afstomp/libafstomp.la modules/pseudofile/libpseudofile.la modules/graphite/libgraphite.la modules/systemd-journal/libsdjournal.la modules/kvformat/libkvformat.la '/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/built/46/7.X.X.R01/ppc_common/lib/syslog-ng'
libtool: install: error: cannot install `modules/syslogformat/libsyslogformat.la' to a directory not ending in //lib/syslog-ng
make[5]: *** [install-moduleLTLIBRARIES] Error 1
make[4]: *** [install-am] Error 2
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/objs/46/7.X.X.R01/ppc_common/syslog-ng'
make[1]: *** [/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/built/46/7.X.X.R01/ppc_common/sbin/syslog-ng] Error 2
make[1]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps'
make: *** [tps-build] Error 2

Regards,
Girish
______________________________________________________________________________
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

______________________________________________________________________________
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

______________________________________________________________________________
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



More information about the syslog-ng mailing list