holas!

si que tengo el libc6-dev , pero la versión de 64 --> /usr/include/gnu/stubs-64.h y /usr/include/gnu/stubs.h pero no el de 32, lo extraño es que cuando le refiero al de 64 me dice lo de las incompatibilidades del ld:

cc -m32 -export_dynamic -shared -o bonk~.pd_linux bonk~.o -lc -lm
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/
4.2.4/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when searching
for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching for
-lc

tambien pasa lo mismo si se me da por poner un link simbólico que se llame stubs-32.h ---> stubs-64.h

salu2


2008/11/15 <lluisgomez@hangar.org>
hola jano ;)


Quoting "jano ." <jano2358@gmail.com>:

hi!

i'm trying to compile the extended under ubuntu hardy in a x86_64, and get
some errors: in first i put th eviroment CFLAGS= -march=nocona -fPIC and
when make install the result was:

.......
ing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops -fomit-frame-pointer
-DUSEAPI_JACK -D_LARGEFILE64_SOURCE -I../../src -o bonk~.o -c bonk~.c
En el fichero incluído de /usr/include/features.h:354,
                de /usr/include/math.h:28,
                de bonk~.c:10:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No existe el fichero ó
directorio

this is cause you don't have libc6-dev installed, right?

apt-get install libc6-dev

aqui lo puedes ver ::

http://packages.ubuntu.com/search?searchon=contents&keywords=stubs.h&mode=exactfilename&suite=intrepid&arch=any




make[3]: *** [bonk~.pd_linux] Error 1
make[3]: se sale del directorio
`/home/jano/Pd-0.40.3-extended/pd/extra/bonk~'
make[2]: *** [externs] Error 2
make[2]: se sale del directorio `/home/jano/Pd-0.40.3-extended/pd/src'
make[1]: [pd] Error 2 (no tiene efecto)
make -C /home/jano/Pd-0.40.3-extended/pd/src
BUILDLAYOUT_DIR=/home/jano/Pd-0.40.3-extended/packages
cvs_root_dir=/home/jano/Pd-0.40.3-extended
DESTDIR=/home/jano/Pd-0.40.3-extended/packages/linux_make/build/ prefix=/usr
libpddir=/home/jano/Pd-0.40.3-extended/packages/linux_make/build//usr/lib/pd
OPT_CFLAGS="-O2" UNAME=Linux  install
make[2]: se ingresa al directorio `/home/jano/Pd-0.40.3-extended/pd/src'
cd ../obj;  cc -Wl,-export-dynamic -lasound -lrt -ljack  -o ../bin/pd
g_canvas.o g_graph.o g_text.o g_rtext.o g_array.o g_template.o g_io.o
g_scalar.o g_traversal.o g_guiconnect.o g_readwrite.o g_editor.o
g_all_guis.o g_bang.o g_hdial.o g_hslider.o g_mycanvas.o g_numbox.o
g_toggle.o g_vdial.o g_vslider.o g_vumeter.o m_pd.o m_class.o m_obj.o
m_atom.o m_memory.o m_binbuf.o m_conf.o m_glob.o m_sched.o s_main.o
s_inter.o s_file.o s_print.o s_loader.o s_path.o s_entry.o s_audio.o
s_midi.o d_ugen.o d_ctl.o d_arithmetic.o d_osc.o d_filter.o d_dac.o d_misc.o
d_math.o d_fft.o d_array.o d_global.o d_delay.o d_resample.o x_arithmetic.o
x_connective.o x_interface.o x_midi.o x_misc.o x_time.o x_acoustics.o
x_net.o x_qlist.o x_gui.o x_list.o d_soundfile.o import.o s_midi_oss.o
s_audio_oss.o s_audio_alsa.o s_audio_alsamm.o s_midi_alsa.o s_audio_jack.o
d_fft_mayer.o d_fftroutine.o  \
   -ldl -lm -lpthread -lasound
cc -march=nocona -fPIC -DPD  -Wall -W -Wstrict-prototypes -Wno-unused
-Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX
-DUSEAPI_OSS         -I../portaudio/pa_common -I../portaudio/pablio
-I../portmidi/pm_common         -I../portmidi/pm_linux
-fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops
-fomit-frame-pointer -DUSEAPI_JACK -D_LARGEFILE64_SOURCE  -o
../bin/pd-watchdog s_watchdog.c
cd ../extra/bonk~;make
make[3]: se ingresa al directorio
`/home/jano/Pd-0.40.3-extended/pd/extra/bonk~'
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC -m32 -Wall -W -Wshadow
-Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -march=nocona
-fPIC -DPD  -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
-Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX        -DUSEAPI_OSS
-I../portaudio/pa_common -I../portaudio/pablio
-I../portmidi/pm_common         -I../portmidi/pm_linux
-fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops
-fomit-frame-pointer -DUSEAPI_JACK -D_LARGEFILE64_SOURCE -I../../src -o
bonk~.o -c bonk~.c
En el fichero incluído de /usr/include/features.h:354,
                de /usr/include/math.h:28,
                de bonk~.c:10:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No existe el fichero ó
