|
|
|
|
||||||
| comp.mail.imap Discussion of IMAP-based mail systems. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
This is a common problem with Solaris 9, perhaps somebody knows a workaround: `cat CCTYPE` -c `cat CFLAGS` mix.c mix.c: In function `mix_rename': mix.c:539: error: `alphasort' undeclared (first use in this function) I see that scandir() is picked up from src/osdep/unix/scandir.c; can't find alphasort()... it's probably faster to make it than to search for it. Thanks. -- René Berber |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
René Berber wrote: [snip] > mix.c: In function `mix_rename': > mix.c:539: error: `alphasort' undeclared (first use in this function) > > I see that scandir() is picked up from src/osdep/unix/scandir.c; can't > find alphasort()... it's probably faster to make it than to search for > it. Never mind, I defined the prototype in os_solo.h and the build completed with no problems. I'm using gcc, and "make gso". -- René Berber |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
In the referenced article, "=?iso-8859-1?B?UmVu6SBCZXJiZXI=?=" <rberber@mailandnews.com> writes:
> >Ren=E9 Berber wrote: >[snip] >> mix.c: In function `mix_rename': >> mix.c:539: error: `alphasort' undeclared (first use in this function) >> >> I see that scandir() is picked up from src/osdep/unix/scandir.c; can't >> find alphasort()... it's probably faster to make it than to search for >> it. > >Never mind, I defined the prototype in os_solo.h and the build >completed with no problems. > >I'm using gcc, and "make gso". Not quite sure how you managed that. From the little digging I've done, it appears that the scandir function etc was introduced in the C library on Solaris10. It isn't available in the C library on Solaris9 and earlier. Where, on Solaris9, are you finding the scandir function? -- Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK D.H.Davis@bath.ac.uk |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
The imap-2006a development snapshot defines alphasort (both prototype and
function) on Solaris. -- Mark -- http://panda.com/mrc Democracy is two wolves and a sheep deciding what to eat for lunch. Liberty is a well-armed sheep contesting the vote. |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Dennis Davis wrote: > In the referenced article, "=?iso-8859-1?B?UmVu6SBCZXJiZXI=?=" <rberber> writes: > > > >Ren=E9 Berber wrote: > >[snip] > >> mix.c: In function `mix_rename': > >> mix.c:539: error: `alphasort' undeclared (first use in this function) > >> > >> I see that scandir() is picked up from src/osdep/unix/scandir.c; can't > >> find alphasort()... it's probably faster to make it than to search for > >> it. > > > >Never mind, I defined the prototype in os_solo.h and the build > >completed with no problems. > > > >I'm using gcc, and "make gso". > > Not quite sure how you managed that. From the little digging I've > done, it appears that the scandir function etc was introduced > in the C library on Solaris10. It isn't available in the C library > on Solaris9 and earlier. > > Where, on Solaris9, are you finding the scandir function? It's not on Solaris 9, it is in imap-2006 source: imap-2206/src/osdep/unix/scandir.c -- René Berber |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
In article <J5sonD.L7L.B.hinault@bath.ac.uk>,
Dennis Davis <ccsdhd@bath.ac.uk> wrote: >Where, on Solaris9, are you finding the scandir function? When I want scandir and alphasort on Solaris 9 I use these compiler command line options: -I/usr/ucbinclude -L/usr/ucblib -lucb -Wl,-R/usr/ucblib :: Jeff Makey jeff@sdsc.edu Department of Tautological Pleonasms and Superfluous Redundancies Department |
|
![]() |
| Outils de la discussion | |
|
|