I have gotten a little farther with this one.
To get it to compile, I changed (in monitor.c):
setlinebuf(stdout);
to:
setvbuf(stdout, (char *)NULL, _IOLBF, 0);
..only problem is, it doesn't work when built. Sits at the "starting transfer" stage and doesn't move any farther along. I really need to update my ifhp and I'd appreciate any help anyone could provide. The
issue here is that HP-UX does not have setlinebuf, and has setvbuf instead.
Thanks!
---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin
|$&| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
On Mon, 7 Jun 2004, Ryan Novosielski wrote:
globmatch.oTried 3.5.17 -- same problem. Here is the output that I get.
cc -o ifhp ifhp.o accounting.o checkcode.o debug.o errormsg.o
open_device.o perlobj.o plp_snprintf.o safemalloc.o safestrutil.ostty.o
vars.o -lnsl_s cc -o textps textps.o plp_snprintf.o -lnsl_s sed -e 's,.PERL@,/opt/perl5/bin/perl,g' -e 's,.FILTER_DIR@,/opt/LPRng/libexec/filters,g' \errormsg.o
./snmp_printer_status.template \snmp_printer_statuschmod 755 snmp_printer_status cc -o monitor monitor.o plp_snprintf.o safemalloc.o safestrutil.o
this to-lnsl_s /usr/ccs/bin/ld: Unsatisfied symbols: setlinebuf (code) gmake[1]: *** [monitor] Error 1 gmake[1]: Leaving directory `/opt/src/ifhp-3.5.17/src' gmake: *** [src] Error 2
I am using HP's AnsiC compiler with GNU/Make 3.80. I would consider
Admin |$&|be a bug, I would think.
Help! :)
---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems
C630|__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg -
back as
On Wed, 25 Feb 2004, Ryan Novosielski wrote:
FYI, it seems to do this back to v3.5.12 at least... that's as far
AdminI've gone, but I did compile .10 awhile back.
---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems
(2-0922)|$&| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922
C630\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg -
-I..
On Fri, 20 Feb 2004, Ryan Novosielski wrote:
Can someone assist me with this?
cc -D_HPUX_SOURCE=1 +DAportable -D_HPUX_SOURCE=1 -DHAVE_CONFIG_H -I.
monitor.o-I. -DIFHP_CONF=\"/opt/LPRng/etc/ifhp.conf\" -DLOCALEDIR=\"/opt/LPRng/share/locale\" -DDEVFD0=\"-\" -c -o
+DAportablemonitor.c cc -o monitor monitor.o plp_snprintf.o safemalloc.o safestrutil.o errormsg.o -lnsl_s /usr/ccs/bin/ld: Unsatisfied symbols: setlinebuf (code) gmake[1]: *** [monitor] Error 1 gmake[1]: Leaving directory `/opt/src/ifhp-3.5.16/src' gmake: *** [src] Error 2
...I am using a 64-bit machine, compiling the code with the
platform.flag set, to allow me to use the code on my older 32-bit testing
anyhow. I amI don't know whether this is the source of the problem, but it is something I need to do nonetheless. I suspect it is unrelated
Adminusing the HP-UX ANSI-C compilers (newest, AFAIK) and gmake 3.80.
Thanks for any hlep that you can provide.
---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems
(2-0922)|$&| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922
C630\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg -
------------------------------------------------------------------------ -----
lprng-requestsYOU 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
or lprng-digest-requests) with the word 'help' in the body. For the
[EMAIL PROTECTED]impatient, to subscribe to a list with name LIST, send mail to
[EMAIL PROTECTED]with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest
theunsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with
word LPRNGLIST in the SUBJECT line.
------------------------------------------------------------------------ -----
------------------------------------------------------------------------ -----
lprng-requestsYOU 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
[EMAIL PROTECTED]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
theunsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with
word LPRNGLIST in the SUBJECT line.
------------------------------------------------------------------------ -----
------------------------------------------------------------------------ -----
[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
the wordunsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with
LPRNGLIST in the SUBJECT line.
------------------------------------------------------------------------ -----
----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST The address you post from or your Reply-To address 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. 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, call Patrick Powell or one of the friendly staff at Astart Technologies for help. Astart also does support for LPRng. Also, check the Web Page at: http://www.lprng.com for any announcements. Astart Technologies (LPRng - Print Spooler http://www.lprng.com) 6741 Convoy Court San Diego, CA 92111 858-874-6543 FAX 858-751-2435 -----------------------------------------------------------------------------
