Multiple ports error on upgrade

Philip Hudson phil.hudson at iname.com
Tue Mar 8 08:06:46 PST 2011


On 3 Mar, 2011, at 3:30 pm, Ryan Schmidt wrote:

> On Mar 3, 2011, at 09:20, Philip Hudson wrote:
>
>> On 2 Mar, 2011, at 4:02 pm, Ryan Schmidt wrote:
>>
>>> 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.
>>
>> I did indeed have a file /usr/local/include/dlfcn.h; I deleted it,  
>> re-ran port upgrade, and got exactly the same error and log.
>
> Clean the affected port and try again. ("sudo port clean")
>
>> sudo find /opt -name dlfcn.h reveals 4 files (3 distinct according  
>> to diff) under /opt/local/var/macports/build, two each for  
>> xulrunner and Python 2.7.1. Each is "not provided by a MacPorts  
>> port" according to port provides.
>
> Correct, things in /opt/local/var/macports/ aren't registered to  
> ports; that's ok and not a problem, and having dlfcn.h or other  
> files there is not a problem. It's only a problem if the file is in  
> a path that's searched for include files. Those paths are at least / 
> usr/include, /usr/local/include, /opt/local/include.

Thanks for that. Did a sudo port clean --all all, then upgrade  
produced the following again:

> --->  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

Cited log file tail:

> :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:84:20: error: dlfcn.h: No such file or  
> directory
> :info:build dso_dlfcn.c: In function 'dlfcn_load':
> :info:build dso_dlfcn.c:170: error: 'RTLD_NOW' undeclared (first use  
> in this function)
> :info:build dso_dlfcn.c:170: error: (Each undeclared identifier is  
> reported only once
> :info:build dso_dlfcn.c:170: error: for each function it appears in.)
> :info:build dso_dlfcn.c:182: warning: assignment makes pointer from  
> integer without a cast
> :info:build dso_dlfcn.c: In function 'dlfcn_bind_var':
> :info:build dso_dlfcn.c:250: warning: assignment makes pointer from  
> integer without a cast
> :info:build dso_dlfcn.c: In function 'dlfcn_bind_func':
> :info:build dso_dlfcn.c:284: warning: assignment makes pointer from  
> integer without a cast
> :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: syntax error before 'dli'
> :info:build dso_dlfcn.c:455: error: 'dli' undeclared (first use in  
> this function)
> :info:build dso_dlfcn.c: In function 'dlfcn_globallookup':
> :info:build dso_dlfcn.c:472: error: 'RTLD_LAZY' undeclared (first  
> use in this function)
> :info:build dso_dlfcn.c:472: warning: initialization makes pointer  
> from integer without a cast
> :info:build dso_dlfcn.c:476: warning: assignment makes pointer from  
> integer without a cast
> :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

What now?

--
Phil Hudson                  http://hudson-it.no-ip.biz
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63



More information about the macports-users mailing list