[PD-dev] removing files from externals/build/src

ix yaqtil at gmail.com
Thu Dec 8 05:11:22 CET 2005


> ...

as for the deleting, feel free since you created the files in the
first place, but keep in mind it will break the completeness of the
SCons option if you start removing files...i prefer SCons since it is
also used for building devel and actually works for me (see below)

> But now there is something better.

ok... bug report then.. :)

(first try)

externals # make
Makefile:24: /usr/src/pd/externals/../packages/Makefile.buildlayout:
No such file or directory
make: *** No rule to make target
`/usr/src/pd/externals/../packages/Makefile.buildlayout'.  Stop.
:

fix: checkout "packages" - since this is a seperate module, perhaps
the dep can be moved over since im guessing about 15% of users at most
checkout "."..esp with all the weird stuff in it like framestein DLLs
and PHP pages

(second try)

gcc   -Wl,-export_dynamic  -shared -o
"/usr/src/pd/externals/../externals/cxc/ENV.pd_linux"
"/usr/src/pd/externals/../externals/cxc/ENV.o" -lc -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0-beta20051125/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/src/pd/externals/../externals/cxc/ENV.o: relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/src/pd/externals/../externals/cxc/ENV.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

fix: add -fPIC to CFLAGS in /externals/makefile

(third try)

it finished...ok. 'make install' wait...why is it configuring more
stuff?!?!?! this should have been done in the make step.

/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0-beta20051125/../../../../x86_64-pc-linux-gnu/bin/ld:
sendOSC.o: relocation R_X86_64_32 against `a local symbol' can not be
used when making a shared object; recompile with -fPIC
sendOSC.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

fix: uh.. i guess go around to all these other makefiles and add -fPIC
since it didnt properly inherit the one in /externals/makefile. imo
this is the biggest advantage to the SCons system where you have a
parent environment, set the flags once, and you _know_ all the
subprojects are going to get the same flags and binary/doc location,
since they dont even have their own makefiles.

also, i noticed after various -fPIC failures, it kept going. is it
logging these somewhere?

(try four)

/bin/sh: /usr/src/pd/externals/../scripts/generate-libdir-metafile.sh:
No such file or directory

fix: checkout "scripts" (see try one)

(try five)

more -fPIC stuff...only 'make clean' is not deleting .o files in the
subprojects compiled without -fPIC, so i give up for now, to lazy to
do some find . -iregex '.*.o' -exec rm {} \; ;)

.c....sure, 6 thru 10 once we get these figured out, im happy to try again...




More information about the Pd-dev mailing list