hi people
 

thanks hans, but is almost the same:

i do the clean, so: make distclean and svn update
checked the makefile and put OPT_CFLAGS += -fPIC -march=nocona -m64 in packages/linux-make/Makefile, take off the eviroment CFLAG
and do make install, but the opengl don't want to be included on this, they don't follow the rules from the Makefile inside of packages/linux_make

                 P_VERSION=\"0.12.5-darcs\" -o pdp_3d_state.o -c pdp_3d_state.c
cc -DPD -O2 -funroll-loops -fomit-frame-pointer  -ffast-math -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -g -I../../../../pd/src  -I../../include -I../include -I/usr/X11R6/include -DPDP_VERSION=\"0.12.5-darcs\" -o pdp_3d_subcontext.o -c pdp_3d_subcontext.c
make[4]: se sale del directorio `/home/jano/pure-data/externals/pdp/opengl/modules'
make -C include
make[4]: se ingresa al directorio `/home/jano/pure-data/externals/pdp/opengl/include'
make[4]: No se hace nada para `all'.
make[4]: se sale del directorio `/home/jano/pure-data/externals/pdp/opengl/include'
rm -f pdp_opengl.pd_linux
cc -export_dynamic -shared -o pdp_opengl.pd_linux modules/*.o system/*.o -lGL -lglut -g
/usr/bin/ld: modules/pdp_3d_color.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
modules/pdp_3d_color.o: could not read symbols: Bad value
collect2: ld devolvió el estado de salida 1
make[3]: *** [pdp_opengl.pd_linux] Error 1
make[3]: se sale del directorio `/home/jano/pure-data/externals/pdp/opengl'
make[2]: *** [/home/jano/pure-data/externals/pdp/opengl/pdp_opengl.pd_linux] Error 2
make[2]: se sale del directorio `/home/jano/pure-data/externals'
make[1]: *** [externals_install] Error 2
make[1]: se sale del directorio `/home/jano/pure-data/packages'
make: *** [install] Error 2
root@jano-mac:/home/jano/pure-data/packages/linux_make# less Makefile
root@jano-mac:/home/jano/pure-data/packages/linux_make#



so, i do in externals/pdp/opengl/Makefile.config   i don't know the 'rigth' way, and it works...this part
later i have the same error than before:

cd /home/jano/pure-data/externals/miXed/toxy && make OUT_DIR=/home/jano/pure-data/packages/linux_make/build//usr/lib/pd/extra/toxy
make[3]: se ingresa al directorio `/home/jano/pure-data/externals/miXed/toxy'
gcc -o /home/jano/pure-data/packages/linux_make/build//usr/lib/pd/extra/toxy/tot.pd_linux -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -O2 -fPIC -march=nocona -m64 -DUNIX -I . -I ../../../pd/src -I ../shared -export_dynamic  -shared tot.o ../shared/unstable/forky.o ../shared/common/loud.o ../shared/common/grow.o ../shared/common/os.o ../shared/hammer/file.o ../shared/hammer/gui.o ../shared/common/props.o ../shared/toxy/scriptlet.o
/usr/bin/ld: ../shared/common/props.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../shared/common/props.o: could not read symbols: Bad value
collect2: ld devolvió el estado de salida 1
make[3]: *** [/home/jano/pure-data/packages/linux_make/build//usr/lib/pd/extra/toxy/tot.pd_linux] Error 1
make[3]: se sale del directorio `/home/jano/pure-data/externals/miXed/toxy'
make[2]: *** [toxy_install] Error 2
make[2]: se sale del directorio `/home/jano/pure-data/externals'
make[1]: *** [externals_install] Error 2
make[1]: se sale del directorio `/home/jano/pure-data/packages'
make: *** [install] Error 2
root@jano-mac:/home/jano/pure-data/packages/linux_make#


i mean: i'm using -fPIC but ld still reclaims for him!


salut




2008/11/18 Hans-Christoph Steiner <hans@eds.org>

I think you want to set the CFLAGS in packages/linux_make/Makefile

.hc

On Nov 16, 2008, at 7:31 PM, jano . wrote:

hi! still trying..

i discover some parts of the source where the enviroment CFLAGS has no effect, i don'k know why so i add by hand, they are: externals/pdp/opengl <--- i modify the ../Makefile.common to add -march=nocona -m64 -fPIC because ld say-me 'recompile with -fPIC'
externals/miXed/cyclone <--- the same
but i'm stacked with the toxy, this is the extract:

t@jano-mac:/home/jano/pure-data/externals/miXed/toxy#
root@jano-mac:/home/jano/pure-data/externals/miXed/toxy# make clean
rm -f Makefile.deps
touch Makefile.deps
chmod 666 Makefile.deps
rm -f *.o *.pd_linux
root@jano-mac:/home/jano/pure-data/externals/miXed/toxy# make
gcc -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -fPIC -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -march=nocona -m64 -DUNIX -I . -I ../../../pd/src -I ../shared   -c -o tot.o tot.c
tot.c: En la función 'tot_dogetpathname':
tot.c:160: aviso: conversión de puntero a entero de tamaño diferente
tot.c: En la función 'tot_detach':
tot.c:402: aviso: conversión de puntero a entero de tamaño diferente
tot.c: En la función 'tot_attach':
tot.c:429: aviso: conversión de puntero a entero de tamaño diferente
tot.c: En la función 'tot_capture':
tot.c:464: aviso: conversión de puntero a entero de tamaño diferente
tot.c: En la función 'tot_new':
tot.c:571: aviso: conversión de puntero a entero de tamaño diferente
tot.c:595: aviso: conversión de puntero a entero de tamaño diferente
gcc -o ../bin/tot.pd_linux -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -fPIC -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -march=nocona -m64 -DUNIX -I . -I ../../../pd/src -I ../shared -export_dynamic  -shared tot.o ../shared/unstable/forky.o ../shared/common/loud.o ../shared/common/grow.o ../shared/common/os.o ../shared/hammer/file.o ../shared/hammer/gui.o ../shared/common/props.o ../shared/toxy/scriptlet.o
/usr/bin/ld: ../shared/common/props.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../shared/common/props.o: could not read symbols: Bad value
collect2: ld devolvió el estado de salida 1
make: *** [../bin/tot.pd_linux] Error 1
root@jano-mac:/home/jano/pure-data/externals/miXed/toxy#

i put the -fPIC but the ld insist in his negation! i test without nocona and m64 with the same result

thanks again
ciao



2008/11/16 jano . <jano2358@gmail.com>
is almost the same, i load the HTDj patch from the open menu and from the main.pd patch, in the command line they say:
can't find package base64
invalid command name ".xa59bf0.c"
invalid command name ".xa59bf0.c"
invalid command name ".xa59bf0.c"
invalid command name ".xa59bf0.c"

what is the package base64?


2008/11/16 ydegoyon <ydegoyon@gmail.com>

ola,

but this is not the pd-giss you're using here,
pd-giss should be started with :

/usr/local/pd/bin/start-pd

( not to conflict with extended )

saludos,
sevy



--
~jano~¬



--
~jano~¬
_______________________________________________
Pd-dev mailing list



----------------------------------------------------------------------------

There is no way to peace, peace is the way.       -A.J. Muste





--
~jano~¬