Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

sqlcmd.86 on ubuntu 9.10 64 bit

 
   Database Forums (Home) -> Informix RSS
Next:  Summing with nulls  
Author Message
Holger de Wall

External


Since: May 21, 2008
Posts: 4



(Msg. 1) Posted: Fri Feb 19, 2010 4:25 pm
Post subject: sqlcmd.86 on ubuntu 9.10 64 bit
Archived from groups: comp>databases>informix (more info?)

Hi,

Error messages when try to make sqlcmd-86.00 on ubuntu 9.10 x86-64
and IDS 11.50.FC6WE:

STEP 1
wget ftp://ftp.iiug.org/pub/informix/pub/sqlcmd-86.00.tgz
tar -xvzf sqlcmd-86.00.tgz
cd sqlcmd-86.00

STEP 2:
CC="gcc -m64" ./configure
.... [ok]

STEP 3:
make
....
INFORMIXC="gcc -m64" esql -DESQLC_VERSION=350 -I.
-I/opt/informix/incl/esql -O -DHAVE_CONFIG_H -g -O2 -c appblob.ec
In file included from appblob.ec:29:
jlss.h:45: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
make: *** [appblob.o] Fehler 1


Any ideas are appreciated.

Thanks,

Holger de Wall

 >> Stay informed about: sqlcmd.86 on ubuntu 9.10 64 bit 
Back to top
Login to vote
Jonathan Leffler

External


Since: Jul 11, 2003
Posts: 299



(Msg. 2) Posted: Fri Feb 19, 2010 8:39 pm
Post subject: Re: sqlcmd.86 on ubuntu 9.10 64 bit [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2/19/10 11:27 AM, Holger de Wall wrote:
> Hi,
>
> Error messages when try to make sqlcmd-86.00 on ubuntu 9.10 x86-64
> and IDS 11.50.FC6WE:
>
> STEP 1
> wget ftp://ftp.iiug.org/pub/informix/pub/sqlcmd-86.00.tgz
> tar -xvzf sqlcmd-86.00.tgz
> cd sqlcmd-86.00
>
> STEP 2:
> CC="gcc -m64" ./configure
> ... [ok]
>
> STEP 3:
> make
> ...
> INFORMIXC="gcc -m64" esql -DESQLC_VERSION=350 -I.
> -I/opt/informix/incl/esql -O -DHAVE_CONFIG_H -g -O2 -c appblob.ec
> In file included from appblob.ec:29:
> jlss.h:45: error: conflicting types for 'getline'
> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here
> make: *** [appblob.o] Fehler 1
>
>
> Any ideas are appreciated.


Linux should not define functions called getline() without my
permission. Especially not ones with a different interface or semantics
to the version I defined a long time ago. Smile

Unfortunately, POSIX also seems to have got in on the act of annoying
authors who thought they could define functions with names of their own
choosing. There's a getline() in POSIX 2008. So, I guess I'm gonna
have to try and find a name that means the same thing but doesn't run
foul of other people's ideas. In the interim, you can edit the source
to use some other name - like, perhaps, jlss_getline().

You need to edit:

* getline.c
* jlss.h
* readload.c
* sqlconn.ec

Have fun.

Jonathan Leffler

 >> Stay informed about: sqlcmd.86 on ubuntu 9.10 64 bit 
Back to top
Login to vote
Holger de Wall

External


Since: May 21, 2008
Posts: 4



(Msg. 3) Posted: Sat Feb 20, 2010 8:25 am
Post subject: Re: sqlcmd.86 on ubuntu 9.10 64 bit [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> On 2/19/10 11:27 AM, Holger de Wall wrote:
>> Hi,
>>
>> Error messages when try to make sqlcmd-86.00 on ubuntu 9.10 x86-64
>> and IDS 11.50.FC6WE:
>>
>> STEP 1
>> wget ftp://ftp.iiug.org/pub/informix/pub/sqlcmd-86.00.tgz
>> tar -xvzf sqlcmd-86.00.tgz
>> cd sqlcmd-86.00
>>
>> STEP 2:
>> CC="gcc -m64" ./configure
>> ... [ok]
>>
>> STEP 3:
>> make
>> ...
>> INFORMIXC="gcc -m64" esql -DESQLC_VERSION=350 -I.
>> -I/opt/informix/incl/esql -O -DHAVE_CONFIG_H -g -O2 -c appblob.ec
>> In file included from appblob.ec:29:
>> jlss.h:45: error: conflicting types for 'getline'
>> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here
>> make: *** [appblob.o] Fehler 1
>>
>>
>> Any ideas are appreciated.
>
>
>
Jonathan Leffler wrote:
> Linux should not define functions called getline() without my
> permission. Especially not ones with a different interface or semantics
> to the version I defined a long time ago. Smile
>
> Unfortunately, POSIX also seems to have got in on the act of annoying
> authors who thought they could define functions with names of their own
> choosing. There's a getline() in POSIX 2008. So, I guess I'm gonna
> have to try and find a name that means the same thing but doesn't run
> foul of other people's ideas. In the interim, you can edit the source
> to use some other name - like, perhaps, jlss_getline().
>
> You need to edit:
>
> * getline.c
> * jlss.h
> * readload.c
> * sqlconn.ec
>

Thanks a lot. This works for me.

Holger de Wall
 >> Stay informed about: sqlcmd.86 on ubuntu 9.10 64 bit 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
sqlcmd 85 and entropymap in the repository - Jonathan Lefler has updated sqlcmd to version 85 and Malcolm Perrior has contributed entropymap. http://www.iiug.org/software/repository_news.html Peter Wages

Testing the 'free' versions - moving from Dev edition to I.. - Just a quick wisdom request - I have the Developer edition on a Linux box and want to replace it with Innovator-C; what's the best method to do this? Just untar the new version over the old and run 'ids_install' again, or should I remove the old Dev..

AUTO: Douglas Dailey/Lenexa/IBM is out of the office (retu.. - I am out of the office until 12/05/2011. Note: This is an automated response to your message "Informix-list Digest, Vol 302, Issue 4" sent on 12/3/2011 10:00:01. This is the only notification you will receive while this person is away.

Need help to empty data in chunk before drop it. - Hello all, I've located one bad chunk in my database. I tried to drop it, but I can't drop chunk#26 because some tables extent still in this chunk. Since, most of the data in this chunk are related to system tables, I am not sure if it is safe to unload...

ontape vs onbar - IDS 10.0FC3 on Solaris 9 I'm doing some backups to disk. An ontape backup of the 30G database with a 768k TAPEBLK takes about 25 mins, but an onbar -b -L 0 takes over twice as long. I wonder if it's that the block size being used is much smaller? ..
   Database Forums (Home) -> Informix All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]