Find the answer to your Linux question:
Results 1 to 3 of 3
As per the information below, I'm having lots of trouble installing /usr/ports/databases/ruby-bdb1. This is required for portupgrade which I need to be able to build and install. It's a FreeBSD ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Location
    IL, USA
    Posts
    5

    Problem installing /usr/ports/databases/ruby-bdb1


    As per the information below, I'm having lots of trouble installing /usr/ports/databases/ruby-bdb1. This is required for portupgrade which I need to be able to build and install. It's a FreeBSD 5.2.1 system, and I think I'm having some sort of issues with dependencies. Please let me know if you can help or suggest things I can try to pinpoint the problem myself. Thanks

    Code:
    -bash-2.05b$ sudo make install
    Password:
    ===>  Building for ruby18-bdb1-0.2.2
    cc -fPIC -O2 -march=pentium3 -D_THREAD_SAFE  -fPIC -I. -I/usr/local/lib/ruby/1.8/i386-freebsd5 -I/usr/local/lib/ruby/1.8/i386-freebsd5 -I. -DHAVE_DBOPEN -I/usr/local/include -c bdb1.c
    In file included from bdb1.c:1:
    bdb1.h:25:1: warning: "DB_VERSION_MAJOR" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:43:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:26:1: warning: "DB_VERSION_MINOR" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:44:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:40:1: warning: "DB_SET_RANGE" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:1014:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:41:1: warning: "DB_FIRST" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:993:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:42:1: warning: "DB_AFTER" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:985:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:43:1: warning: "DB_BEFORE" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:987:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:44:1: warning: "DB_LAST" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:1001:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:45:1: warning: "DB_NEXT" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:1002:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:46:1: warning: "DB_NOOVERWRITE" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:1006:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:47:1: warning: "DB_PREV" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:1009:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:49:1: warning: "DB_DUP" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:272:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:51:1: warning: "DB_KEYEXIST" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:1052:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:52:1: warning: "DB_NOTFOUND" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:1058:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:54:1: warning: "DB_CREATE" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:157:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:56:1: warning: "DB_RDONLY" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:161:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:57:1: warning: "DB_TRUNCATE" redefined
    In file included from bdb1.h:15,
                     from bdb1.c:1:
    /usr/local/include/db.h:164:1: warning: this is the location of the previous definition
    In file included from bdb1.c:1:
    bdb1.h:62: error: syntax error before "BTREEINFO"
    bdb1.c:19: warning: static declaration for `db_strerror' follows non-static
    bdb1.c: In function `bdb1_i_close':
    bdb1.c:266: error: too few arguments to function
    bdb1.c: In function `bdb1_i185_btree':
    bdb1.c:309: error: union has no member named `bi'
    bdb1.c:313: error: union has no member named `bi'
    bdb1.c:317: error: union has no member named `bi'
    bdb1.c:321: error: union has no member named `bi'
    bdb1.c:330: error: union has no member named `bi'
    bdb1.c:339: error: union has no member named `bi'
    bdb1.c:343: error: union has no member named `bi'
    bdb1.c: In function `bdb1_i185_hash':
    bdb1.c:363: error: union has no member named `hi'
    bdb1.c:367: error: union has no member named `hi'
    bdb1.c:371: error: union has no member named `hi'
    bdb1.c:380: error: union has no member named `hi'
    bdb1.c:384: error: union has no member named `hi'
    bdb1.c: In function `bdb1_i185_recno':
    bdb1.c:404: error: union has no member named `ri'
    bdb1.c:410: error: union has no member named `ri'
    bdb1.c:413: error: union has no member named `ri'
    bdb1.c:416: error: union has no member named `ri'
    bdb1.c:416: error: `R_FIXEDLEN' undeclared (first use in this function)
    bdb1.c:416: error: (Each undeclared identifier is reported only once
    bdb1.c:416: error: for each function it appears in.)
    bdb1.c:420: error: union has no member named `ri'
    bdb1.c:421: error: union has no member named `ri'
    bdb1.c:427: error: union has no member named `ri'
    bdb1.c:430: error: union has no member named `ri'
    bdb1.c:433: error: union has no member named `ri'
    bdb1.c:437: error: union has no member named `ri'
    bdb1.c:441: error: union has no member named `ri'
    bdb1.c:445: error: union has no member named `ri'
    bdb1.c: In function `bdb1_hard_count':
    bdb1.c:531: error: structure has no member named `seq'
    bdb1.c:531: error: `R_LAST' undeclared (first use in this function)
    bdb1.c: In function `bdb1_init':
    bdb1.c:610: error: union has no member named `bi'
    bdb1.c:615: error: union has no member named `bi'
    bdb1.c:623: error: union has no member named `hi'
    bdb1.c:634: warning: assignment makes pointer from integer without a cast
    bdb1.c: In function `bdb1_put':
    bdb1.c:792: warning: passing arg 2 of pointer to function from incompatible pointer type
    bdb1.c:792: warning: passing arg 4 of pointer to function makes pointer from integer without a cast
    bdb1.c:792: error: too few arguments to function
    bdb1.c: In function `bdb1_get_internal':
    bdb1.c:871: warning: passing arg 2 of pointer to function from incompatible pointer type
    bdb1.c:871: warning: passing arg 4 of pointer to function makes pointer from integer without a cast
    bdb1.c:871: error: too few arguments to function
    bdb1.c: In function `bdb1_has_both':
    bdb1.c:951: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:951: error: `R_CURSOR' undeclared (first use in this function)
    bdb1.c:953: error: structure has no member named `seq'
    bdb1.c:963: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_del':
    bdb1.c:985: warning: passing arg 2 of pointer to function from incompatible pointer type
    bdb1.c:985: error: too few arguments to function
    bdb1.c: In function `bdb1_empty':
    bdb1.c:1004: error: structure has no member named `seq'
    bdb1.c:1004: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c: In function `bdb1_delete_if':
    bdb1.c:1025: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1027: error: structure has no member named `seq'
    bdb1.c:1031: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c:1033: error: `R_CURSOR' undeclared (first use in this function)
    bdb1.c:1033: error: too few arguments to function
    bdb1.c: In function `bdb1_clear':
    bdb1.c:1052: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1055: error: structure has no member named `seq'
    bdb1.c:1060: error: `R_CURSOR' undeclared (first use in this function)
    bdb1.c:1060: error: too few arguments to function
    bdb1.c: In function `bdb1_length':
    bdb1.c:1081: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1083: error: structure has no member named `seq'
    bdb1.c:1087: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_each_valuec':
    bdb1.c:1108: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c:1108: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1108: error: `R_LAST' undeclared (first use in this function)
    bdb1.c:1110: error: structure has no member named `seq'
    bdb1.c: In function `bdb1_each_value':
    bdb1.c:1124: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_each_eulav':
    bdb1.c:1125: error: `R_PREV' undeclared (first use in this function)
    bdb1.c: In function `bdb1_each_keyc':
    bdb1.c:1140: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c:1140: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1140: error: `R_LAST' undeclared (first use in this function)
    bdb1.c:1142: error: structure has no member named `seq'
    bdb1.c: In function `bdb1_each_key':
    bdb1.c:1152: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_each_yek':
    bdb1.c:1153: error: `R_PREV' undeclared (first use in this function)
    bdb1.c: In function `bdb1_each_common':
    bdb1.c:1168: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c:1168: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1168: error: `R_LAST' undeclared (first use in this function)
    bdb1.c:1170: error: structure has no member named `seq'
    bdb1.c: In function `bdb1_each_pair':
    bdb1.c:1180: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_each_riap':
    bdb1.c:1181: error: `R_PREV' undeclared (first use in this function)
    bdb1.c: In function `bdb1_to_type':
    bdb1.c:1195: error: `R_LAST' undeclared (first use in this function)
    bdb1.c:1195: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1197: error: structure has no member named `seq'
    bdb1.c:1220: error: `R_PREV' undeclared (first use in this function)
    bdb1.c:1220: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_each_kv':
    bdb1.c:1261: error: `R_CURSOR' undeclared (first use in this function)
    bdb1.c:1263: error: structure has no member named `seq'
    bdb1.c:1278: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_values':
    bdb1.c:1331: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1333: error: structure has no member named `seq'
    bdb1.c:1337: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_internal_value':
    bdb1.c:1357: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c:1357: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1357: error: `R_LAST' undeclared (first use in this function)
    bdb1.c:1359: error: structure has no member named `seq'
    bdb1.c: In function `bdb1_index':
    bdb1.c:1380: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_has_value':
    bdb1.c:1407: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_keys':
    bdb1.c:1424: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1426: error: structure has no member named `seq'
    bdb1.c:1432: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_select':
    bdb1.c:1478: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c: In function `bdb1_each_vc':
    bdb1.c:1500: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1503: error: structure has no member named `seq'
    bdb1.c:1507: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c:1522: warning: passing arg 2 of pointer to function from incompatible pointer type
    bdb1.c:1522: error: too few arguments to function
    bdb1.c: In function `Init_bdb1':
    bdb1.c:1552: error: `R_IAFTER' undeclared (first use in this function)
    bdb1.c:1553: error: `R_IBEFORE' undeclared (first use in this function)
    bdb1.c:1555: error: `R_DUP' undeclared (first use in this function)
    bdb1.c:1556: error: `R_FIRST' undeclared (first use in this function)
    bdb1.c:1557: error: `R_LAST' undeclared (first use in this function)
    bdb1.c:1558: error: `R_NEXT' undeclared (first use in this function)
    bdb1.c:1559: error: `R_PREV' undeclared (first use in this function)
    bdb1.c:1561: error: `R_CURSOR' undeclared (first use in this function)
    bdb1.c:1564: error: `R_NOOVERWRITE' undeclared (first use in this function)
    *** Error code 1
    
    Stop in /usr/ports/databases/ruby-bdb1/work/bdb1-0.2.2/src.
    *** Error code 1
    
    Stop in /usr/ports/databases/ruby-bdb1/work/bdb1-0.2.2.
    *** Error code 1
    
    Stop in /usr/ports/databases/ruby-bdb1.

  2. #2
    Linux Engineer
    Join Date
    Aug 2004
    Posts
    826
    Try just pkg_add'ing portupgrade.
    Code:
    sudo pkg_add -r portupgrade
    That should take care of ruby automatically.

  3. #3
    Just Joined!
    Join Date
    Mar 2005
    Location
    IL, USA
    Posts
    5

    didn't quite work

    Hey, thanks for the help...that didn't quite work though (see below). I've also had a problem with /usr/sbin/sysinstall where it defaults to 5.2.1-RELEASE instead of 5.3-RELEASE. I'm running 5.2.1-RELEASE, but that folder doesn't exist on the FTP, so I've got to grab from 5.3-RELEASE. How do I specify this for portupgrade? Thanks!

    Code:
    -bash-2.05b$ sudo pkg_add -r portupgrade
    Password:
    Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.2.1-release/Latest/portupgrade.tbz: File unavailable (e.g., file not found, no access)
    pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.2.1-release/Latest/portupgrade.tbz' by URL

  4. $spacer_open
    $spacer_close

Posting Permissions

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