Re: [Fink-devel] Re: Failed: phase compiling: zsh-4.2.4-11 failed

2005-05-14 Thread Cian Hughes
Got similar error here:
gcc -c -I. -I/sw/include -I/sw/include -DHAVE_CONFIG_H -Wall - 
Wmissing-prototypes -O2  -o utils.o utils.c
utils.c: In function 'adjustwinsize':
utils.c:1000: warning: implicit declaration of function 'ioctl'
utils.c: At top level:
utils.c:3460: warning: no previous prototype for 'ucs4toutf8'
utils.c: In function 'ucs4toutf8':
utils.c:3482: warning: suggest parentheses around arithmetic in  
operand of |
utils.c: In function 'getkeystring':
utils.c:3666: warning: passing argument 2 of 'libiconv' from  
incompatible pointer type
gcc -c -I. -I/sw/include -I/sw/include -DHAVE_CONFIG_H -Wall - 
Wmissing-prototypes -O2  -o watch.o watch.c
watch.c: In function 'watch3ary':
watch.c:196: error: 'struct utmpx' has no member named 'ut_name'
watch.c: In function 'watchlog2':
watch.c:262: error: 'struct utmpx' has no member named 'ut_name'
watch.c:262: error: 'struct utmpx' has no member named 'ut_name'
watch.c: In function 'watchlog':
watch.c:380: error: 'struct utmpx' has no member named 'ut_name'
watch.c:388: error: 'struct utmpx' has no member named 'ut_name'
watch.c:388: error: 'struct utmpx' has no member named 'ut_name'
watch.c:399: error: 'struct utmpx' has no member named 'ut_name'
watch.c:399: error: 'struct utmpx' has no member named 'ut_name'
make[2]: *** [watch.o] Error 1
make[1]: *** [modobjs] Error 2
make: *** [all] Error 1
### execution of make failed, exit code 2
Removing build lock...

Regards, Cian
On 12 Beal 2005, at 12:35, David H. wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
François Giron wrote:
Hello,
I transmit here the detail concerning the failure of the
installation of zsh.
utils.c: In function 'adjustwinsize':
utils.c:1000: warning: implicit declaration of function 'ioctl'
utils.c: At top level:
utils.c:3460: warning: no previous prototype for 'ucs4toutf8'
utils.c: In function 'ucs4toutf8':
utils.c:3482: warning: suggest parentheses around arithmetic in  
operand of |
utils.c: In function 'getkeystring':
utils.c:3666: warning: passing argument 2 of 'libiconv' from  
incompatible
pointer type
gcc -c -I. -I/sw/include -I/sw/include -DHAVE_CONFIG_H -Wall
-Wmissing-prototypes -O2  -o watch.o watch.c
watch.c: In function 'watch3ary':
watch.c:196: error: 'struct utmpx' has no member named 'ut_name'
watch.c: In function 'watchlog2':
watch.c:262: error: 'struct utmpx' has no member named 'ut_name'
watch.c:262: error: 'struct utmpx' has no member named 'ut_name'
watch.c: In function 'watchlog':
watch.c:380: error: 'struct utmpx' has no member named 'ut_name'
watch.c:388: error: 'struct utmpx' has no member named 'ut_name'
watch.c:388: error: 'struct utmpx' has no member named 'ut_name'
watch.c:399: error: 'struct utmpx' has no member named 'ut_name'
watch.c:399: error: 'struct utmpx' has no member named 'ut_name'
make[2]: *** [watch.o] Error 1
make[1]: *** [modobjs] Error 2
make: *** [all] Error 1
### execution of make failed, exit code 2



Ok looks like we need:
#if (defined(UTMPX)  defined(HAVE_STRUCT_UTMPX_UT_ID)) ||
(!defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_ID))
 strncpy(utx.ut_id, id, sizeof(utx.ut_id));
 #endif
#if (defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_USER)) ||
(!defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_USER))
 strncpy(utx.ut_user, user, sizeof(utx.ut_user));
 #else
 strncpy(utx.ut_name, user, sizeof(utx.ut_name));
 #endif
 strncpy(utx.ut_line, line, sizeof(utx.ut_line));
#if (defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_PID)) ||
(!defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_PID))
 utx.ut_pid = getpid();
 #endif
#if (defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_TYPE)) ||
(!defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_TYPE))
 utx.ut_type = LOGIN_PROCESS;
 #endif
#if (defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_TV)) ||
(!defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_TV))
 gettimeofday((utx.ut_tv), 0);
 #else
 time((utx.ut_time));
That would also apply to the eterm issue on fink-users I guess ?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.3.6 (Darwin)
iD8DBQFCgz+JPMoaMn4kKR4RAkWVAJ4hrYRSN7/Hv/O1QOrMAIfSQMdNeACfYcwN
PKCpn1Hwzpg5FacYV8HEb8o=
=5eKz
-END PGP SIGNATURE-
---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93alloc_id281op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93alloc_id281op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

[Fink-devel] Re: Failed: phase compiling: zsh-4.2.4-11 failed

2005-05-12 Thread David H.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Franois Giron wrote:
 Hello,
 I transmit here the detail concerning the failure of the
 installation of zsh.
 
 
utils.c: In function 'adjustwinsize':
utils.c:1000: warning: implicit declaration of function 'ioctl'
utils.c: At top level:
utils.c:3460: warning: no previous prototype for 'ucs4toutf8'
utils.c: In function 'ucs4toutf8':
utils.c:3482: warning: suggest parentheses around arithmetic in operand of |
utils.c: In function 'getkeystring':
utils.c:3666: warning: passing argument 2 of 'libiconv' from incompatible
pointer type
gcc -c -I. -I/sw/include -I/sw/include -DHAVE_CONFIG_H -Wall
-Wmissing-prototypes -O2  -o watch.o watch.c
watch.c: In function 'watch3ary':
watch.c:196: error: 'struct utmpx' has no member named 'ut_name'
watch.c: In function 'watchlog2':
watch.c:262: error: 'struct utmpx' has no member named 'ut_name'
watch.c:262: error: 'struct utmpx' has no member named 'ut_name'
watch.c: In function 'watchlog':
watch.c:380: error: 'struct utmpx' has no member named 'ut_name'
watch.c:388: error: 'struct utmpx' has no member named 'ut_name'
watch.c:388: error: 'struct utmpx' has no member named 'ut_name'
watch.c:399: error: 'struct utmpx' has no member named 'ut_name'
watch.c:399: error: 'struct utmpx' has no member named 'ut_name'
make[2]: *** [watch.o] Error 1
make[1]: *** [modobjs] Error 2
make: *** [all] Error 1
### execution of make failed, exit code 2




Ok looks like we need:


#if (defined(UTMPX)  defined(HAVE_STRUCT_UTMPX_UT_ID)) ||
(!defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_ID))
 strncpy(utx.ut_id, id, sizeof(utx.ut_id));
 #endif
#if (defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_USER)) ||
(!defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_USER))
 strncpy(utx.ut_user, user, sizeof(utx.ut_user));
 #else
 strncpy(utx.ut_name, user, sizeof(utx.ut_name));
 #endif
 strncpy(utx.ut_line, line, sizeof(utx.ut_line));
#if (defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_PID)) ||
(!defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_PID))
 utx.ut_pid = getpid();
 #endif
#if (defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_TYPE)) ||
(!defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_TYPE))
 utx.ut_type = LOGIN_PROCESS;
 #endif
#if (defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_TV)) ||
(!defined(UTMPX)  defined(HAVE_STRUCT_UTMP_UT_TV))
 gettimeofday((utx.ut_tv), 0);
 #else
 time((utx.ut_time));

That would also apply to the eterm issue on fink-users I guess ?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.3.6 (Darwin)

iD8DBQFCgz+JPMoaMn4kKR4RAkWVAJ4hrYRSN7/Hv/O1QOrMAIfSQMdNeACfYcwN
PKCpn1Hwzpg5FacYV8HEb8o=
=5eKz
-END PGP SIGNATURE-


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93alloc_id281op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel