[MacPorts] #62882: avrdude @6.3_2: fails to link libavrdude.1.dylib

MacPorts noreply at macports.org
Thu May 13 13:20:01 UTC 2021


#62882: avrdude @6.3_2: fails to link libavrdude.1.dylib
----------------------+---------------------
 Reporter:  cqexbesd  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.6.4
 Keywords:            |       Port:  avrdude
----------------------+---------------------
 avrdude fails at the linking stage when trying to make libavrdude.1.dylib:

 {{{
 Undefined symbols for architecture x86_64:
   "_avrdude_message", referenced from:
       _arduino_read_sig_bytes in libavrdude_la-arduino.o
       _avr_tpi_chip_erase in libavrdude_la-avr.o
       _avr_tpi_program_enable in libavrdude_la-avr.o
       _avr_read_byte_default in libavrdude_la-avr.o
       _avr_read in libavrdude_la-avr.o
       _avr_write_page in libavrdude_la-avr.o
       _avr_write_byte_default in libavrdude_la-avr.o
       ...
   "_elf32_getehdr", referenced from:
       _fileio in libavrdude_la-fileio.o
 }}}

 and so on - see attached for full output.

 Building by hand works (sudo -u macports env
 CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure &&
 sudo -u macports make in the MacPorts build directory). Looking at the
 different link lines, macports uses clang and building by hand is
 defaulting to gcc. Macports also uses -arch x86_64 twice and specifies
 -syslibroot which the successful build does not.

-- 
Ticket URL: <https://trac.macports.org/ticket/62882>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list