Compiling Netatalk 2.0.3
Dene Stringfellow
spacemonkey at ridgedale.co.uk
Thu May 26 03:33:21 MDT 2005
Joseph,
This is where I've got to with building the source for netatalk 1.6.4:
In the resulting log file I found the following (- is this what I'm
looking for relating to ./configure?):
configure:2410: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --disable-libunwind-exceptions --with-system-zlib
--enable-__cxa_atexit --host=ppc64-yellowdog-linux
--build=ppc64-yellowdog-linux --target=ppc64-yellowdog-linux
--with-cpu=default32 --enable-biarch
configure:4733: g++ -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --disable-libunwind-exceptions --with-system-zlib
--enable-__cxa_atexit --host=ppc64-yellowdog-linux
--build=ppc64-yellowdog-linux --target=ppc64-yellowdog-linux
--with-cpu=default32 --enable-biarch
configure:5421: g77 -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --disable-libunwind-exceptions --with-system-zlib
--enable-__cxa_atexit --host=ppc64-yellowdog-linux
--build=ppc64-yellowdog-linux --target=ppc64-yellowdog-linux
--with-cpu=default32 --enable-biarch
USE_COBALT_FALSE=''
USE_COBALT_TRUE='#'
USE_DHX_FALSE='#'
USE_DHX_TRUE=''
USE_KERBEROS_FALSE=''
USE_KERBEROS_TRUE='#'
USE_NETBSD_FALSE=''
USE_NETBSD_TRUE='#'
USE_PAM_FALSE='#'
USE_PAM_SO_FALSE='#'
USE_PAM_SO_TRUE=''
USE_PAM_TRUE=''
USE_PGP_FALSE=''
USE_PGP_TRUE='#'
USE_REDHAT_FALSE=''
USE_REDHAT_TRUE='#'
USE_SHADOWPW_FALSE='#'
USE_SHADOWPW_TRUE=''
USE_SUSE_FALSE=''
USE_SUSE_TRUE='#'
USE_TRU64_FALSE=''
USE_TRU64_TRUE='#'
These are the errors kicked up in the process of the build:
conftest.c:2: error: syntax error before "me"
conftest.cc:26: error: `exit' undeclared (first use this function)
conftest.cc:26: error: (Each undeclared identifier is reported only once
for
each function it appears in.)
configure:4950: $? = 1
configure: failed program was:
| /* confdefs.h. */
conftest.c: In function `main':
conftest.c:91: error: too many arguments to function `setpgrp'
configure:23766: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
In file included from conftest.c:119:
/usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/include/varargs.h:4:2:
#error "GCC no longer implements <varargs.h>."
/usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/include/varargs.h:5:2:
#error "Revise your code to use <stdarg.h>."
configure:23934: $? = 1
configure: failed program was:
| /* confdefs.h. */
In file included from conftest.c:85:
/usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/include/varargs.h:4:2:
#error "GCC no longer implements <varargs.h>."
/usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/include/varargs.h:5:2:
#error "Revise your code to use <stdarg.h>."
configure:23977: $? = 1
configure: failed program was:
| /* confdefs.h. */
configure:24289: checking for sys_nerr
configure:24311: gcc -o conftest -O2 -g -pipe -fsigned-char
-fsigned-char conftest.c -lnsl -ldl -lcrypt >&5
/tmp/ccj2w3DD.o(.text+0x2): In function `main':
/usr/src/yellowdog/BUILD/netatalk-1.6.4/conftest.c:90: warning:
`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
conftest.c:7: error: storage size of `foo' isn't known
configure:26190: $? = 1
configure: failed program was:
|
| #include <sys/socket.h>
| #include <asm/types.h>
| #include <linux/atalk.h>
|
| int main() {
| struct atalk_addr foo;
|
| return 0;
| }
|
In addition I checked what I had installed against a configure script
file that I got from a member post from the Netatalk list:
Compile Script:
# cat compile_neta
./configure \
--enable-overwrite \
--prefix=/usr \
--exec-prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--enable-redhat \
--enable-timelord \
--enable-cups \
--with-did=cnid \
--with-db3=/usr \
--with-pam \
--with-shadow \
--with-tcp-wrappers \
--with-ssl-dir=/usr \
--enable-fhs \
--enable-krb4-uam \
--enable-krbV-uam \
# --enable-debug \
# --enable-srvloc \
Installed:
$ rpm -q db4
db4-4.2.52-3.1.ydl.1
$ rpm -q pam
pam-0.77-40
$ rpm -q tcp-wrappers
package tcp-wrappers is not installed
$ rpm -q cnid
package cnid is not installed
$ rpm -q shadow
package shadow is not installed
$ rpm -q db3
package db3 is not installed
$
I presume I need to be using --with-db4=/usr \ in the script.
Am I on the right track here?
Thanks again and BFN.
Dene Stringfellow
More information about the yellowdog-general
mailing list