Hi Folks..!! I am sorry to bug you again.. This should be the last one...
I was able to successfully run LPRng3.8.28 on my RED Hat Linux 4.4. But as my company is already using 3.6.9d version and to avoid some problems I am compiling the code for 3.6.9d After running the configure script I am making changes to makefile by setting the CFLAGS and LDFLAGS = -m32. Then I run make install I get following error messages : (Please help and le me know what needs to be done, I will be grateful ..as always.. :) ) ./common/lpc.c:62:16: lp.h: No such file or directory ./common/lpc.c:63:24: initialize.h: No such file or directory ./common/lpc.c:64:24: getprinter.h: No such file or directory ./common/lpc.c:65:21: sendreq.h: No such file or directory ./common/lpc.c:66:19: child.h: No such file or directory ./common/lpc.c:67:21: control.h: No such file or directory ./common/lpc.c:68:22: sendauth.h: No such file or directory ./common/lpc.c:70:24: patchlevel.h: No such file or directory ./common/lpc.c:71:24: errorcodes.h: No such file or directory ./common/lpc.c:87:17: lpc.h: No such file or directory ./common/lpc.c:90: warning: "struct line_list" declared inside parameter list ./common/lpc.c:90: warning: its scope is only this definition or declaration, which is probably not what you want ./common/lpc.c: In function `main': ./common/lpc.c:97: error: `LINEBUFFER' undeclared (first use in this function) ./common/lpc.c:97: error: (Each undeclared identifier is reported only once ./common/lpc.c:97: error: for each function it appears in.) ./common/lpc.c:98: error: storage size of 'args' isn't known ./common/lpc.c:102: error: `SIGHUP' undeclared (first use in this function) ./common/lpc.c:102: error: `cleanup_HUP' undeclared (first use in this function) ./common/lpc.c:103: error: `SIGINT' undeclared (first use in this function) ./common/lpc.c:103: error: `cleanup_INT' undeclared (first use in this function) ./common/lpc.c:104: error: `SIGQUIT' undeclared (first use in this function) ./common/lpc.c:104: error: `cleanup_QUIT' undeclared (first use in this function) ./common/lpc.c:105: error: `SIGTERM' undeclared (first use in this function) ./common/lpc.c:105: error: `cleanup_TERM' undeclared (first use in this function) ./common/lpc.c:111: error: `Debug' undeclared (first use in this function) ./common/lpc.c:122: error: `Optind' undeclared (first use in this function) ./common/lpc.c:123: error: `DEBUGL1' undeclared (first use in this function) ./common/lpc.c:132: error: `OriginalRUID' undeclared (first use in this function) ./common/lpc.c:133: error: storage size of 'user_list' isn't known ./common/lpc.c:139: error: `Allow_user_setting_DYN' undeclared (first use in this function) ./common/lpc.c:141: error: `File_sep' undeclared (first use in this function) ./common/lpc.c:150: warning: assignment makes pointer from integer without a cast ./common/lpc.c:152: error: dereferencing pointer to incomplete type ./common/lpc.c:163: error: `Logname_DYN' undeclared (first use in this function) ./common/lpc.c:174: error: `stdout' undeclared (first use in this function) ./common/lpc.c:176: error: `stdin' undeclared (first use in this function) ./common/lpc.c:177: warning: assignment makes pointer from integer without a cast ./common/lpc.c:180: error: `Whitespace' undeclared (first use in this function) ./common/lpc.c:192: error: `Errorcode' undeclared (first use in this function) ./common/lpc.c:193: error: `Is_server' undeclared (first use in this function) ./common/lpc.c: At top level: ./common/lpc.c:198: warning: "struct line_list" declared inside parameter list ./common/lpc.c:199: error: conflicting types for 'doaction' ./common/lpc.c:90: error: previous declaration of 'doaction' was here ./common/lpc.c:199: error: conflicting types for 'doaction' ./common/lpc.c:90: error: previous declaration of 'doaction' was here ./common/lpc.c: In function `doaction': ./common/lpc.c:201: error: storage size of 'l' isn't known ./common/lpc.c:202: error: `SMALLBUFFER' undeclared (first use in this function) ./common/lpc.c:207: error: dereferencing pointer to incomplete type ./common/lpc.c:208: error: dereferencing pointer to incomplete type ./common/lpc.c:209: error: `DEBUGL1' undeclared (first use in this function) ./common/lpc.c:214: error: dereferencing pointer to incomplete type ./common/lpc.c:215: error: `Printer_DYN' undeclared (first use in this function) ./common/lpc.c:215: error: dereferencing pointer to incomplete type ./common/lpc.c:218: error: `RemotePrinter_DYN' undeclared (first use in this function) ./common/lpc.c:218: error: `RemoteHost_DYN' undeclared (first use in this function) ./common/lpc.c:219: error: dereferencing pointer to incomplete type ./common/lpc.c:219: warning: assignment makes pointer from integer without a cast ./common/lpc.c:220: error: `Server' undeclared (first use in this function) ./common/lpc.c:235: error: `OP_SERVER' undeclared (first use in this function) ./common/lpc.c:236: error: `Is_server' undeclared (first use in this function) ./common/lpc.c:239: error: `OP_DEFAULTS' undeclared (first use in this function) ./common/lpc.c:242: error: `Pc_var_list' undeclared (first use in this function) ./common/lpc.c:243: error: `OP_LOCAL' undeclared (first use in this function) ./common/lpc.c:244: error: `Config_line_list' undeclared (first use in this function) ./common/lpc.c:244: warning: assignment makes pointer from integer without a cast ./common/lpc.c:245: warning: assignment makes pointer from integer without a cast ./common/lpc.c:246: warning: assignment makes pointer from integer without a cast ./common/lpc.c:252: error: dereferencing pointer to incomplete type ./common/lpc.c:254: error: dereferencing pointer to incomplete type ./common/lpc.c:258: error: `PC_names_line_list' undeclared (first use in this function) ./common/lpc.c:258: warning: assignment makes pointer from integer without a cast ./common/lpc.c:259: warning: assignment makes pointer from integer without a cast ./common/lpc.c:260: warning: assignment makes pointer from integer without a cast ./common/lpc.c:266: error: `All_line_list' undeclared (first use in this function) ./common/lpc.c:266: warning: assignment makes pointer from integer without a cast ./common/lpc.c:267: warning: assignment makes pointer from integer without a cast ./common/lpc.c:268: warning: assignment makes pointer from integer without a cast ./common/lpc.c:274: error: dereferencing pointer to incomplete type ./common/lpc.c:275: error: dereferencing pointer to incomplete type ./common/lpc.c:283: error: `PC_alias_line_list' undeclared (first use in this function) ./common/lpc.c:283: warning: assignment makes pointer from integer without a cast ./common/lpc.c:284: error: `PC_entry_line_list' undeclared (first use in this function) ./common/lpc.c:284: warning: assignment makes pointer from integer without a cast ./common/lpc.c:286: warning: assignment makes pointer from integer without a cast ./common/lpc.c:287: warning: assignment makes pointer from integer without a cast ./common/lpc.c:288: warning: assignment makes pointer from integer without a cast ./common/lpc.c:296: error: `OP_LPQ' undeclared (first use in this function) ./common/lpc.c:296: error: `OP_LPRM' undeclared (first use in this function) ./common/lpc.c:297: error: `pid_t' undeclared (first use in this function) ./common/lpc.c:297: error: syntax error before "pid" ./common/lpc.c:298: error: `plp_status_t' undeclared (first use in this function) ./common/lpc.c:299: error: dereferencing pointer to incomplete type ./common/lpc.c:303: error: dereferencing pointer to incomplete type ./common/lpc.c:303: error: dereferencing pointer to incomplete type ./common/lpc.c:304: error: dereferencing pointer to incomplete type ./common/lpc.c:305: error: dereferencing pointer to incomplete type ./common/lpc.c:312: error: dereferencing pointer to incomplete type ./common/lpc.c:315: error: `pid' undeclared (first use in this function) ./common/lpc.c:320: error: dereferencing pointer to incomplete type ./common/lpc.c:320: error: dereferencing pointer to incomplete type ./common/lpc.c:321: error: `errno' undeclared (first use in this function) ./common/lpc.c:327: error: `result' undeclared (first use in this function) ./common/lpc.c:327: error: `status' undeclared (first use in this function) ./common/lpc.c:328: error: `EINTR' undeclared (first use in this function) ./common/lpc.c:333: error: `Logname_DYN' undeclared (first use in this function) ./common/lpc.c:333: error: `Value_sep' undeclared (first use in this function) ./common/lpc.c:337: error: `REQ_CONTROL' undeclared (first use in this function) ./common/lpc.c:337: error: `Connect_timeout_DYN' undeclared (first use in this function) ./common/lpc.c:338: error: `Send_query_rw_timeout_DYN' undeclared (first use in this function) ./common/lpc.c: At top level: ./common/lpc.c:353: error: syntax error before "va_dcl" ./common/lpc.c:355: error: syntax error before '{' token ./common/lpc.c:360: error: `LARGEBUFFER' undeclared here (not in a function) ./common/lpc.c:363: error: syntax error before "VA_START" ./common/lpc.c:363: warning: parameter names (without types) in function declaration ./common/lpc.c:363: warning: data definition has no type or storage class ./common/lpc.c:364: error: syntax error before "struct" ./common/lpc.c:364: warning: data definition has no type or storage class ./common/lpc.c:365: error: syntax error before "char" ./common/lpc.c:365: warning: data definition has no type or storage class ./common/lpc.c:367: error: invalid initializer ./common/lpc.c:367: warning: data definition has no type or storage class ./common/lpc.c:368: error: syntax error before "if" ./common/lpc.c:370: error: syntax error before string constant ./common/lpc.c:370: warning: conflicting types for built-in function 'strcat' ./common/lpc.c:370: warning: data definition has no type or storage class ./common/lpc.c:373: warning: data definition has no type or storage class ./common/lpc.c:374: error: syntax error before "return" ./common/lpc.c:377: warning: "struct job" declared inside parameter list ./common/lpc.c:382: error: syntax error before "va_dcl" ./common/lpc.c:384: error: syntax error before '{' token ./common/lpc.c:392: error: syntax error before "VA_START" ./common/lpc.c:392: warning: parameter names (without types) in function declaration ./common/lpc.c:392: warning: data definition has no type or storage class ./common/lpc.c:393: error: syntax error before "struct" ./common/lpc.c:393: warning: data definition has no type or storage class ./common/lpc.c:394: error: syntax error before "char" ./common/lpc.c:394: warning: data definition has no type or storage class ./common/lpc.c:395: error: syntax error before "char" ./common/lpc.c:395: warning: data definition has no type or storage class ./common/lpc.c:397: error: redefinition of 'msg' ./common/lpc.c:367: error: previous definition of 'msg' was here ./common/lpc.c:397: error: invalid initializer ./common/lpc.c:397: warning: data definition has no type or storage class ./common/lpc.c:398: error: syntax error before "if" ./common/lpc.c:400: error: syntax error before string constant ./common/lpc.c:400: warning: data definition has no type or storage class ./common/lpc.c:403: warning: data definition has no type or storage class ./common/lpc.c:404: error: syntax error before "return" ./common/lpc.c:422: error: conflicting types for 'Get_parms' ./common/lpc.c:120: error: previous implicit declaration of 'Get_parms' was here ./common/lpc.c: In function `Get_parms': ./common/lpc.c:425: error: `EOF' undeclared (first use in this function) ./common/lpc.c:428: error: `Optarg' undeclared (first use in this function) ./common/lpc.c:431: error: `Printer_DYN' undeclared (first use in this function) ./common/lpc.c:433: error: `Verbose' undeclared (first use in this function) ./common/lpc.c:436: error: `Server' undeclared (first use in this function) ./common/lpc.c:444: error: `stderr' undeclared (first use in this function) ./common/lpc.c:444: error: `PATCHLEVEL' undeclared (first use in this function) ./common/lpc.c:444: warning: passing arg 2 of `fprintf' makes pointer from integer without a cast ./common/lpc.c: At top level: ./common/lpc.c:448: error: conflicting types for 'msg' ./common/lpc.c:397: error: previous definition of 'msg' was here ./common/lpc.c:448: error: conflicting types for 'msg' ./common/lpc.c:367: error: previous definition of 'msg' was here ./common/lpc.c:448: warning: initialization makes pointer from integer without a cast ./common/lpc.c:448: error: initializer element is not constant ./common/lpc.c: In function `use_msg': ./common/lpc.c:490: error: `stderr' undeclared (first use in this function) ./common/lpc.c:490: error: `Name' undeclared (first use in this function) ./common/lpc.c:490: warning: passing arg 2 of `fprintf' makes pointer from integer without a cast ./common/lpc.c: At top level: ./common/lpc.c:498: warning: "struct line_list" declared inside parameter list ./common/lpc.c: In function `Start_worker': ./common/lpc.c:500: error: `DEBUGL1' undeclared (first use in this function) ./common/lpc.c:501: error: `Errorcode' undeclared (first use in this function) ./common/lpc.c:501: error: `JABORT' undeclared (first use in this function) ./common/lpc.c:502: error: `LOG_ERR' undeclared (first use in this function) ./common/lpc.c: At top level: ./common/lpc.c:360: error: storage size of `msg' isn't known ./common/lpc.c:389: error: storage size of `msg' isn't known make: *** [lpc.o] Error 1 -----Original Message----- From: Dave Korn [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 1:48 PM To: Raheja, Himanshu; 'Eli Zaretskii' Cc: bug-make@gnu.org Subject: RE: BUG while running the make file On 07 February 2007 18:44, Raheja, Himanshu wrote: > Hi Folks, > > I was able to resolve that issue by googling: > > When I ran ./configure CFLAGS=-m32 LDFLAGS=-m32 > > And after that make install was working fine. > But I am not sure why this was happening. Probably because your compiler is a recent one, and defaults to compiling 64-bit code, but your binutils are slightly out of date and have bugs trying to assemble the 64-bit code. The -m32 flag that you have found out to use makes sure the compiler still generates 32-bit code, which the binutils do not have any problem with. So you end up with a 32-bit executable. (It might be possible to upgrade your binutils and get the build to work for 64 bits, and the resulting executable might run faster, but it's not something to try unless you were confident with upgrading packages and knew how to revert to the old one if something went wrong.) cheers, DaveK -- Can't think of a witty .sigline today.... _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make