LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-22-2008, 08:01 AM   #1
jrella
LQ Newbie
 
Registered: Apr 2008
Posts: 21

Rep: Reputation: 0
compile errors


Can someone tell me what this means?

rogue:/opt/db1.85/db.1.85/PORT/linux # make
cc -c -D__DBINTERFACE_PRIVATE -O -I. -Iinclude -I../../hash ../../hash/hash.c
In file included from ../../hash/hash.c:55:
../../hash/hash.h:106: error: field ‘__errno_location’ declared as a function
../../hash/hash.c: In function ‘flush_meta’:
../../hash/hash.c:508: error: expected identifier before ‘(’ token
../../hash/hash.c: In function ‘hash_get’:
../../hash/hash.c:539: error: expected identifier before ‘(’ token
../../hash/hash.c: In function ‘hash_put’:
../../hash/hash.c:556: error: expected identifier before ‘(’ token
../../hash/hash.c:560: error: expected identifier before ‘(’ token
../../hash/hash.c: In function ‘hash_delete’:
../../hash/hash.c:577: error: expected identifier before ‘(’ token
../../hash/hash.c:581: error: expected identifier before ‘(’ token
../../hash/hash.c: In function ‘hash_seq’:
../../hash/hash.c:732: error: expected identifier before ‘(’ token
make: *** [hash.o] Error 1
rogue:/opt/db1.85/db.1.85/PORT/linux #
 
Old 04-22-2008, 08:36 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
What are you trying to compile?

You should not run make as root (except "make install").

You have a field declared as a function - this is a syntax error in the code.
You have a missing identifier in your hash_* functions. Check how those brackets are being used.
 
Old 04-22-2008, 08:55 AM   #3
jrella
LQ Newbie
 
Registered: Apr 2008
Posts: 21

Original Poster
Rep: Reputation: 0
I am trying to compile db1.85. This is still part of my effort to install gnome-libs, which keeps failing with the db1.85 compatibility mode error.

Unfortunately, I am not a programmer, so I don't know what fields and functions are in regards to compiling stuff.
 
Old 04-22-2008, 10:04 AM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Ahhh... well these errors may be due to changes in gcc since that code was written.
Nice try, but you will find that, although db1.85 would solve the 1.85-compat issue, it will introduce other issues due to 1.85 being very old.
 
Old 02-01-2010, 10:58 PM   #5
peidright
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by jrella View Post
Can someone tell me what this means?

rogue:/opt/db1.85/db.1.85/PORT/linux # make
cc -c -D__DBINTERFACE_PRIVATE -O -I. -Iinclude -I../../hash ../../hash/hash.c
In file included from ../../hash/hash.c:55:
../../hash/hash.h:106: error: field ‘__errno_location’ declared as a function
../../hash/hash.c: In function ‘flush_meta’:
../../hash/hash.c:508: error: expected identifier before ‘(’ token
../../hash/hash.c: In function ‘hash_get’:
../../hash/hash.c:539: error: expected identifier before ‘(’ token
../../hash/hash.c: In function ‘hash_put’:
../../hash/hash.c:556: error: expected identifier before ‘(’ token
../../hash/hash.c:560: error: expected identifier before ‘(’ token
../../hash/hash.c: In function ‘hash_delete’:
../../hash/hash.c:577: error: expected identifier before ‘(’ token
../../hash/hash.c:581: error: expected identifier before ‘(’ token
../../hash/hash.c: In function ‘hash_seq’:
../../hash/hash.c:732: error: expected identifier before ‘(’ token
make: *** [hash.o] Error 1
rogue:/opt/db1.85/db.1.85/PORT/linux #
The member of htab 'errno' is be expanded as __errno_location by gcc?

i have modifyed all ->errno to ->dbm_errno in hash.c ndbm.c,it hash work ok.
 
Old 02-02-2010, 01:10 AM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
well done - yes you can sometimes identify what is different and, if you are lucky, it isn't much. Of course, using up to date source would also work.

If you find an open source project which has been abandoned or left undeveloped for ages - but you can make it better - why not take it over or submit a patch to the original maintainer?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
QT compile errors TrAvIkK Linux - Software 3 12-24-2006 07:48 AM
compile errors. DrunkenDisciple Linux - Software 3 11-29-2005 12:11 AM
c++ compile errors using g++ ttumelty Programming 5 09-08-2005 01:58 PM
compile errors davidleroux1 Programming 4 05-10-2005 10:03 PM
C++ compile errors Palamides Programming 1 03-09-2005 06:28 AM


All times are GMT -5. The time now is 03:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration