[Gluster-devel] ld: error: undefined symbol: basename_r

Unga unga888 at yahoo.com
Fri Feb 21 09:16:59 UTC 2020


Sorry to post again. My previous email was haywire'ed by Yahoo. 

Hi Gluster devs

I compiled GlusterFS ver. 7.3 cloned from github on FreeBSD 12.1.

In order to compile I had to modify configure.ac as follows:
- AM_INIT_AUTOMAKE([tar-pax foreign])
+ AM_INIT_AUTOMAKE([tar-pax foreign subdir-objects])

Compile develops following error:
gmake[3]: Entering directory 'glusterfsd/src'
  CC       glusterfsd.o
  CC       glusterfsd-mgmt.o
  CC       gf_attach.o
  CCLD     gf_attach
  CCLD     glusterfsd
ld: error: undefined symbol: basename_r
>>> referenced by glusterfsd.c:1711
>>>               glusterfsd.o:(parse_cmdline)

ld: error: undefined symbol: basename_r
>>> referenced by glusterfsd.c:2266
>>>               glusterfsd.o:(parse_cmdline)
cc: error: linker command failed with exit code 1 (use -v to see invocation)


At glusterfsd.c:1711 and glusterfsd.c:2266, it is basename is used, not basename_r.

Hope devs can fix and push to github, so that I can give it a try again.

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20200221/b5f9175f/attachment.html>


More information about the Gluster-devel mailing list