On 7/4/12 8:34 AM, Sebastian Hagedorn wrote:
> Hi,
> 
> I can't build pinfo on any of my Lion systems:
> 
> gcc -g -O2 -o pinfo pinfo-pinfo.o pinfo-colors.o pinfo-datatypes.o 
> pinfo-filehandling_functions.o pinfo-mainfunction.o pinfo-manual.o 
> pinfo-menu_and_note_utils.o pinfo-parse_config.o pinfo-regexp_search.o 
> pinfo-signal_handler.o pinfo-utils.o pinfo-video.o pinfo-initializelinks.o 
> pinfo-printinfo.o -Wl,-framework -Wl,CoreFoundation  -L/sw/lib -lreadline 
> /sw/lib/libintl.dylib -lncursesw
> Undefined symbols for architecture x86_64:
>   "_builddircommand", referenced from:
>       _opendirfile in pinfo-filehandling_functions.o
>   "_buildcommand", referenced from:
>       _openinfo in pinfo-filehandling_functions.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> make[2]: *** [pinfo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> ### execution of make failed, exit code 2
> ### execution of /tmp/fink.8lSZP failed, exit code 2
> 
> The failure doesn't seem to be MaxBuildJobs related.
> --
> Sebastian Hagedorn - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10
> Regionales Rechenzentrum (RRZK)
> Universität zu Köln / Cologne University - Tel. +49-221-478-5587
> 

It looks like something has changed in clang, since presumably the
package built at some point.  I get the same failure with clang from
Xcode-4.3.3 [clang-3.1 (tags/Apple/clang-318.0.61)].

pinfo-filehandling_functions.c defines builddircommand and buildcommand
as inline functions, and maybe clang is silently ignoring that.

I've committed a workaround, which switches the build to use llvm-gcc
instead of clang.  It will be available via selfupdate shortly.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to