[gobolinux-users] CreateRootlessEnvironment currently broken for the macs

Erick Tryzelaar erickt at dslextreme.com
Wed Feb 7 07:19:56 UTC 2007


Hello,

I wanted to play around with gobo on my mac, and it's currently not 
running. It looks like the build of "RescueSymlinkProgram" is trying to 
statically link the executable, which isn't really supported on macs:

rm -rf Resources/FileHash*
find * -path "*~" -or -path "*/.\#*" -or -path "*.bak" | xargs rm -f
cd src && make clean
cd ../bin; rm -f SuperUserName IsExecutable usleep LinkOrExpandAll List 
RescueSymlinkProgram
cd lib/python2.3/site-packages && rm -f *.pyc *.pyo
for f in FindPackage GetAvailable GuessLatest CheckDependencies 
DescribeProgram; \
do libf=lib/python2.3/site-packages/$f.py; \
   rm -f $libf; ln -nfs ../../../bin/$f $libf; \
done
cd lib/python2.3/site-packages && \
for f in *.py; \
do python -c "import `basename $f .py`"; \
done
sed -i~ "s/CURRENT_SCRIPTS_VERSION=.*#/CURRENT_SCRIPTS_VERSION="2.5.6" 
#/g" bin/CreateRootlessEnvironment
rm -f bin/CreateRootlessEnvironment~
cd src; make all
gcc -O2 -Wall -o SuperUserName SuperUserName.c
gcc -O2 -Wall -o IsExecutable IsExecutable.c
gcc -O2 -Wall -o usleep usleep.c
gcc -O2 -Wall -o LinkOrExpandAll LinkOrExpandAll.c -std=c99
gcc -O2 -Wall -o List List.c
List.c: In function 'really_list_entries':
List.c:494: warning: format '%4lld' expects type 'long long int', but 
argument 10 has type 'dev_t'
List.c:494: warning: format '%3lld' expects type 'long long int', but 
argument 11 has type 'int'
gcc -O2 -Wall -o RescueSymlinkProgram RescueSymlinkProgram.c -static
/usr/bin/ld: can't locate file for: -lcrt0.o
collect2: ld returned 1 exit status
make[1]: *** [all] Error 1
make: *** [all] Error 2


Here's apple's explanation: http://developer.apple.com/qa/qa2001/qa1118.html

Anyway, it looks like this was added in this patch to 
tools/Scripts/src/Makefile in version 1.13:

http://cvs.savannah.nongnu.org/viewcvs/tools/Scripts/src/Makefile?root=goboscripts&r1=1.12&r2=1.13

Would it be possible to check if the OS is apple before trying to 
statically link the executable?

-e


More information about the gobolinux-users mailing list