Hi,



I have the compiled binaries of LPRng 3.6.9d on a linux 32 bit (i686).

The source was compiled on a linux 32 bit box.It is working perfectly fine on that 32 bit box.



But when I move those binaries to a 64 bit (Red hat 4.4 enterprise in my case) . lpd is giving some errors while connecting to a daemon (logger) on port 5555.

I am running lpd in foreground mode using lpd –F –Dnetwork=@



It is giving me following errors:



*** glibc detected *** double free or corruption (!prev): 0x080a7e88 ***

2007-02-13-23:28:33.916 sbkgamsdbqa1 [30167] LOG2 getconnection: START host localhost, timeout 5, connection_type 1

2007-02-13-23:28:33.916 sbkgamsdbqa1 [30167] LOG2 getconnection: fqdn found sbkgamsdbqa1.hatest.net, h_addr_list count 1

2007-02-13-23:28:33.916 sbkgamsdbqa1 [30167] LOG2 Link_dest_port_num: port 5555 = 5555

2007-02-13-23:28:33.917 sbkgamsdbqa1 [30167] LOG2 getconnection: connection to 'localhost' failed 'Cannot assign requested address'

2007-02-13-23:28:33.917 sbkgamsdbqa1 [30167] LOG2 getconnection: connection to 'localhost' socket -1, errormsg 'Cannot assign requested address'





If my logger is off, till that time its fine. As soon as logger starts it keep on giving the above error.





If I take these binaries to another 32 bit linux box , it works fine.

I tried compiling the source of LPRng3.6.9d on the 64 bit linux box but, it didn’t compiled.



After running the configure I get following error while executing make.



cc -g -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -DLPD_CONF_PATH=\"/usr/local/etc/lpd.conf\" -DLPD_PERMS_PATH=\"/usr/local/etc/lpd.perms\" -DPRINTCAP_PATH=\"/usr/local/etc/printcap\" -DLPD_PRINTCAP_PATH=\"/usr/local/etc/lpd_printcap\" -DFORCE_LOCALHOST=\"1\" -I.. -I./include -c -o lpc.o ./common/lpc.c

In file included from ./include/lp.h:22,

from ./common/lpc.c:62:

./include/portable.h:671: error: conflicting types for 'inet_ntop'

/usr/include/arpa/inet.h:67: error: previous declaration of 'inet_ntop' was here

./include/portable.h:671: error: conflicting types for 'inet_ntop'

/usr/include/arpa/inet.h:67: error: previous declaration of 'inet_ntop' was here

./include/portable.h:778: error: redefinition of `struct in6_addr'

./include/portable.h:778: warning: no semicolon at end of struct or union

./include/portable.h:778: error: syntax error before '.' token

./include/portable.h:779: error: redefinition of `struct sockaddr_in6'

make: *** [lpc.o] Error 1





Although I was successfully able to install and run the latest LPRng3.8.24 on this 64 bit Linux box.

But, my organization needs to work on 3.6.9d.



Kindly help me.

I will be really grateful.



Thanks in advance..!!