Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Posts
    2

    Unanswered: Trouble with "make" when installing DBI perl module

    Hi DBForums,

    I'm hoping somebody out there can help me. I am running Solaris 10 sparc on a Sun Ultra 10 which I am trying to make into a freeRadius server using mysql database for accounting. I have installed the mysql no problem and it seems to be running. I am however finding it impossable to install the perl modules DBI, DBD::MYSQL, Data::Dumper and Data::ShowTable.
    I have included below, the output from screen after typing "make", I would be greatful if somebody could have a look at the errors I'm getting an suggest a way fix my problem.

    Regards,

    Tim


    # make
    gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.50\" -DXS_VERSION=\"1.50\" -fPIC "-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -DDBI_NO_THREADS Perl.c
    In file included from /usr/include/sys/signal.h:34,
    from /usr/include/signal.h:26,
    from /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/unixish.h:106,
    from /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220,
    from DBIXS.h:19,
    from Perl.xs:5:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/signal.h:26,
    from /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/unixish.h:106,
    from /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220,
    from DBIXS.h:19,
    from Perl.xs:5:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/unixish.h:106,
    from /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220,
    from DBIXS.h:19,
    from Perl.xs:5:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    Perl.xs: In function `dbd_st_rows':
    Perl.xs:39: warning: unused parameter `h'
    Perl.c: In function `XS_DBD__Perl__dr_data_sources':
    Perl.c:86: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db__login':
    Perl.c:122: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db_selectall_arrayref':
    Perl.c:157: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db_do':
    Perl.c:280: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db_last_insert_id':
    Perl.c:318: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db_commit':
    Perl.c:348: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db_rollback':
    Perl.c:366: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db_disconnect':
    Perl.c:384: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db_STORE':
    Perl.c:418: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db_FETCH':
    Perl.c:441: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db_DESTROY':
    Perl.c:461: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__db_take_imp_data':
    Perl.c:521: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st__prepare':
    Perl.c:585: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st_bind_col':
    Perl.c:639: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st_bind_param':
    Perl.c:691: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st_bind_param_inout':
    Perl.c:734: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st_execute':
    Perl.c:783: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st_execute_for_fetch':
    Perl.c:818: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st_fetchall_arrayref':
    Perl.c:894: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st_finish':
    Perl.c:928: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st_blob_read':
    Perl.c:959: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st_STORE':
    Perl.c:998: warning: unused parameter `cv'
    Perl.c: In function `XS_DBD__Perl__st_DESTROY':
    Perl.c:1044: warning: unused parameter `cv'
    Perl.xsi: In function `boot_DBD__Perl':
    Perl.c:1096: warning: unused parameter `cv'
    *** Error code 1
    make: Fatal error: Command failed for target `Perl.o'

  2. #2
    Join Date
    Apr 2006
    Location
    California
    Posts
    3
    Hi Tim,

    I remember seeing something on this a while back but not with DBI. I think it had to do with the version of gcc. What version do you have installed and can you upgrade?

    ~Charlie

  3. #3
    Join Date
    May 2006
    Posts
    2
    Charlie,

    Thanks for the reply. I am currently running gcc version 3.3.2. I think i probably could upgrade, I'll get on to the sun freeware site and have a go.

    Thanks for the suggestion, much appriciated,

    Tim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •