Software > Programmieren, Kompilieren
Sendmail kompilieren
signal_15:
Hi,
und wie versprochen, ein fehler beim kompilieren von sendmail.
--- Code: ---...
...
ln -f -s ../../include/sm/os/sm_os_sunos.h sm_os.h
gcc -M -I. -I../../sendmail -I../../include -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=20900 -DNETINET6 -DNOT_SENDMAIL vacation.c >> Makefile
make[1]: Leaving directory `/Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/vacation'
Making in /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/vacation
make[1]: Entering directory `/Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/vacation'
gcc -O -I. -I../../sendmail -I../../include -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=20900 -DNETINET6 -DNOT_SENDMAIL -I/usr/local/include -I/usr/include -c -o vacation.o vacation.c
gcc -o vacation vacation.o /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/libsmdb/libsmdb.a /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/libsmutil/libsmutil.a /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/libsm/libsm.a -lresolv -lsocket -lnsl
Undefined first referenced
symbol in file
dbm_pagfno /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/libsmdb/libsmdb.a(smndbm.o)
dbm_dirfno /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/libsmdb/libsmdb.a(smndbm.o)
ld: fatal: Symbol referencing errors. No output written to vacation
collect2: ld returned 1 exit status
make[1]: *** [vacation] Error 1
make[1]: Leaving directory `/Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/vacation'
make: *** [all] Error 2
ismine/Download/sendmail-8.14.3$
--- Ende Code ---
weiss einer rat?
ct,
dornroeschen:
dbm_pagfno ist eine ndbm Funktion, die in /usr/include/ndbm.h als Define auf eine andere Funktion gemappt wird. Ich vermute daher, dass in Deinem Include Pfad ein anderes ndbm.h liegt (/usr/local/include ?), das vor /usr/include/ndbm.h gefunden wird. Du musst dafür sorgen, dass statt dessen /usr/include/ndbm.h eingefügt wird.
Rainer
signal_15:
@Reiner
ok. werde ich gleich mal ausprobieren.
ct,
signal_15:
kann mann denn beim kompilieren von sendmail keinen prefix setzen? ich will das ding nicht unter /usr/sbin haben.
ct,
signal_15:
nee, '/usr/local/include' rauslassen hat keine besserung gebracht.
--- Code: ---gcc -O -I. -I../../sendmail -I../../include -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=20900 -DNETINET6 -DNOT_SENDMAIL -I/usr/include -c -o vacation.o vacation.c
gcc -o vacation vacation.o /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/libsmdb/libsmdb.a /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/libsmutil/libsmutil.a /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/libsm/libsm.a -lresolv -lsocket -lnsl
Undefined first referenced
symbol in file
dbm_pagfno /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/libsmdb/libsmdb.a(smndbm.o)
dbm_dirfno /Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/libsmdb/libsmdb.a(smndbm.o)
ld: fatal: Symbol referencing errors. No output written to vacation
collect2: ld returned 1 exit status
make[1]: *** [vacation] Error 1
make[1]: Leaving directory `/Download/sendmail-8.14.3/obj.SunOS.5.9.sun4/vacation'
make: *** [all] Error 2
--- Ende Code ---
ct,
Navigation
[0] Themen-Index
[#] Nächste Seite
Zur normalen Ansicht wechseln