directorio


lo mismo ....


make[3]: *** [bonk~.pd_linux] Error 1
make[3]: se sale del directorio
`/home/jano/Pd-0.40.3-extended/pd/extra/bonk~'
make[2]: *** [externs] Error 2
make[2]: se sale del directorio `/home/jano/Pd-0.40.3-extended/pd/src'
make[1]: *** [pd_install] Error 2
make[1]: se sale del directorio `/home/jano/Pd-0.40.3-extended/packages'
make: *** [install] Error 2
root@jano-mac:/home/jano/Pd-0.40.3-extended/packages/linux_make#
.....

so i add the CFLAGS= -m64 and the result was:

.....
onfig.status: config.h is unchanged
make[2]: se ingresa al directorio `/home/jano/Pd-0.40.3-extended/pd/src'
cc -DDL_OPEN -DPA_USE_OSS -DUNIX        -DUSEAPI_OSS
-I../portaudio/pa_common -I../portaudio/pablio
-I../portmidi/pm_common         -I../portmidi/pm_linux
-fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -M g_canvas.c g_graph.c
g_text.c g_rtext.c g_array.c g_template.c g_io.c g_scalar.c g_traversal.c
g_guiconnect.c g_readwrite.c g_editor.c g_all_guis.c g_bang.c g_hdial.c
g_hslider.c g_mycanvas.c g_numbox.c g_toggle.c g_vdial.c g_vslider.c
g_vumeter.c m_pd.c m_class.c m_obj.c m_atom.c m_memory.c m_binbuf.c m_conf.c
m_glob.c m_sched.c s_main.c s_inter.c s_file.c s_print.c s_loader.c s_path.c
s_entry.c s_audio.c s_midi.c d_ugen.c d_ctl.c d_arithmetic.c d_osc.c
d_filter.c d_dac.c d_misc.c d_math.c d_fft.c d_array.c d_global.c d_delay.c
d_resample.c x_arithmetic.c x_connective.c x_interface.c x_midi.c x_misc.c
x_time.c x_acoustics.c x_net.c x_qlist.c x_gui.c x_list.c d_soundfile.c
import.c s_midi_oss.c s_audio_oss.c s_audio_alsa.c s_audio_alsamm.c
s_midi_alsa.c s_audio_jack.c d_fft_mayer.c d_fftroutine.c >
makefile.dependencies
make[2]: se sale del directorio `/home/jano/Pd-0.40.3-extended/pd/src'
make[2]: se ingresa al directorio `/home/jano/Pd-0.40.3-extended/pd/src'
make[2]: No se hace nada para `depend'.
make[2]: se sale del directorio `/home/jano/Pd-0.40.3-extended/pd/src'
make[2]: se ingresa al directorio `/home/jano/Pd-0.40.3-extended/pd/src'
cd ../obj;  cc -Wl,-export-dynamic -lasound -lrt -ljack  -o ../bin/pd
g_canvas.o g_graph.o g_text.o g_rtext.o g_array.o g_template.o g_io.o
g_scalar.o g_traversal.o g_guiconnect.o g_readwrite.o g_editor.o
g_all_guis.o g_bang.o g_hdial.o g_hslider.o g_mycanvas.o g_numbox.o
g_toggle.o g_vdial.o g_vslider.o g_vumeter.o m_pd.o m_class.o m_obj.o
m_atom.o m_memory.o m_binbuf.o m_conf.o m_glob.o m_sched.o s_main.o
s_inter.o s_file.o s_print.o s_loader.o s_path.o s_entry.o s_audio.o
s_midi.o d_ugen.o d_ctl.o d_arithmetic.o d_osc.o d_filter.o d_dac.o d_misc.o
d_math.o d_fft.o d_array.o d_global.o d_delay.o d_resample.o x_arithmetic.o
x_connective.o x_interface.o x_midi.o x_misc.o x_time.o x_acoustics.o
x_net.o x_qlist.o x_gui.o x_list.o d_soundfile.o import.o s_midi_oss.o
s_audio_oss.o s_audio_alsa.o s_audio_alsamm.o s_midi_alsa.o s_audio_jack.o
d_fft_mayer.o d_fftroutine.o  \
   -ldl -lm -lpthread -lasound
cc -march=nocona -fPIC -m64 -DPD  -Wall -W -Wstrict-prototypes -Wno-unused
-Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX
-DUSEAPI_OSS         -I../portaudio/pa_common -I../portaudio/pablio
-I../portmidi/pm_common         -I../portmidi/pm_linux
-fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops
-fomit-frame-pointer -DUSEAPI_JACK -D_LARGEFILE64_SOURCE   -o
../bin/pdreceive u_pdreceive.c
cd ../extra/bonk~;make
make[3]: se ingresa al directorio
`/home/jano/Pd-0.40.3-extended/pd/extra/bonk~'
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC -m32 -Wall -W -Wshadow
-Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -march=nocona
-fPIC -m64 -DPD  -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
-Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX        -DUSEAPI_OSS
-I../portaudio/pa_common -I../portaudio/pablio
-I../portmidi/pm_common         -I../portmidi/pm_linux
-fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops
-fomit-frame-pointer -DUSEAPI_JACK -D_LARGEFILE64_SOURCE -I../../src -o
bonk~.o -c bonk~.c
cc -m32 -export_dynamic -shared -o bonk~.pd_linux bonk~.o -lc -lm
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when searching
for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching for
-lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc


maybe this ?¿? :

sudo apt-get install build-essential


collect2: ld devolvió el estado de salida 1
make[3]: *** [bonk~.pd_linux] Error 1
make[3]: se sale del directorio
`/home/jano/Pd-0.40.3-extended/pd/extra/bonk~'
make[2]: *** [externs] Error 2
make[2]: se sale del directorio `/home/jano/Pd-0.40.3-extended/pd/src'
make[1]: [pd] Error 2 (no tiene efecto)
make -C /home/jano/Pd-0.40.3-extended/pd/src
BUILDLAYOUT_DIR=/home/jano/Pd-0.40.3-extended/packages
cvs_root_dir=/home/jano/Pd-0.40.3-extended
DESTDIR=/home/jano/Pd-0.40.3-extended/packages/linux_make/build/ prefix=/usr
libpddir=/home/jano/Pd-0.40.3-extended/packages/linux_make/build//usr/lib/pd
OPT_CFLAGS="-O2" UNAME=Linux  install
make[2]: se ingresa al directorio `/home/jano/Pd-0.40.3-extended/pd/src'
cc -march=nocona -fPIC -m64 -DPD  -Wall -W -Wstrict-prototypes -Wno-unused
-Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX
-DUSEAPI_OSS         -I../portaudio/pa_common -I../portaudio/pablio
-I../portmidi/pm_common         -I../portmidi/pm_linux
-fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops
-fomit-frame-pointer -DUSEAPI_JACK -D_LARGEFILE64_SOURCE  -o
../bin/pd-watchdog s_watchdog.c
cc -march=nocona -fPIC -m64 -DPD  -Wall -W -Wstrict-prototypes -Wno-unused
-Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX
-DUSEAPI_OSS         -I../portaudio/pa_common -I../portaudio/pablio
-I../portmidi/pm_common         -I../portmidi/pm_linux
-fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops
-fomit-frame-pointer -DUSEAPI_JACK -D_LARGEFILE64_SOURCE   -o ../bin/pdsend
u_pdsend.c
cd ../extra/bonk~;make
make[3]: se ingresa al directorio
`/home/jano/Pd-0.40.3-extended/pd/extra/bonk~'
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC -m32 -Wall -W -Wshadow
-Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -march=nocona
-fPIC -m64 -DPD  -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
-Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX        -DUSEAPI_OSS
-I../portaudio/pa_common -I../portaudio/pablio
-I../portmidi/pm_common         -I../portmidi/pm_linux
-fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops
-fomit-frame-pointer -DUSEAPI_JACK -D_LARGEFILE64_SOURCE -I../../src -o
bonk~.o -c bonk~.c
cc -m32 -export_dynamic -shared -o bonk~.pd_linux bonk~.o -lc -lm
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when searching
for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching for
-lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld devolvió el estado de salida 1
make[3]: *** [bonk~.pd_linux] Error 1
make[3]: se sale del directorio
`/home/jano/Pd-0.40.3-extended/pd/extra/bonk~'
make[2]: *** [externs] Error 2
make[2]: se sale del directorio `/home/jano/Pd-0.40.3-extended/pd/src'
make[1]: *** [pd_install] Error 2
make[1]: se sale del directorio `/home/jano/Pd-0.40.3-extended/packages'
make: *** [install] Error 2
......

if i not use the CFLAGS the result is the same as without -m64, anybody
knows wath can i do?
thanks in advance


--
~jano~¬




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




--
~jano~¬