×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

I got compiling error on AIX5.3, any suggestion will be appreciated.

本文发表在 rolia.net 枫下论坛comiling and linking this same program on HP UX/Solaris/Linux are all okay, but for AIX, there are so many troubles.
Because it is so common I am not gonna to consider modifiy the code in program, because I believe it is an environment issue.


Here is the output:
bash-3.00# gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../gcc-4.0.2/configure --disable-nls
Thread model: aix
gcc version 4.0.2
bash-3.00# uname -a
AIX devaix 3 5 000F067F4C00
bash-3.00# echo $OBJECT_MODE
64
bash-3.00#gcc -c -maix64 -g -DDEBUG_root -DDEBUG=1 -DXP_UNIX=1 -DAIX=1 -DSYSV=1 -DAIX_HAVE_ATOMIC_OP_H=1 -DAIX_TIMERS=1 -D_PR_HAVE_OFF64_T=1 -DHAVE_SOCKLEN_T=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DLDAP_DEBUG -DNET_SSL -DNO_LIBLCACHE -DLDAP_REFERRALS -DNS_DOMESTIC -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_PR_INET6 -I../../../dist/./include -I../../../../../dist/include/obsolete -I../../../../../dist/include/nspr -I../../../../../dist/AIX3_DBG.OBJ/include -I../../../../../dist/include -I../../../../../dist/public/security -I../../../../../dist/public/nss -I../../../../../dist/public/ldap -I../../../ldap/include convutf8.cpp
convutf8.cpp: In function 'char* convert_to_utf8(const char*, const char*)':
convutf8.cpp:231: error: invalid conversion from 'const char**' to 'char**'
convutf8.cpp:231: error: initializing argument 2 of 'size_t libiconv(void*, char**, size_t*, char**, size_t*)'
convutf8.cpp:234: error: invalid conversion from 'const char**' to 'char**'
convutf8.cpp:234: error: initializing argument 2 of 'size_t libiconv(void*, char**, size_t*, char**, size_t*)'
convutf8.cpp:237: error: invalid conversion from 'const char**' to 'char**'
convutf8.cpp:237: error: initializing argument 2 of 'size_t libiconv(void*, char**, size_t*, char**, size_t*)'
gmake[2]: *** [convutf8.o] Error 1
gmake[2]: Leaving directory `/usr/local/mozilla/mozilla/directory/c-sdk/ldap/clients/tools'
gmake[1]: *** [export] Error 2
gmake[1]: Leaving directory `/usr/local/mozilla/mozilla/directory/c-sdk/ldap'
gmake: *** [export] Error 2更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / I got compiling error on AIX5.3, any suggestion will be appreciated.
    本文发表在 rolia.net 枫下论坛comiling and linking this same program on HP UX/Solaris/Linux are all okay, but for AIX, there are so many troubles.
    Because it is so common I am not gonna to consider modifiy the code in program, because I believe it is an environment issue.


    Here is the output:
    bash-3.00# gcc -v
    Using built-in specs.
    Target: powerpc-ibm-aix5.3.0.0
    Configured with: ../gcc-4.0.2/configure --disable-nls
    Thread model: aix
    gcc version 4.0.2
    bash-3.00# uname -a
    AIX devaix 3 5 000F067F4C00
    bash-3.00# echo $OBJECT_MODE
    64
    bash-3.00#gcc -c -maix64 -g -DDEBUG_root -DDEBUG=1 -DXP_UNIX=1 -DAIX=1 -DSYSV=1 -DAIX_HAVE_ATOMIC_OP_H=1 -DAIX_TIMERS=1 -D_PR_HAVE_OFF64_T=1 -DHAVE_SOCKLEN_T=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DLDAP_DEBUG -DNET_SSL -DNO_LIBLCACHE -DLDAP_REFERRALS -DNS_DOMESTIC -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_PR_INET6 -I../../../dist/./include -I../../../../../dist/include/obsolete -I../../../../../dist/include/nspr -I../../../../../dist/AIX3_DBG.OBJ/include -I../../../../../dist/include -I../../../../../dist/public/security -I../../../../../dist/public/nss -I../../../../../dist/public/ldap -I../../../ldap/include convutf8.cpp
    convutf8.cpp: In function 'char* convert_to_utf8(const char*, const char*)':
    convutf8.cpp:231: error: invalid conversion from 'const char**' to 'char**'
    convutf8.cpp:231: error: initializing argument 2 of 'size_t libiconv(void*, char**, size_t*, char**, size_t*)'
    convutf8.cpp:234: error: invalid conversion from 'const char**' to 'char**'
    convutf8.cpp:234: error: initializing argument 2 of 'size_t libiconv(void*, char**, size_t*, char**, size_t*)'
    convutf8.cpp:237: error: invalid conversion from 'const char**' to 'char**'
    convutf8.cpp:237: error: initializing argument 2 of 'size_t libiconv(void*, char**, size_t*, char**, size_t*)'
    gmake[2]: *** [convutf8.o] Error 1
    gmake[2]: Leaving directory `/usr/local/mozilla/mozilla/directory/c-sdk/ldap/clients/tools'
    gmake[1]: *** [export] Error 2
    gmake[1]: Leaving directory `/usr/local/mozilla/mozilla/directory/c-sdk/ldap'
    gmake: *** [export] Error 2更多精彩文章及讨论,请光临枫下论坛 rolia.net
    • I've tried g++ and it works no difference.
      • coding style 有问题, 严谨的C++代码不该把 " const char ** " cast to " char ** ".
        • 是开放源码Mozilla LDAP C-SDK,没法责怪作者啦:-). AIX上编译连接有什么需要注意的吗? 我的环境是RS/6000 PowerPC AIX5.3 + GNU C
    • 是不是在编译mozilla? 在AIX5.3的8张盘之外,有一张盘是有mozilla安装文件的
      • 没错是Mozilla.小饭能否把你的那张CD mount到你的aix上? 急!谢谢!
        • upup
          • Mozilla 1.7.12 for AIX with translations available as Web download and on the Mozilla for AIX CD that can be ordered with AIX. This version requires AIX 5L.
            installp install format - IBMs version of Mozilla for AIX
            Mozilla.base.tar.gz (27MB)

            download using http
            Download now

            CVS diff and readme file
            Mozilla.base.1_7_12.source_diffs.tar.gz (.1MB)

            download using http
            Download now

            Mozilla for AIX product readme
            README.HTML (0.1MB)

            download using http
            Download now
            ---------------------------------

            You may need an IBM ID to get into the download page. Anyway the ID is free.
            • not the Mozilla browser
              • 如果怀疑环境有问题,可以试试看传到我的AIX上来编译。然后把生成的东西再倒回你机器。我那里曾经编译过不少软件包比如apache,php,mysql,环境应该还是OK的
                • but I need root privilege, I don't think you will give me that.:-)
                  • 传上来,我帮你编译
                    • 谢谢饭主席,我已经把这段整过去了,经过连接一个LDAP server验证没有问题.
                      • 饭主席: AIX上的xlc/xlC/xlC_r是免费的吗? 你的AIX光盘上有没有xlc/xlC/xlC_r和相关库? 能否mount上去借我用用? 我用Gcc编译,仍然问题很多. 仍然头疼中.
                        用gcc/g++,加-maix64选项,并且设置OBJECT_MODE=64可以避免一些问题,但有带来另外很多问题.其中之一就是很多安装好二进制支持库都需要重新编译,而编译又相应出现很多别的问题.

                        还有一个问题:这个aix是64位的内核,gcc或着xlc/xlC等缺省编译是按32位的吗?
                        • < 小小请求:有无msn或yahoo messenger联络? 我的联络方式见PM>