The problem described below may have been solved already... I haven't been following the group lately... but I just spent a day or so fighting through it. Turns out that a standard lprng configure on HP defines the selected compiler as the "Loader". For some reason the libtool that gets built during configuration doesn't recognize this, and does not include the "pass argument through to loader" syntax in its link command. It puts the loader-specific argument directly on a compiler command line. The fix that worked for me on HP-UX 11 was to specify "--with-linker=/usr/bin/ld" on the configure command. I got a few warnings from libtool, but the libraries got built.
I also had Warnings from both gcc and the HP ansi c about pointer type mismatches on the "select" command. I had to remove the "-Werror" from CFLAGS in the src Makefile to get the build to complete. Dave Dave Cunningham Computing and Network Services (408) 756-1382 Voice, (408) 539-4912 Pager [EMAIL PROTECTED] From: User Papowell <[EMAIL PROTECTED]> Date: Fri Sep 28, 2001 2:12 pm Subject: RE: LPRng: Compilation on 11i, revisited This is really really strange. Can you ask the 'libtool' folks if this is a known problem? > From [EMAIL PROTECTED] Wed Sep 19 11:18:46 2001 > From: "Ryan Novosielski" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: RE: LPRng: Compilation on 11i, revisited > Date: Wed, 19 Sep 2001 12:56:42 -0400 > > Ummm... I just looked over this again and I found what I believe to be a > very good reason for this to never work (which really confuses me since it > did work once!) > > Take a closer look at two of the below lines (incidentally, I now use 3.7.7 > which does the same thing but wasn't out back when I started complaining > about this). > > > rm -fr .libs/liblpr.la .libs/liblpr.* .libs/liblpr.* > > ...that lays the groundwork for: > > > /usr/ccs/bin/ld: Can't open liblpr.sl.0 > > /usr/ccs/bin/ld: No such file or directory > > gmake[1]: *** [liblpr.la] Error 1 > > ...isn't it not able to find it because it erased it two lines earlier? > liblpr.sl.0 certainly does match liblpr.*, does it not? The time that it did > work, I found that .libs had all of the files. I don't have a system slow > enough to find out if those libs are ever there before that line comes > along, but I suppose you can tell me if I'm on the right track anyway. > > (also was unable to find that rm -fr ANYPLACE in any Makefile to try and > comment it out, so... <shrug> if you want me to give that a shot, tell me > where it's hiding ;)) > > ---- _ _ _ _ ___ _ _ _ > |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin > |$&| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 732/235.4473 (5-4473) > \__/ Univ. of Med. and Dent. | IST/ACS - Robert Wood Johnson MS - S-B11 > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of > > Ryan Novosielski > > Sent: Friday, September 14, 2001 2:41 PM > > To: LPRng Mailing List > > Subject: LPRng: Compilation on 11i, revisited > > > > > > I was able to "fix" the problem, for now, so that I could continue doing > > my testing so that I can put 3.7.6 on my servers. However, I then run into > > this problem on most of my systems, but not on one of them (this happens > > on 11i and 11o machines <sigh>)... I can't figure out what could be > > different based on this error message: > > > > rm -fr .libs/liblpr.la .libs/liblpr.* .libs/liblpr.* > > cc -b +h liblpr.sl.0 +b /opt/LPRng-3.7.6/lib -o > > .libs/liblpr.sl.0.0 accounting.lo child.lo controlword.lo > > copyright.lo debug.lo errormsg.lo fileopen.lo gethostinfo.lo > > getopt.lo getprinter.lo getqueue.lo globmatch.lo initialize.lo > > krb5_auth.lo linelist.lo linksupport.lo lockfile.lo > > lpd_control.lo lpd_jobs.lo lpd_logger.lo lpd_rcvjob.lo > > lpd_remove.lo sendauth.lo lpd_secure.lo lpd_status.lo merge.lo > > permission.lo plp_snprintf.lo printjob.lo proctitle.lo sendjob.lo > > sendmail.lo sendreq.lo stty.lo utilities.lo vars.lo md5.lo > > cc: warning 422: Unknown option "b" ignored. > > cc: warning 440: Bad argument to option -h; ignored. > > cc: warning 422: Unknown option "+b" ignored. > > /usr/ccs/bin/ld: Can't open liblpr.sl.0 > > /usr/ccs/bin/ld: No such file or directory > > gmake[1]: *** [liblpr.la] Error 1 > > gmake[1]: Leaving directory `/opt/src/LPRng-3.7.6/src' > > gmake: *** [src] Error 2 > > > > ...doesn't this get built during the compile? What could be going on here? > > > > ---- _ _ _ _ ___ _ _ _ > > |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin > > |$&| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 732/235.4473 (5-4473) > > \__/ Univ. of Med. and Dent. | IST/ACS - Robert Wood Johnson MS - S-B11 > > > > > > ------------------------------------------------------------------ > > ----------- > > YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST > > The address you post from MUST be your subscription address > > > > If you need help, send email to [EMAIL PROTECTED] (or lprng-requests > > or lprng-digest-requests) with the word 'help' in the body. For > > the impatient, > > to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] > > with: | example: > > subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] > > unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] > > > > If you have major problems, send email to [EMAIL PROTECTED] > > with the word > > LPRNGLIST in the SUBJECT line. > > ------------------------------------------------------------------ > > ----------- > > Dave Cunningham Computing and Network Services (408) 756-1382 Voice, (408) 539-4912 Pager [EMAIL PROTECTED] ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------