pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/40809: converters/recode doesn't build on darwin (Mac OS X)



>Number:         40809
>Category:       pkg
>Synopsis:       converters/recode doesn't build on darwin (Mac OS X)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 28 15:45:00 +0000 2009
>Originator:     Edgar Fuß
>Release:        pkgsrc-2008Q4
>Organization:
Mathematisches Institut der Universität Bonn
>Environment:
>Description:
converters/recode doesn't build on Mac OS X because it brings its own GNU 
getopt and the sysbols collide with those in libc:

/usr/bin/ld: multiple definitions of symbol _getopt
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libc.dylib(getopt.So) 
definition of _getopt
../lib/libreco.a(getopt.o) definition of _getopt in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _opterr
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libc.dylib(getopt.So) 
definition of _opterr
../lib/libreco.a(getopt.o) definition of _opterr in section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _optind
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libc.dylib(getopt.So) 
definition of _optind
../lib/libreco.a(getopt.o) definition of _optind in section (__DATA,__data)
/usr/bin/ld: multiple definitions of symbol _optopt
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libc.dylib(getopt.So) 
definition of _optopt
../lib/libreco.a(getopt.o) definition of _optopt in section (__DATA,__data)
collect2: ld returned 1 exit status

This has probably happened with umptenth other pacakges before and maybe 
there's a standard way to fix this.

>How-To-Repeat:
cd converters/recode; bmake build
>Fix:



Home | Main Index | Thread Index | Old Index