Opened 14 years ago

Closed 14 years ago

#28959 closed defect (duplicate)

db46 installation failed

Reported by: leandroal@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: blair (Blair Zajac)
Port: db46

Description (last modified by jmroot (Joshua Root))

Hi folks,

I'm trying to install db46 package as it is a dependency for many of applications I need to install. I have the problem shown below and I already tried every suggestion provided in others discussions list, including the one to rename the /usr/local directory, but no luck. Please, consider fix the problem and please let me know if I can help in anything:

(...)

/usr/bin/gcc-4.2 -c -I. -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -pipe -O2 -arch x86_64 -fno-strict-aliasing ../dist/../libdb_java/db_java_wrap.c -o db_java_wrap.o >/dev/null 2>&1
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
cd ./classes && jar cf ../db.jar ./com/sleepycat
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.2 -c -pipe -O2 -arch x86_64  -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers ../dist/../db_dump185/db_dump185.c
 /usr/bin/gcc-4.2 -c -pipe -O2 -arch x86_64 -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers ../dist/../db_dump185/db_dump185.c  -fno-common -DPIC -o .libs/db_dump185.o
../dist/../db_dump185/db_dump185.c: In function 'main':
../dist/../db_dump185/db_dump185.c:211: warning: assignment makes pointer from integer without a cast
../dist/../db_dump185/db_dump185.c:213: warning: assignment makes pointer from integer without a cast
../dist/../db_dump185/db_dump185.c:228: error: 'DB' has no member named 'seq'
../dist/../db_dump185/db_dump185.c:228: error: 'R_NEXT' undeclared (first use in this function)
../dist/../db_dump185/db_dump185.c:228: error: (Each undeclared identifier is reported only once
../dist/../db_dump185/db_dump185.c:228: error: for each function it appears in.)
../dist/../db_dump185/db_dump185.c:233: error: 'DB' has no member named 'seq'
../dist/../db_dump185/db_dump185.c: In function 'db_hash':
../dist/../db_dump185/db_dump185.c:261: error: 'DB' has no member named 'internal'
../dist/../db_dump185/db_dump185.c:263: error: 'DB' has no member named 'internal'
../dist/../db_dump185/db_dump185.c: In function 'db_btree':
../dist/../db_dump185/db_dump185.c:288: error: 'DB' has no member named 'internal'
make: *** [db_dump185.lo] Error 1
make: *** Waiting for unfinished jobs....
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/work/db-4.6.21/build_unix" && /usr/bin/make -j2 all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for db46): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for db46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

sh-3.2# port version
Version: 1.9.2

Thank you, Leandro.

Change History (5)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Cc: blair@… added; leandroal@… removed
Description: modified (diff)
Port: db46 added
Resolution: duplicate
Status: newclosed

Please remember to preview and use WikiFormatting, fill in the Port field, and cc the maintainer. You do not need to be in cc when you are the reporter.

This is a duplicate of #18113; please search before filing new tickets.

comment:2 Changed 14 years ago by leandroal@…

Ok, I already read the other ticket but there is no instructions explaining how to fix the problem. So, what I have to do?

comment:3 Changed 14 years ago by diego@…

Resolution: duplicate
Status: closedreopened

Hello, I've found several tickets reporting this same error and all closed without a real solution. The problem seems to appears when you've snow leopard updated to I don't know wich version.

In my case, I've received a new MBP that came with 10.6.7 so I don't have the option reported on some blogs that downgrading to the xcode to the one coming on the OSX install DVD. I've also tried almost every recommendation from other tickets that has any sense with no success. Finally, I've installed the port with the variant +no_java and it works for me, but it won't for anyone who need the java thing :-(

Leandro: You can do what I did if you don't need db46 java bindings

port install db46 +no_java

I'm not versed in java and I don't use any java stuff needing this port, but I thing this port is really broken and need to be fixed, Sadly I don't know how.

comment:4 Changed 14 years ago by leandroal@…

Diego,

I have tried to install this port using +no_java, but no luck too. So, I decided to debug the error and discovered that the db.h file referenced by the db46 source code is a wrong version installed in my computer. So, I have talked to the guys in the #macports and described the situation. I did not have time to discover why my db.h file installed in the /usr/includes was a wrong version, but I asked someone the in chat to send his db.h file. I then backed up my db.h and copy his db.h to /usr/includes. After this, I did port install db46 and voilá! I suspected that a port installed a wrong db.h file into my /usr/includes directory, causing this problem. Also, I don't know if this is the source of the problem of someone else, but I suppose to be, at least the includes paths used by the compiler have a wrong directory order, cause a wrong db.h be included during the compilation process.

I'm sure that this should be deeply investigated, because I have found people reporting this kind of problem since 2004, at least.

Hope that I helped you and please let me know any issue or real fix for this.

Thank you, Leandro.

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: reopenedclosed

This really is a duplicate. Reopen the original if you think it was resolved incorrectly.

Also, this has nothing to do with the other build failure caused by missing Java headers.

Note: See TracTickets for help on using tickets.