Re: Compile error on Ubuntu 10.04 64bit install

"Susan B." <[email protected]> Wed, 07 Jul 2010 07:11:04 -0700
Newsgroups gmane.comp.statistics.dap.bugs
Message-ID <[email protected]>
Hi Mark,

My guess is that the conflict is with the Ubuntu library function "getlin=
e", which dap does not use: dap has its own function "getline". What to d=
o?

Quick and dirty: comment out the declaration of "getline" in /usr/include=
/stdio.h, build dap, restore /usr/include/stdio.h
Slow and dirty: edit all the dap source files that contain "getline" and =
change dap's "getline" to something else, for example, "dap_getline".
Not dirty: find out how to make a build without using the Ubuntu "getline=
".

I hope that helps.

Regards,
Susan B.

06/23/10 16:07, [email protected] escribi=F3:
> Trying to install DAP.  In make install step I get:
>=20
> mark@Radon:~/DAP/dap-3.7$ make install
> Making install in src
> make[1]: Entering directory `/home/mark/DAP/dap-3.7/src'
> gcc -DPACKAGE_NAME=3D\"GNU\ dap\" -DPACKAGE_TARNAME=3D\"dap\"=20
> -DPACKAGE_VERSION=3D\"3.7\" -DPACKAGE_STRING=3D\"GNU\ dap\ 3.7\"=20
> -DPACKAGE_BUGREPORT=3D\"[email protected] <mailto:[email protected]>\"=20
> -DPACKAGE=3D\"dap\" -DVERSION=3D\"3.7\" -DSTDC_HEADERS=3D1 -DHAVE_SYS_W=
AIT_H=3D1=20
> -DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1=20
> -DHAVE_STRING_H=3D1 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1=20
> -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_FC=
NTL_H=3D1=20
> -DHAVE_STRINGS_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_MKDIR=3D1 -I.     -g -O=
2 -MT=20
> dap0.o -MD -MP -MF .deps/dap0.Tpo -c -o dap0.o dap0.c
> dap0.c: In function =91dap_malloc=92:
> dap0.c:103: warning: cast from pointer to integer of different size
> dap0.c: In function =91dap_free=92:
> dap0.c:116: warning: cast from pointer to integer of different size
> dap0.c: At top level:
> dap0.c:546: error: conflicting types for =91getline=92
> /usr/include/stdio.h:651: note: previous declaration of =91getline=92 w=
as here
> make[1]: *** [dap0.o] Error 1
> make[1]: Leaving directory `/home/mark/DAP/dap-3.7/src'
> make: *** [install-recursive] Error 1
> mark@Radon:~/DAP/dap-3.7$
>=20
> Any suggestions to get it to compile right?  Is this a 32bit vs 64bit=20
> issue on the getline?

--=20
* End the Blockade of Cuba http://www.ifconews.org/CubaCaravan
* Free translations from English to Spanish for social justice, environme=
ntal, and anti-militarist organizations
* http://thefullpicture.info Do you have all the info you need to decide =
if the military is the right choice for you?
* www.hasindex.org Index of the History of the American States (a work in=
 progress!)