dyld message when launching commands as sudo

When I launch a command from the shell as super user I always get back the following message:

dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid

I tried to unset all the DYL*** variables and verify it with the set command, as suggested here. However it doesn't fixed my problem.

I'm running 10.8.2 with Xcode 4.5 and the command line tools updated today.

Please find below my .profile, I don't have a .bash_profile

# Git
 [ -f ~/.git-bash-completion.sh ] && . ~/.git-bash-completion.sh

# define colors and default command line
# h is the host name, w the complete path (W for only the current dir)
export PS1="\h:\w$ "

export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad

export CPATH=/opt/local/include:/usr/local/include
export LIBRARY_PATH=/opt/local/lib:/usr/local/lib:/usr/lib/
export LD_LIBRARY_PATH=/opt/local/lib:/usr/local/lib
export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib:/opt/local/Library/Frameworks:/usr/local/lib:/usr/lib/:$DYLD_FALLBACK_LIBRARY_PATH

# Homebrew
export CPLUS_INCLUDE_PATH="/usr/local/include:$CPLUS_INCLUDE_PATH"
export PYTHONPATH="/usr/local/lib/python2.7/site-packages:/usr/local/lib/python:$PYTHONPATH"

# ROS
export PATH=/usr/local/lib/wxPython/bin:$PATH
# The line below is commnted because it is imported with rosjava
# If you want to remove rosjava, uncomment it in order to use ros-fuerte
source ~/Software/ros/fuerte/ros-stacks/setup.bash
# source /Users/luca/Software/ros-java/setup.bash
export ROS_HOSTNAME=luca-macbook
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Software/ros-stacks:~/Development/
export ROS_OS_OVERRIDE=osx:homebrew

export SVN_EDITOR="/usr/bin/nano"

alias GoToPhdRoot="cd ~/Documents/University/PhD"
alias Smultron="open -a Smultron\ 4"
alias MakeBuildDir="mkdir build && cd build"
function UpdateAndBuildPdf() { 
    svn up && pdflatex "$1" && bibtex "$1" && pdflatex "$1" && rm "$1.aux" && rm "$1.bbl" && rm "$1.blg" && rm "$1.log" && Open "$1.pdf" 
}

To be noticed that also if I comment the line in which I export DYLD_FALLBACK_LIBRARY_PATH the problem persists.

N.B. I don't have Asepsis installed.


Solution 1:

I found out that the warning is generated by the line

source ~/Software/ros/fuerte/ros-stacks/setup.bash

It is a line needed if you have installed ROS.

Commenting the line fixes the problem. However ROS cannot work without this line.