Many thanks, it builds now!

Regards,
Petri


On May 14, 2013, at 7:24 PM, Alexander Hansen <[email protected]> 
wrote:

> On 5/14/13 2:47 AM, Petri Piila wrote:
>> Dear Geomview maintainer,
>> 
>> Presently updated Geomview 1.9.4-1003 won't compile in my system:
>> 
>> Package manager version: 0.34.8
>> Distribution version: selfupdate-rsync Tue May 14 10:56:05 2013, 10.8, x86_64
>> Trees: local/main stable/main local/injected
>> Xcode.app: 4.6.2
>> Xcode command-line tools: 4.6.0.0.1.1365549073
>> Max. Fink build jobs:  1
>> 
>> I have a MacBookPro with processor Intel Core 2 Duo and operating system Os 
>> X 10.8.3 .
>> 
>> Compiling interrupted according to the listing below. First error that I can 
>> see is "error: no member named 'dd_fd' in 'DIR'".
>> 
>> Also compiling of the previous package version ended with the same error. 
>> Compiling was successful in Os x 10.7 and probably also in Os X 10.8.0.
>> 
>> 
>> gcc -DHAVE_CONFIG_H -I. -I../../.. -I/sw  -I../../../include 
>> -I/usr/X11R6/include  -I/sw/include  -g -O2 -c animate.c
>> gcc -DHAVE_CONFIG_H -I. -I../../.. -I/sw  -I../../../include 
>> -I/usr/X11R6/include  -I/sw/include  -g -O2 -c xanimate.c
>> gcc -DHAVE_CONFIG_H -I. -I../../.. -I/sw  -I../../../include 
>> -I/usr/X11R6/include  -I/sw/include  -g -O2 -c glob.c
>> glob.c:262:12: error: no member named 'dd_fd' in 'DIR'
>>         if (fstat(dirfd(dirp), &stb) < 0)
>>                   ^~~~~~~~~~~
>> glob.c:45:31: note: expanded from macro 'dirfd'
>> #define dirfd(dirp)  ((dirp)->dd_fd)
>>                       ~~~~~~  ^
>> glob.c:417:12: warning: equality comparison with extraneous parentheses 
>> [-Wparentheses-equality]
>>                         if ((cc == 0)) {
>>                              ~~~^~~~
>> glob.c:417:12: note: remove extraneous parentheses around the comparison to 
>> silence this warning
>>                         if ((cc == 0)) {
>>                             ~   ^   ~
>> glob.c:417:12: note: use '=' to turn this equality comparison into an 
>> assignment
>>                         if ((cc == 0)) {
>>                                 ^~
>>                                 =
>> glob.c:505:12: warning: equality comparison with extraneous parentheses 
>> [-Wparentheses-equality]
>>                         if ((cc == 0)) {
>>                              ~~~^~~~
>> glob.c:505:12: note: remove extraneous parentheses around the comparison to 
>> silence this warning
>>                         if ((cc == 0)) {
>>                             ~   ^   ~
>> glob.c:505:12: note: use '=' to turn this equality comparison into an 
>> assignment
>>                         if ((cc == 0)) {
>>                                 ^~
>>                                 =
>> 2 warnings and 1 error generated.
>> make[5]: *** [glob.o] Error 1
>> make[5]: Leaving directory 
>> `/sw/src/fink.build/geomview194-shlibs-1.9.4-1003/geomview-1.9.4/src/bin/animate'
>> make[4]: *** [all-recursive] Error 1
>> make[4]: Leaving directory 
>> `/sw/src/fink.build/geomview194-shlibs-1.9.4-1003/geomview-1.9.4/src/bin/animate'
>> make[3]: *** [all-recursive] Error 1
>> make[3]: Leaving directory 
>> `/sw/src/fink.build/geomview194-shlibs-1.9.4-1003/geomview-1.9.4/src/bin'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory 
>> `/sw/src/fink.build/geomview194-shlibs-1.9.4-1003/geomview-1.9.4/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory 
>> `/sw/src/fink.build/geomview194-shlibs-1.9.4-1003/geomview-1.9.4'
>> make: *** [all] Error 2
>> ### execution of make failed, exit code 2
>> ### execution of /tmp/fink.AqJ93 failed, exit code 2
>> 
>> 
>> Best Regards
>> Petri Piila
>> 
>> [email protected]
>> 
>> 
>> 
> 
> Thanks for the report.
> 
> The problem appears to be this, from glob.c:
> 
> #if !defined(dirfd) && !defined(__GLIBC__) && !defined(__linux__) && 
> !defined(__FreeBSD__) && !defined(__CYGWIN__)
> #define dirfd(dirp)  ((dirp)->dd_fd)
> #endif
> 
> Starting with 10.8, OS X has its own dirfd(), but the !defined(dirfd) seems 
> not to be resolving as false.  I just committed a change which patches around 
> that on 10.8 only, and it should be available shortly via selfupdate.
> -- 
> Alexander Hansen, Ph.D.
> Fink User Liaison
> My package updates: http://finkakh.wordpress.com/


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
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