Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > Help ****ting a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4078 of 4218
Post > Topic >>

Help ****ting app from HP-UX to Linux

by James Egan <jegan472@[EMAIL PROTECTED] > Mar 24, 2008 at 11:22 PM

I'm ****ting a legacy application from HP-UX to Linux.  The va_start macro
takes one argument under HP-UX, but takes two under Linux:

va_start under HP-UX takes only one var:

hp:/home/fred> grep va_start
/ndata1/scratch/gcc-3.2/binutils/include/mpw/>
#define va_start(list) list = (char *) &va_alist


va_start under linux takes two:

linux:/home/fred> grep -i va_start
/usr/lib/gcc/i386-redhat-linux/4.1.1/include/stdarg.h
#define va_start(v,l)   __builtin_va_start(v,l)


The errors I'm seeing are listed below.  What would be the best way to
handle the discrepancy in va_start between the two systems?


>make
lprintf.c: In function 'lprintf':
lprintf.c:73: error: expected declaration specifiers before 'va_dcl'
lprintf.c:89:13: error: macro "va_start" requires 2 arguments, but only
1 given
lprintf.c:145: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'va_dcl'
lprintf.c:161:13: error: macro "va_start" requires 2 arguments, but only
1 given
lprintf.c:218: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'va_dcl'
lprintf.c:234:13: error: macro "va_start" requires 2 arguments, but only
1 given
lprintf.c:284: error: expected '{' at end of input
make[1]: *** [lprintf.o] Error 1
make: *** [upper] Error 2
 




 2 Posts in Topic:
Help porting app from HP-UX to Linux
James Egan <jegan472@[  2008-03-24 23:22:37 
Re: Help porting app from HP-UX to Linux
Ian Collins <ian-news@  2008-03-25 16:56:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:31:49 CDT 2008.