Skip to Content.
Sympa Menu

freetds - Re: [freetds] PHP+MSSQL compile on AIX 5.1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Martin Spott <Martin.Spott AT uni-duisburg.de>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] PHP+MSSQL compile on AIX 5.1
  • Date: Thu, 24 Jun 2004 16:53:02 +0000 (UTC)

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




Archive powered by MHonArc 2.6.24.

Top of Page