Re: Odd linker errors

From: Scott Long <scottl_at_samsco.org>
Date: Sun, 04 Jul 2004 01:57:44 -0600
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
Received on Sun Jul 04 2004 - 05:58:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:00 UTC