[freetds] PHP+MSSQL compile on AIX 5.1

Martin Spott Martin.Spott at uni-duisburg.de
Thu Jun 24 12:53:02 EDT 2004


"Lowden, James K" wrote:
> > From: Martin Spott
> > Sent: June 24, 2004 1:58 AM
> > 
> > There are several occurrences of comments starting with  "/**", for
> > example src/tds/mem.c (last line), src/tds/token.c, read.c, write.c
> > I just tried compiling the current CVS source and my compiler doesn't
> > stop barking:
> > 
> > [...]
> > mem.c:1596:3704: warning: "/*" within comment
> > mem.c:2015:1: warning: null character(s) ignored
> > mem.c:2015: error: stray '\4' in program
> > mem.c:2015: error: stray '\16' in program
> > mem.c:2015:3693: warning: null character(s) ignored
> > mem.c:2015:3698: invalid suffix "Ff" on integer constant
> > mem.c:2015: error: stray '\210' in program

> Martin, what do those numbers mean?  They're not line numbers:

> $ wc -l src/tds/mem.c
>     1159 src/tds/mem.c

Oh yes, indeed. I'm still convinced that these _should_ be line
numbers, but GCC (at lease 3.3.3 on AIX) gets confused. On other files
the line numbers _did_ match but I didn't notice on mem.c that by
jumping to line 2015 my editor ('joe') took the last line by default.

I simply did this:

# ~> for i in `find . -type f`; do sed -e 's/\/\*\*/\/\*/g' < $i > Hallo; mv -vf Hallo $i; done


.... and things were fine  :-)

> The warning is probably about nested comments, e.g.:

> /**
>  * stuff stuff
>  * more stuff /* nested comment */
>  */

I'll have a further look at it.

> I can give you an account on a 12.5 machine we use for testing. 
> Remind me at jklowden at schemamania.org if you don't hear from me by
> Monday.

I have access to lots of Sybase servers, but I never have an AIX
machine in the same network. I did these tests on my R50 at home but
I'll never reach a Sybase machine from there ....  Oh wait, I got an
idea ....

Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------



More information about the FreeTDS mailing list