pkgsrc-Bugs archive

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

pkg/44609: multimedia/xvidcore fails to link on Solaris

>Number:         44609
>Category:       pkg
>Synopsis:       multimedia/xvidcore fails to link on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 20 04:00:00 +0000 2011
>Originator:     Stefan
>Release:        Sparc/Solaris 9
multimedia/xvidcore 2010Q4

building fails in the linking phase:

ld: warning: option -o appears more than once, first setting taken
/usr/ccs/bin/ld: illegal option -- -
/usr/ccs/bin/ld: illegal option -- v

I think ld complains about this option:


From the Makefile

.if !empty(PKGSRC_COMPILER:Msunpro)
CFLAGS+=                -D__inline=inline
SUBST_CLASSES+=         ld
SUBST_MESSAGE.ld=       Fixing linker arguments for Solaris
SUBST_STAGE.ld=         pre-configure
SUBST_FILES.ld=         configure
SUBST_SED.ld=           -e 
SUBST_SED.ld+=          -e "s|-Wl,--version-script=libxvidcore.ld||"

I use gcc with sun's linker and assembler (I assume most gcc users on Solaris 
use sun's linker and assembler). Using the above definitions(without the 
CFLAGS) made it build successfully.

I left out the CFLAGS definition as this has nothing to do with my linker issue.

Home | Main Index | Thread Index | Old Index