Re: db.h

Bernhard Walle <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo,

* Ralph Müller [15.05.2005 18:14]:
> 
> was den gcc angeht bin ich Anfänger.
> Ich versuche gerade slookup.c zu übersetzen (http://he.fi/slookup/)
> so wie im README angegeben. Also:
> 
>   $ make
>   gcc -Wall -Wstrict-prototypes -O3 -c slookup.c
>   slookup.c:40:16: db.h: Datei oder Verzeichnis nicht gefunden
>   make: *** [slookup.o] Fehler 1
> 
> Die angemeckerte Zeile steht in slookup.c so da:
> 
>   #include <db.h>
> 
> Ein "find / -name db.h -type f" erbrachte das Ergebnis, daß tatsächlich
> eine Datei diesen Namens existiert, im Pfad /usr/include/db1/db.h
> 
> Wie kann ich make auf diesen Pfad mit meiner db.h stupsen? (führen)

Entweder das Makefile so ändern, dass

  gcc -I/usr/include/db1 -Wall -Wstrict-prototypes -O3 -c slookup.c

aufgerufen wird. Allerdings glaube ich, dass du ein benötigtes Paket
nicht installiert hast. Bei mir (SuSE 9.2) gibt es das Paket db-devel,
das /usr/include/db.h enthält und das somit keine Änderung im Makefile
erforder.

> PS: Kennt jemand zufällig die Funktion dieser ominösen db.h?

Berkeley-Datenbank. file:///usr/share/doc/packages/db/index.html


Gruß,
Bernhard

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.