Rsyslog on Itanium 64

Everything related with getting rsyslog up and running (but not beyond that point ;))

Moderator: rgerhards

Rsyslog on Itanium 64

Postby BugX on Tue Dec 04, 2007 10:09 am

Hi all...
Does anybody success compile rsyslogd on Itanium Architecture 64?
I tried to compile it, and it give me so much errors.

Or is there any RPM for RHEL 4 in IA64?

thanks,
Andre
BugX
New
 
Posts: 9
Joined: Tue Dec 04, 2007 9:59 am

RE: Rsyslog on Itanium 64

Postby rgerhards on Tue Dec 04, 2007 11:07 am

Hi Andre,

I don't have Itanium at hand, so I can obviously not contribute to the root question. However, I would be interested to see the compiler error messages. Can you post them? If so, please also let me know which version of rsyslog you are using.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1274
Joined: Thu Feb 13, 2003 11:57 am

Postby mbiebl on Wed Dec 05, 2007 12:58 am

Hi Andre,

Complete build logs for all architectures the Debian rsyslog package is currently built on are here:
http://buildd.debian.org/build.php?pkg=rsyslog
You will notice, that rsyslog has been successfully compiled on
alpha, amd64, arm, hppa, i386, ia64, m68k, mips, mipsel, powerpc, s390, sparc.


There are definitely some warnings on ia64 like
syslogd.c:793: warning: cast increases required alignment of target type
or
modules.c:326: warning: cast from pointer to integer of different size
which should be looked at.

Unfortunately I can't really test rsyslog, because I don't have root access to a ia64 machine, but on the other hand, I haven't received a bug report so far, which is good.

@rainer: iirc, sourceforge.net offers registered users acccess to different types of machines and architectures, which could help in porting rsyslog.
http://sitedocs.sourceforge.net/status/support_cfstatus.html

Cheers,
Michael
mbiebl
Avarage
 
Posts: 16
Joined: Wed Dec 05, 2007 12:46 am

Postby rgerhards on Wed Dec 05, 2007 4:32 pm

Hi Michael,

it looks like the compile farm was discontinued: :(

https://sourceforge.net/forum/forum.php ... id=665363|

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1274
Joined: Thu Feb 13, 2003 11:57 am

Postby BugX on Fri Dec 07, 2007 3:42 am

@Rainer: this is the error that I've got..
Code: Select all
[root@T0076 linux]# make
cc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include   -DFEATURE_REGEXP -DNDEBUG  -DUSE_PTHREADS -DUSE_NETZIP  -c ../rfc3195d.c
cc -s -o rfc3195d rfc3195d.o
cc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include   -DFEATURE_REGEXP -DNDEBUG  -DUSE_PTHREADS -DUSE_NETZIP -DSYSLOG_INET -DSYSLOG_UNIXAF -DFSSTND -DSYSLOGD_PIDNAME=\"rsyslogd.pid\" -c ../syslogd.c
../syslogd.c:193:18: zlib.h: No such file or directory
../syslogd.c: In function `TCPSend':
../syslogd.c:1793: warning: int format, different type arg (arg 4)
../syslogd.c:1793: warning: int format, different type arg (arg 4)
../syslogd.c: In function `printchopped':
../syslogd.c:3904: error: `uLongf' undeclared (first use in this function)
../syslogd.c:3904: error: (Each undeclared identifier is reported only once
../syslogd.c:3904: error: for each function it appears in.)
../syslogd.c:3904: error: syntax error before "iLenDefBuf"
../syslogd.c:3931: error: `iLenDefBuf' undeclared (first use in this function)
../syslogd.c:3932: warning: implicit declaration of function `uncompress'
../syslogd.c:3943: error: `Z_OK' undeclared (first use in this function)
../syslogd.c: In function `parseRFCSyslogMsg':
../syslogd.c:4745: warning: dereferencing type-punned pointer will break strict-aliasing rules
../syslogd.c: In function `fprintlog':
../syslogd.c:5572: error: `Bytef' undeclared (first use in this function)
../syslogd.c:5572: error: syntax error before "out"
../syslogd.c:5573: error: `uLongf' undeclared (first use in this function)
../syslogd.c:5574: error: `uLong' undeclared (first use in this function)
../syslogd.c:5576: warning: implicit declaration of function `compress2'
../syslogd.c:5576: error: `out' undeclared (first use in this function)
../syslogd.c:5576: error: `destLen' undeclared (first use in this function)
../syslogd.c:5576: error: `srcLen' undeclared (first use in this function)
../syslogd.c:5579: error: `Z_OK' undeclared (first use in this function)
../syslogd.c: In function `mainloop':
../syslogd.c:8289: warning: passing arg 6 of `recvfrom' from incompatible pointer type
make: *** [syslogd.o] Error 1


And my version of gcc is:
gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)


