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:

Tried 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
globmatch.o
open_device.o perlobj.o plp_snprintf.o safemalloc.o safestrutil.o
stty.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' \
./snmp_printer_status.template \
snmp_printer_status
chmod 755 snmp_printer_status
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.17/src'
gmake: *** [src] Error 2

I am using HP's AnsiC compiler with GNU/Make 3.80. I would consider
this to
be a bug, I would think.

Help! :)

---- _  _ _  _ ___  _  _  _
|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 Wed, 25 Feb 2004, Ryan Novosielski wrote:

FYI, it seems to do this back to v3.5.12 at least... that's as far
back as
I've gone, but I did compile .10 awhile back.

---- _  _ _  _ ___  _  _  _
|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 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.
-I..
-I.  -DIFHP_CONF=\"/opt/LPRng/etc/ifhp.conf\"
-DLOCALEDIR=\"/opt/LPRng/share/locale\" -DDEVFD0=\"-\"   -c -o
monitor.o
monitor.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
+DAportable
flag set, to allow me to use the code on my older 32-bit testing
platform.
I 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
anyhow. I am
using 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
Admin
|$&| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922
(2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg -
C630



------------------------------------------------------------------------
-----
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.


------------------------------------------------------------------------
-----




------------------------------------------------------------------------
-----
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.


------------------------------------------------------------------------
-----



------------------------------------------------------------------------
-----
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.

------------------------------------------------------------------------
-----




----------------------------------------------------------------------------- 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
-----------------------------------------------------------------------------

Reply via email to