Multiple ports error on upgrade

Ryan Schmidt ryandesign at macports.org
Wed Mar 2 08:02:21 PST 2011


On Mar 2, 2011, at 09:53, Philip Hudson wrote:

> Here's an example:
> 
>> --->  Computing dependencies for openssl
>> --->  Building opensslError: Target org.macports.build returned: shell command failed (see log for details)
>> Log for openssl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/main.log
>> Error: Unable to upgrade port: 1
> 
> Here's the tail of the cited log:
> 
>> :info:build make[2]: Nothing to be done for `all'.
>> :info:build making all in crypto/dso...
>> :info:build /usr/bin/gcc-4.0 -I.. -I../.. -I../asn1 -I../evp -I../../include  -fPIC -fno-common -DOPENSSL_PI
>> C -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch ppc -O3 -DB_ENDIAN -Wa,-force_cpusu
>> btype_ALL   -c -o dso_dlfcn.o dso_dlfcn.c
>> :info:build dso_dlfcn.c: In function 'dlfcn_pathbyaddr':
>> :info:build dso_dlfcn.c:445: error: 'Dl_info' undeclared (first use in this function)
>> :info:build dso_dlfcn.c:445: error: (Each undeclared identifier is reported only once
>> :info:build dso_dlfcn.c:445: error: for each function it appears in.)
>> :info:build dso_dlfcn.c:445: error: syntax error before 'dli'
>> :info:build dso_dlfcn.c:455: error: 'dli' undeclared (first use in this function)
>> :info:build make[2]: *** [dso_dlfcn.o] Error 1
>> :info:build make[1]: *** [subdirs] Error 1
>> :info:build make: *** [build_crypto] Error 1
>> :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
>> .org_release_ports_devel_openssl/work/openssl-1.0.0d" && /usr/bin/make all " returned error 2
>> :error:build Target org.macports.build returned: shell command failed (see log for details)
>> :debug:build Backtrace: shell command failed (see log for details)
>>    while executing
>> "command_exec build"
>>    (procedure "portbuild::build_main" line 8)
>>    invoked from within
>> "$procedure $targetname"
>> :info:build Warning: the following items did not execute (for openssl): org.macports.destroot org.macports.b
>> uild
>> :notice:build Log for openssl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macp
>> orts.org_release_ports_devel_openssl/main.log
> 
> Unclear to me how to remediate.

Sounds like you have a rogue dlfcn.h header, either in /usr/local/include or /opt/local/include, which should be removed. If it's in /usr/local, remove it, and anything else you may have in /usr/local; having things in /usr/local is a great way to cause problems for MacPorts. If it's in /opt/local, use "port provides" to find out what port provided it; if it's not provided by a port, remove it; if it is, let us know what port so we can investigate.




More information about the macports-users mailing list