bug-dap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile error on Ubuntu 10.04 64bit install


From: Susan B.
Subject: Re: Compile error on Ubuntu 10.04 64bit install
Date: Wed, 07 Jul 2010 07:11:04 -0700
User-agent: Thunderbird 2.0.0.23 (X11/20100305)

Hi Mark,

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

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, address@hidden escribió:
Trying to install DAP.  In make install step I get:

address@hidden:~/DAP/dap-3.7$ make install
Making install in src
make[1]: Entering directory `/home/mark/DAP/dap-3.7/src'
gcc -DPACKAGE_NAME=\"GNU\ dap\" -DPACKAGE_TARNAME=\"dap\" -DPACKAGE_VERSION=\"3.7\" -DPACKAGE_STRING=\"GNU\ dap\ 3.7\" -DPACKAGE_BUGREPORT=\"address@hidden <mailto:address@hidden>\" -DPACKAGE=\"dap\" -DVERSION=\"3.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MKDIR=1 -I. -g -O2 -MT dap0.o -MD -MP -MF .deps/dap0.Tpo -c -o dap0.o dap0.c
dap0.c: In function ‘dap_malloc’:
dap0.c:103: warning: cast from pointer to integer of different size
dap0.c: In function ‘dap_free’:
dap0.c:116: warning: cast from pointer to integer of different size
dap0.c: At top level:
dap0.c:546: error: conflicting types for ‘getline’
/usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here
make[1]: *** [dap0.o] Error 1
make[1]: Leaving directory `/home/mark/DAP/dap-3.7/src'
make: *** [install-recursive] Error 1
address@hidden:~/DAP/dap-3.7$

Any suggestions to get it to compile right? Is this a 32bit vs 64bit issue on the getline?

--
* End the Blockade of Cuba http://www.ifconews.org/CubaCaravan
* Free translations from English to Spanish for social justice, environmental, 
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!)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]