Full_Name: mei-hui su Version: openldap 2.0 latest OS: irix 6.5 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (128.9.64.206) Hi, Using irix's cc(okay with gcc and okay with sun solaris compiler), I encountered the following error. Splitting the statement into 2 solves it. mei cc -64 -I../../include -I/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/include -c /nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c -o s "/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c", li ne 548: error(1133): expression must be a modifiable lvalue bv->bv_val = (char *) u = ch_malloc( bv->bv_len + sizeof(ldap_unicode_t) ); ^ "/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c", li ne 548: warning(1551): variable "u" is used before its value is set bv->bv_val = (char *) u = ch_malloc( bv->bv_len + sizeof(ldap_unicode_t) );
changed notes changed state Open to Closed moved from Incoming to Development
Fixed, please test, thanks. At 06:34 PM 8/15/00 +0000, mei@isi.edu wrote: >Full_Name: mei-hui su >Version: openldap 2.0 latest >OS: irix 6.5 >URL: ftp://ftp.openldap.org/incoming/ >Submission from: (NULL) (128.9.64.206) > > >Hi, > > Using irix's cc(okay with gcc and okay with sun solaris compiler), I >encountered >the following error. Splitting the statement into 2 solves it. > >mei > >cc -64 -I../../include >-I/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/include > -c /nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c > >-o s > >"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c", >li >ne 548: error(1133): > expression must be a modifiable lvalue > bv->bv_val = (char *) u = ch_malloc( bv->bv_len + sizeof(ldap_unicode_t) >); > ^ > >"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/servers/slapd/schema_init.c", >li >ne 548: warning(1551): > variable "u" is used before its value is set > bv->bv_val = (char *) u = ch_malloc( bv->bv_len + sizeof(ldap_unicode_t) >);
fixed.