basename() in libgen
Rene Salmon
rsalmon at tulane.edu
Wed Apr 2 06:27:18 EST 2003
Hello,
I found this post on the list archives and I am having this exact same
problem.
I am trying to compile and install openssh-3.6p1 on an IRIX 6.5.18 box and
I get the "basename libgen" error message.
gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.
-I/usr/local/include -DSSHDIR=\"/etc/ssh\"
-D_PATH_SSH_PROGRAM=\"/usr/local/opt/openssh-3.6p1/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/opt/openssh-3.6p1/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/usr/local/opt/openssh-3.6p1/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/usr/local/opt/openssh-3.6p1/libexec/ssh-keysign\"
-D_PATH_SSH_PIDDIR=\"/etc/ssh\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\"
-DSSH_RAND_HELPER=\"/usr/local/opt/openssh-3.6p1/libexec/ssh-rand-helper\"
-DHAVE_CONFIG_H -c msg.c
gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.
-I/usr/local/include -DSSHDIR=\"/etc/ssh\"
-D_PATH_SSH_PROGRAM=\"/usr/local/opt/openssh-3.6p1/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/opt/openssh-3.6p1/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/usr/local/opt/openssh-3.6p1/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/usr/local/opt/openssh-3.6p1/libexec/ssh-keysign\"
-D_PATH_SSH_PIDDIR=\"/etc/ssh\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\"
-DSSH_RAND_HELPER=\"/usr/local/opt/openssh-3.6p1/libexec/ssh-rand-helper\"
-DHAVE_CONFIG_H -c progressmeter.c
In file included from progressmeter.c:66:
/usr/include/libgen.h:35: conflicting types for `basename'
openbsd-compat/basename.h:9: previous declaration of `basename'
gmake: *** [progressmeter.o] Error 1
I tried to apply the patch below on the configure.ac file but that did not
help I still get same errro message.
>Fixed with the patch below.
>
>--
>albert chin (china at thewrittenword.com)
>
>-- snip snip
>--- configure.ac.orig 2003-04-01 10:07:27.116989000 -0600
>+++ configure.ac 2003-04-01 10:41:59.273282000 -0600
>@@ -604,7 +583,7 @@
>
> dnl Checks for library functions. Please keep in alphabetical order
> AC_CHECK_FUNCS(\
>- arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy
>\
>+ arc4random __b64_ntop b64_ntop __b64_pton b64_pton bcopy \
> bindresvport_sa clock fchmod fchown freeaddrinfo futimes \
> gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \
> getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \
>@@ -617,6 +596,7 @@
> sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \
> )
>
>+AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME))
> AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP))
>
> dnl Make sure strsep prototype is defined before defining HAVE_STRSEP
Any help would be greatly apreciated. Thank you in advanced.
Rene
More information about the openssh-unix-dev
mailing list