From: Alexander H. <ale...@gm...> - 2012-11-30 00:46:05
|
On 11/29/12 10:35 AM, David Cantrell wrote: > I'm trying to build wget using fink, which depends on openssl100-dev and > openssl100-shlibs, and get, after a great deal of make/compiler noise ... > > cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -fPIC > -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS > -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN > -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 > -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM > -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM > -I/sw/include -c -o dso_dlfcn.o dso_dlfcn.c > dso_dlfcn.c:447:2: error: use of undeclared identifier 'Dl_info' > Dl_info dli; > ^ > dso_dlfcn.c:457:6: warning: implicit declaration of function 'dladdr' is > invalid in > C99 [-Wimplicit-function-declaration] > if (dladdr(addr,&dli)) > ^ > dso_dlfcn.c:457:19: error: use of undeclared identifier 'dli' > if (dladdr(addr,&dli)) > ^ > dso_dlfcn.c:459:21: error: use of undeclared identifier 'dli' > len = (int)strlen(dli.dli_fname); > ^ > dso_dlfcn.c:462:15: error: use of undeclared identifier 'dli' > memcpy(path,dli.dli_fname,len); > ^ > /usr/include/secure/_string.h:55:36: note: expanded from macro 'memcpy' > ? __builtin___memcpy_chk (dest, src, len, __darwin_obsz0 (dest)) \ > ^ > dso_dlfcn.c:462:15: error: use of undeclared identifier 'dli' > memcpy(path,dli.dli_fname,len); > ^ > /usr/include/secure/_string.h:56:33: note: expanded from macro 'memcpy' > : __inline_memcpy_chk (dest, src, len)) > ^ > 1 warning and 5 errors generated. > make[2]: *** [dso_dlfcn.o] Error 1 > make[1]: *** [subdirs] Error 1 > make: *** [build_crypto] Error 1 > ### execution of /tmp/fink.h8TLu failed, exit code 2 > ### execution of /tmp/fink.LCjSj failed, exit code 2 > Removing runtime build-lock... > Removing build-lock package... > /sw/bin/dpkg-lockwait -r fink-buildlock-openssl100-dev-1.0.1c-1 > (Reading database ... 6308 files and directories currently installed.) > Removing fink-buildlock-openssl100-dev-1.0.1c-1 ... > Failed: phase compiling: openssl100-dev-1.0.1c-1 failed > > > Package manager version: 0.34.4 > Distribution version: selfupdate-rsync Thu Nov 29 17:24:08 2012, 10.8, > x86_64 > Trees: local/main stable/main > Xcode.app: 4.5.2 > Xcode command-line tools: 4.5.0.0.1.1249367152 > Max. Fink build jobs: 1 > Haven't seen that one in a while: http://www.finkproject.org/faq/comp-general.php?phpLang=en#dlfcn-from-oo (Some of the text is obsolete.) Anyway, check if you have /usr/local/include/dlfcn.h and/or /usr/local/lib/libdl.dylib. If so, get rid of them because OS X has these since 10.3; and if something you have installed complains, tell the upstream author to fix the build process to use the system's files, since, as I said, they've been available since 10.3. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ |