Odd linker errors
Scott Long
scottl at samsco.org
Sun Jul 4 00:58:03 PDT 2004
Kris Kennaway wrote:
> A number of ports are starting to fail with errors like:
>
> net/clusterit:
>
>
>>cc -O -pipe -DCLUSTERS -o dsh dsh.o ../common/common.o
>>dsh.o(.text+0x86): In function `main':
>>: undefined reference to `malloc_options'
>
The addition of files/patch-dsh-dsh.c seems to be triggering this.
It appears to declare the 'malloc_options' symbol. Looking at stdlib.h,
the real name should be '_malloc_options' (and including stdlib.h is the
better way to get this declaration). This is also documented correctly
in the malloc(2) manpage.
>
> net/mopd:
>
>
>>file.o(.text+0x623): In function `GetAOutFileInfo':
>>: undefined reference to `le32toh'
>>file.o(.text+0x63b): In function `GetAOutFileInfo':
>>: undefined reference to `le32toh'
>
I can't reproduce this here. However, netbooting a VAX probably isn't
a terribly common occurrance these days.
>
> math/grace:
>
>
>>plotone.o(.text+0x19f): In function `do_hardcopy':
>>: warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
>>pdfdrv.o(.text+0x2f1): In function `pdfinitgraphics':
>>: undefined reference to `PDF_open_fp'
>
This one gives me:
===> Registering installation for pdflib-5.0.3_1
===> Returning to build of grace-5.1.14_3
Error: shared library "pdf.7" does not exist
*** Error code 1
Stop in /usr/ports/math/grace.
Note that grace/files/patch-ai was recently removed, but I'm not sure if
it makes a difference.
Scott
More information about the freebsd-current
mailing list