On 15 August 2012 at 03:13 Marcin Cieslak <sa...@saper.info> wrote:> >> Marcin
Cieslak <sa...@saper.info> wrote:
> > Follow up to de82eebdd56c02ae200bf2d9ec60df053919e7e7
> > ---
> > cde/lib/tt/lib/db/tt_db_client.C | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/cde/lib/tt/lib/db/tt_db_client.C
> > b/cde/lib/tt/lib/db/tt_db_client.C
> > index 24d369c..22e210f 100644
> > --- a/cde/lib/tt/lib/db/tt_db_client.C
> > +++ b/cde/lib/tt/lib/db/tt_db_client.C
> > @@ -193,7 +193,7 @@ _Tt_db_results _Tt_db_client::connectToDB (const
> > _Tt_string &hostname)
> > // If dbVersion == 1, then we are talking to an old DB server
> > static _tt_auth_level_results results;
> >
> > - const char *path = "";
> > + char *path = "";
> > clnt_stat rpc_status;
> > int *result = (int *)NULL;
> > result = _tt_min_auth_level_1(&path, dbServer, &rpc_status);
>
> Here is the failure I am getting:
>
> rm -f tt_db_client.o
> CC -c -O2 -I../../lib -I../../../.. -I../../../../exports/include
> -I../../../../imports/motif/include -I../../../../imports/x11/include
> -DCSRG_BASED -DANSICPP -DMULTIBYTE -DNLS16 -DOSMAJORVERSION=9
> -DOSMINORVERSION=0 -DBSDSHLIB -fpic tt_db_client.C
> tt_db_client.C: In member function '_Tt_db_results
> _Tt_db_client::connectToDB(const _Tt_string&)':
> tt_db_client.C:199: error: invalid conversion from 'const char**' to 'char**'
> tt_db_client.C:199: error: initializing argument 1 of 'int*
> _tt_min_auth_level_1(char**, CLIENT*, clnt_stat*)'
> *** Error code 1
>
> Stop in /.amd_mnt/radziecki/a/icybox/tmp/cdesktopenv/cde/lib/tt/lib/db.
> *** Error code 1
>
>

Hi Marcin,

An -fpermissive flag is being passed to the compiler on Linux, which turns this
into a warning. The "correct" solution would be for the _tt_min_auth_level_1
function to take a const char * argument, but it's an RPC generated function.
Removing the const qualifier simply changes the warning to a writable string one
with the -fpermissive flag.

Chris
------------------------------------------------------------------------------
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/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to