@Michael: Do I need to install any additional package? because, on my previous box, I only install gcc, and I can build it successfuly.

Thanks..
Andre
BugX
New
 
Posts: 9
Joined: Tue Dec 04, 2007 9:59 am

Postby rgerhards on Fri Dec 07, 2007 8:23 am

Andre,

it looks like zlib is missing! You can either install it or disable the compression feature in rsyslog. Please let me know how this worked out.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1274
Joined: Thu Feb 13, 2003 11:57 am

Postby BugX on Fri Dec 07, 2007 10:57 am

Hi Rainer...
I have no zlib package right now, and can't download it (because of the policy)
so I disable the compression feature, and it works now :)
awesome..

Thanks in advance,
Andre
BugX
New
 
Posts: 9
Joined: Tue Dec 04, 2007 9:59 am

Postby rgerhards on Fri Dec 07, 2007 10:58 am

I am glad it worked out! :)

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1274
Joined: Thu Feb 13, 2003 11:57 am

Postby rgerhards on Fri Dec 07, 2007 11:00 am

Oh, and one thing. You could do us a *big* favor if you rate rsyslog at its freshmeat page:

http://freshmeat.net/projects/rsyslog/

The project is still not widely known and a rating over there definitely helps. Of course, you can also spread the word about rsyslog ;)

If you have the time for rating, that would be great!

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1274
Joined: Thu Feb 13, 2003 11:57 am

Postby mbiebl on Sat Dec 08, 2007 1:50 pm

rgerhards wrote:Andre,

it looks like zlib is missing! You can either install it or disable the compression feature in rsyslog. Please let me know how this worked out.

Rainer


Hm, there is something not working correctly then.
The configure script should automatically disable zlib support if it is not found.
So something like this shouldn't happen.

Could you post the output of ./configure?

Cheers,
Michael
mbiebl
Avarage
 
Posts: 16
Joined: Wed Dec 05, 2007 12:46 am

Postby BugX on Mon Dec 10, 2007 3:15 am

Hi Michael, I think there's no configure in my rsyslog folder...
Anyway, when I build this with database feature enabled, there's some error like this:
Code: Select all
cc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include  -DWITH_DB -DFEATURE_REGEXP -DNDEBUG  -DUSE_PTHREADS   -c ../rfc3195d.c
cc -s -o rfc3195d rfc3195d.o
cc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include  -DWITH_DB -DFEATURE_REGEXP -DNDEBUG  -DUSE_PTHREADS  -DSYSLOG_INET -DSYSLOG_UNIXAF -DFSSTND -DSYSLOGD_PIDNAME=\"rsyslogd.pid\" -c ../syslogd.c
../syslogd.c: In function `TCPSend':
../syslogd.c:1793: warning: int format, different type arg (arg 4)
../syslogd.c:1793: warning: int format, different type arg (arg 4)
../syslogd.c: In function `parseRFCSyslogMsg':
../syslogd.c:4745: warning: dereferencing type-punned pointer will break strict-aliasing rules
../syslogd.c: In function `mainloop':
../syslogd.c:8289: warning: passing arg 6 of `recvfrom' from incompatible pointer type
cc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include  -DWITH_DB -DFEATURE_REGEXP -DNDEBUG  -DUSE_PTHREADS   -c ../pidfile.c
cc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include  -DWITH_DB -DFEATURE_REGEXP -DNDEBUG  -DUSE_PTHREADS   -c ../template.c
../template.c: In function `tplDeleteAll':
../template.c:601: warning: cast from pointer to integer of different size
../template.c: In function `tplPrintList':
../template.c:646: warning: cast from pointer to integer of different size
cc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include  -DWITH_DB -DFEATURE_REGEXP -DNDEBUG  -DUSE_PTHREADS   -c ../stringbuf.c
cc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include  -DWITH_DB -DFEATURE_REGEXP -DNDEBUG  -DUSE_PTHREADS   -c ../srUtils.c
cc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include  -DWITH_DB -DFEATURE_REGEXP -DNDEBUG  -DUSE_PTHREADS   -c ../outchannel.c
cc  -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -I/usr/local/include  -DWITH_DB -DFEATURE_REGEXP -DNDEBUG  -DUSE_PTHREADS   -c ../parse.c
cc -s   -lpthread -o syslogd syslogd.o pidfile.o template.o outchannel.o stringbuf.o srUtils.o parse.o -lmysqlclient -L/usr/lib/mysql
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x4d22): In function `myodbc_remove_escape':
/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/libmysql.c:1697: undefined reference to `?1__serial_memmove'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0xeca2): In function `fetch_float_with_conversion':
/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/libmysql.c:3757: undefined reference to `floor'
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0xecc2):/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/libmysql.c:3757: undefined reference to `floor'
/usr/lib/mysql/libmysqlclient.a(password.o)(.text+0x242): In function `scramble_323':
/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/password.c:179: undefined reference to `floor'
/usr/lib/mysql/libmysqlclient.a(password.o)(.text+0x2d2):/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/password.c:180: undefined reference to `floor'
/usr/lib/mysql/libmysqlclient.a(password.o)(.text+0xd92): In function `check_scramble_323':
/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/password.c:220: undefined reference to `floor'
/usr/lib/mysql/libmysqlclient.a(password.o)(.text+0xe82):/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/password.c:223: more undefined references to `floor' follow
/usr/lib/mysql/libmysqlclient.a(charset.o)(.text+0x2662): In function `escape_string_for_mysql':
/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/charset.c:624: undefined reference to `?1__serial_memmove'
/usr/lib/mysql/libmysqlclient.a(charset.o)(.text+0x2902): In function `escape_quotes_for_mysql':
/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/charset.c:763: undefined reference to `?1__serial_memmove'
/usr/lib/mysql/libmysqlclient.a(client.o)(.text+0x802): In function `mysql_reconnect':
/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/client.c:2453: undefined reference to `?1__serial_memmove'
/usr/lib/mysql/libmysqlclient.a(client.o)(.text+0xa12):/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/client.c:2506: undefined reference to `?1__serial_memmove'
/usr/lib/mysql/libmysqlclient.a(default.o)(.text+0x26c2): In function `free_defaults':
/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/libmysql/default.c:471: undefined reference to `?1__serial_memmove'
/usr/lib/mysql/libmysqlclient.a(deflate.o)(.text+0x3602):/home/mysqldev/tmp-200707041150-5.0.45-14984/rpm/BUILD/mysql-5.0.45/zlib/deflate.c:912: more undefined references to `?1__serial_memmove' follow
collect2: ld returned 1 exit status
make: *** [syslogd] Error 1


and I already have mysql client and devel package installed, do I need to install any additional package?

Thanks,
Andre
BugX
New
 
Posts: 9
Joined: Tue Dec 04, 2007 9:59 am

Postby mbiebl on Mon Dec 10, 2007 11:17 am

BugX wrote:Hi Michael, I think there's no configure in my rsyslog folder...


How do you generate the Makefile then?
Please download either the released tarballs (which ship a ready to use ./configure script) and run
Code: Select all
./configure && make
(and optionally make install)
or if you use the cvs checkout

Code: Select all
autoreconf -vfi && ./configure && make


Cheers,
Michael
mbiebl
Avarage
 
Posts: 16
Joined: Wed Dec 05, 2007 12:46 am

Postby BugX on Tue Dec 11, 2007 2:49 am

the Makefile is already there... on platform folder (in my case, it's in linux folder).

Thanks,
Andre
BugX
New
 
Posts: 9
Joined: Tue Dec 04, 2007 9:59 am

Postby rgerhards on Tue Dec 11, 2007 8:49 am

Ahh... that looks like an issue with the tarball. Looks like a left-over from when autotools was not used. Will look in to it and fix (essentially removing the invalid Makefile).

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1274
Joined: Thu Feb 13, 2003 11:57 am

Postby rgerhards on Tue Dec 11, 2007 9:38 am

mmhhh... I am puzzled. That makefile is not there on my development system. Where did you obtain the tarball from? OK, his sound funny, but I have also looked at the tarball and there is not even a linux subdirectory...

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1274
Joined: Thu Feb 13, 2003 11:57 am

Google Ads


Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron