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

Herzig, Christian Christian.Herzig at keymile.com
Fri Feb 19 13:25:57 CET 2016


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



More information about the syslog-ng mailing list