Debian Package rebuild

Rebuild of the Debian archive with clang

"Missing symbols at link time" build failure(s)
clang 3.1
Return to the list
Undefined references can have different reasons. Here are some:
1) The most common issue is about the the inline behavior. clang is following by default the C99 standard while gcc promote GNU89.
The following code will build with gcc but fails with:
main.c:(.text+0x12): undefined reference to `xrealloc'
// the right declaration in C99 is:
// static inline void xrealloc() 
inline void xrealloc() { }

int main(){
    xrealloc();
    return 1;
}
besides the static, the command:
clang -std=gnu89 -o plop.exe main.c
will fix the issue.
See the clang website for more information.

2) An other issue is that gcc is that gcc optimizes the call to some functions at -O0 (causing -lm to be not necessary)
#include <math.h>
// Works: gcc -O0 -o plop plop.c 
// Fails:  clang -O0 -o plop plop.c
// Works: clang -lm -O0 -o plop plop.c
int main() {
    double plop = fabs(2.0);
    return 1;
}
3) There are also some rare issues with the --relocatable/-r linker flag.
Versions: 2.9 - 3.0 - 3.1 - 3.2 - 3.3 - 3.4 - 3.4.2 - 3.5.0 - 3.6.0 - 3.8.1
PackageVersionSupposed error messageFull log Bug report
abook 0.6.0~pre2-3filter.c:754: undefined reference to `field_id' Log 756536
ace 6.0.3-5.obj/FTP_Simple_exec.o:(.rodata._ZTV21My_FTP_RequestHandler[_ZTV21My_FTP_RequestHandler]+0xb0): undefined reference to `ACE::IOS::StreamInterceptorBase >::before_write(char const*, long)' Log
adplug 2.2.1+dfsg1-1../src/.libs/libadplug.so: undefined reference to `OPL_CALC_RH' Log
afterstep 2.2.11-7asvector.c:299: undefined reference to `vector_move_data_up' Log
alsa-tools 1.0.25-2extract_ac3.c:251: undefined reference to `next_32_bits' Log 756805
amide 1.0.1-1ui_study_cb.c:554: undefined reference to `amitk_space_b2s' Log
apparmor 2.7.103-3parser_interface.c:424: undefined reference to `sd_write_name' Log 756807
aqsis 1.8.1-3aqsl.cpp:86: undefined reference to `ArgParse::ArgParse()' Log
asmon 0.71-5../wmgeneral/misc.c:(.text+0x26c): undefined reference to `list_cons' Log
audacity 2.0.0-1fftlib.c:1050: undefined reference to `bfstages' Log 757531
autofs 5.0.6-2automount.c:1408: undefined reference to `dump_core' Log 757038
bandwidthd 2.0.1+cvs20090917-5graph.c:73: undefined reference to `HostIp2CharIp' Log 757040
bbrun 1.6-6misc.c:122: undefined reference to `list_cons' Log 757042
bwa 0.6.1-1bwt.c:71: undefined reference to `bwt_occ' Log
bwm-ng 0.6-3.1bwm-ng.c:212: undefined reference to `get_iface_stats' Log 757167
cmph 0.9-1./.libs/libcmph.so: undefined reference to `__jenkins_hash_vector' Log
collectd 5.1.0-1conftest.c:55: undefined reference to `shl_load' Log 758481
covered 0.7.10-1lxt.c:153: undefined reference to `lxt2_rd_get_num_facs' Log 757263
crm114 20100106-3crm_svm_matrix.h:252: undefined reference to `vector_set' Log 757266
cups-filters 1.0.18-2dynstring.c:98: undefined reference to `dyn_vprintf' Log
ddccontrol 0.4.2-10i2c-algo-bit.c:507: undefined reference to `readbytes' Log 757268
deborphan 1.7.28.7deborphan.c:179: undefined reference to `xmalloc' Log 757276
debram 1.0.3-0.2conv.c:131: undefined reference to `unlat1' Log 757277
dialign-t 1.0.2-2diag.c:1845: undefined reference to `find_diags_dialign' Log 757281
diet 2.8.0-1../utils/DAGDA/libDIET_Dagda.so.2.8: undefined reference to `operator>>=(short, cdrStream&)' Log
ebview 0.3.6.2-1.2dump.c:123: undefined reference to `isjisp' Log
efibootmgr 0.5.4-2disk.c:154: undefined reference to `get_scsi_pci' Log 753644
eggdrop 1.6.20-1match.c:436: undefined reference to `cron_matchfld' Log 757400
eterm 0.9.6-1./.libs/libEterm.so: undefined reference to `posix_get_pty' Log
etw 3.6+svn140-3loops.c:284: undefined reference to `HandleControl' Log
excellent-bifurcation 0.0.20071015-5display_init.c:(.text+0x3e89): undefined reference to `xpart' Log 757406
fcitx 1:4.2.4.1-2Fcitx-1.0.o:(.data+0x8): undefined reference to `fcitx_input_method_get_type' Log
flasm 1.62-6lex.yy.c:(.text+0xc7e): undefined reference to `newLine' Log
flow-tools 1:0.68-12.1ftfil.c:3094: undefined reference to `eval_match_src_as' Log 757408
freecdb 0.75cdbmake.c:59: undefined reference to `getch' Log 757409
freerdp 1.0.1-1../../libfreerdp-core/libfreerdp-core.so.1.0.1: undefined reference to `update_read_delta_points' Log
ganeti 2.5.1-1(.text+0x1d1): undefined reference to `base_GHCziStable_StablePtr_con_info' Log
garden-of-coloured-lights 1.0.8-1enemy.c:4421: undefined reference to `ypart' Log 757422
gargoyle-free 2011.1-2terps/nitfol/op_math.c:(.text+0x2d): undefined reference to `set_var' Log 757426
genius 1.0.14-1gtkplot3d.c:1749: undefined reference to `roundint' Log
gimp 2.8.0-2gimp.c:256: undefined reference to `xcf_init' Log
glade-3 3.6.7-2glade-xml-utils.c:893: undefined reference to `g_module_open' Log
gnac 0.2.4-1profiles/gnac-profiles-default.c:(.text+0x1ac): undefined reference to `libgnac_critial_real' Log
gngb 20060309-3interrupt.c:237: undefined reference to `get_nb_spr' Log 757486
gnokii 0.6.30+dfsg-1xgnokii.c:1187: undefined reference to `GUI_HideAbout' Log 757494
gnudatalanguage 0.9.2-2plotting_xyouts.cpp:260: undefined reference to `plP_mmpcy' Log
hardinfo 0.5.1-1.2shell.c:1005: undefined reference to `strend' Log 757525
hlbr 1.7.2-2url.c:56: undefined reference to `isencoded' Log
html-xml-utils 6.1-1hxindex.c:375: undefined reference to `min' Log 757816
idjc 0.8.7-2conftest.c:57: undefined reference to `sqrt' Log
irda-utils 0.9.18-12irlap.c:(.text+0x4f6): undefined reference to `parse_i_frame' Log
jackd2 1.9.8~dfsg.4+20120529git007cdc37-1../common/memops.c:(.text+0x147c): undefined reference to `fast_rand' Log 757820
jfbterm 0.4.7-9vterm.c:1058: undefined reference to `tpen_off_all_attribute' Log
kbdd 0.6-4libkbdd.c:301: undefined reference to `_kbdd_group_names_initialize' Log
kdevelop 4:4.3.1-3CMakeFiles/kdev4cppduchain.dir/declarationbuilder.o:(.data.rel.ro._ZTVN3Cpp26SpecialTemplateDeclarationIN8KDevelop19FunctionDeclarationEEE[_ZTVN3Cpp26SpecialTemplateDeclarationIN8KDevelop19FunctionDeclarationEEE]+0xa8): undefined reference to `KDevelop::MergeAbstractFunctionDeclaration::data() const' Log
knot 1.0.6-1lex.yy.c:881: undefined reference to `yywrap' Log
latrine 0.10.2-1latrine.c:185: undefined reference to `MALLOC' Log
lftp 4.3.7-1PtyShell.cc:190: undefined reference to `operator new(unsigned long)' Log
libao 1.1.0-2conftest.c:57: undefined reference to `shl_load' Log
libewf 20100226-1../libewf/.libs/libewf.so: undefined reference to `libuna_base64_triplet_copy_from_byte_stream' Log
libfreenect 1:0.1.2+dfsg-6../lib/libfreenect.so.0.1.2: undefined reference to `unpack_8_pixels' Log
libgsf 1.14.21-2.1../../gsf-gnome/gsf-output-bonobo.c:(.text+0x2e8): undefined reference to `gsf_output_set_error' Log
liblqr 0.4.1-2lqr_energy.c:(.text+0xbc): undefined reference to `lqr_pixel_get_norm' Log 757832
libmnl 1.0.3-3genl-family-get.c:194: undefined reference to `mnl_nlmsg_put_header' Log
libnetfilter-cttimeout 1.0.0-1nfct-timeout-add.c:35: undefined reference to `nfct_timeout_alloc' Log
libopenusb 1.1.0-2devices.c:(.text+0x1136): undefined reference to `openusb_le16_to_cpu' Log
libpcapnav 0.8-1pcapnav.c:(.text+0x10dd): undefined reference to `fabs' Log
librsync 0.9.7-9./.libs/librsync.so: undefined reference to `rs_appendflush' Log
libupnp4 1.8.0~svn20100507-1.1./.libs/libupnp4.so: undefined reference to `get_content_type' Log
lincity 1.13.1-10lcx11.c:471: undefined reference to `pixmap_index' Log 757859
lirc 0.9.0~pre1-1transmit.c:389: undefined reference to `send_code' Log
lives 1.6.1~ds1-1saveplay.c:1408: undefined reference to `count_virtual_frames' Log
lldpad 0.9.44-1lldp_8021qaz_cmds.c:394: undefined reference to `get_prio_map' Log
logservice 2.7-1libLogForwarderUtils.so.2: undefined reference to `operator<<=(short&, cdrStream&)' Log
lrzip 0.608-2runzip.c:351: undefined reference to `clear_tmpinbuf' Log
ltris 1.0.18-1bowl.c:(.text+0x2a75): undefined reference to `delay_reset' Log
luminance-hdr 2.2.1-3libraw_r.so: undefined reference to `GOMP_parallel_start' Log
lxpanel 0.5.10-1configurator.c:1302: undefined reference to `generic_config_dlg_save' Log
mailutils 1:2.99.97-2python.c:31: undefined reference to `log_to_stderr' Log
maq 0.7.1-5get_pos.c:33: undefined reference to `assemble_fill_buffer' Log
mercator 0.3.0-2../Mercator/.libs/libmercator-0.3.so: undefined reference to `WFMath::AxisBox<2> WFMath::BoundingBox<2, std::vector>(std::vector, std::allocator > const&)' Log
meterbridge 0.9.2-11linedraw.c:64: undefined reference to `set_rgba' Log
mgetty 1.1.36-1.6pbm2g3.c:(.text+0x251): undefined reference to `putwhitespan' Log
minidlna 1.0.24+dfsg-1tagutils-asf.c:271: undefined reference to `le32_to_cpu' Log
mirrormagic 2.0.2.0deb1-10gadgets.c:182: undefined reference to `ClearRectangle' Log
mm3d 1.3.7-1.4filedatasource.cc:(.text+0x737): undefined reference to `llvm_gcda_start_file' Log
mona 1.4-13-3../DFA/.libs/libmonadfa.so: undefined reference to `make_loop' Log
mono 2.10.8.1-4mini.c:2481: undefined reference to `mono_jit_tls' Log
mpclib 0.9-4set_x.c:92: undefined reference to `creal' Log
mpich 1.2.7-10ad_hints.c:(.text+0x2b3): undefined reference to `PMPI_Info_get' Log
mz 0.40-1mops_checksums.c:(.text+0x121): undefined reference to `mops_hton4' Log
netpipes 4.2-6faucet.c:192: undefined reference to `get_port' Log
netrek-client-cow 3.3.0-3redraw.c:90: undefined reference to `clearLocal' Log
nexus 4.2.1-svn1614-1data_util.cpp:329: undefined reference to `std::string nxsum::toString(double)' Log
nfdump 1.6.6-1nf_common.c:1877: undefined reference to `format_number' Log
nvtv 0.4.7-7tv_nv.c:581: undefined reference to `unlockCrtNv' Log
oidentd 2.0.8-4oidentd_user_db.c:99: undefined reference to `randval' Log
omniorb-dfsg 4.1.6-2../../../lib/libomniORB4.so: undefined reference to `operator>>=(unsigned short, cdrStream&)' Log
opencc 0.3.0-3opencc.c:31: undefined reference to `opencc_open' Log
opensm 3.2.6-20090317-2.1osmtest.c:3889: undefined reference to `osmtest_path_rec_key_get' Log
overgod 1.0-1.1display.c:2094: undefined reference to `ypart' Log
owfs 2.8p15-1libow.so: undefined reference to `my_rwlock_write_lock' Log
pads 1.2-11output.c:148: undefined reference to `find_asset' Log
pcsxr 1.9.92-4psxinterpreter.c:399: undefined reference to `doBranch' Log
phasex 0.12.0+m1-6conftest.c:95: undefined reference to `atan2f' Log
pike7.8 7.8.352-dfsg-5pike_search.o:(.rodata+0x368): undefined reference to `memchr_search00' Log
pmk 0.10.4-1detect_cpu.c:486: undefined reference to `x86_check_cpuid_flag' Log
pork 0.99.8.1-2.1pork_aim.c:1803: undefined reference to `screen_cmd_output' Log
powernowd 1.00-2powernowd.c:(.text+0x1888): undefined reference to `decide_speed' Log
pqiv 0.12-1pqiv.c:1792: undefined reference to `doJumpDialog' Log
primaxscan 0.93beta3-10primax_scan.c:549: undefined reference to `init_timer' Log
pspp 0.7.9+git20120319-1| /«BUILDDIR»/pspp-0.7.9+git20120319/conftest.c:64: undefined reference to `shl_load' Log
ptouch-driver 1.3-3rastertoptch.c:1519: undefined reference to `flush_rle_buffer' Log
pyxplot 0.8.4-5ppl_userspace.c:1129: undefined reference to `DataFile_UsingConvert_FetchColumnByNumber' Log
qemu-kvm 1.0+dfsg-11qemu-conf--32437-.c:2: undefined reference to `pthread_create' Log
quarry 0.2.0.dfsg.1-4parse-list.c:891: undefined reference to `association_list_find_association' Log
raincat 1.1-3(.text+0x1d1): undefined reference to `base_GHCziStable_StablePtr_con_info' Log
ratbox-services 1.2.4-2service.c:829: undefined reference to `string_to_array' Log
rdkit 201203-2testDict.cpp:(.text._ZN5RDKit4Dict6setValISt6vectorIS2_IiSaIiEESaIS4_EEEEvRKSsRT_[_ZN5RDKit4Dict6setValISt6vectorIS2_IiSaIiEESaIS4_EEEEvRKSsRT_]+0xc5): undefined reference to `boost::any RDKit::Dict::toany >, std::allocator > > > >(std::vector >, std::allocator > > >) const' Log
recode 3.6-20./.libs/librecode.so: undefined reference to `aliases_lookup' Log
redhat-cluster 3.0.12-3.1main.c:(.text+0xb8f): undefined reference to `get_time' Log
reiserfsprogs 1:3.6.21-1prints.c:623: undefined reference to `misc_device_rdev' Log
rivet 1.8.0-1conftest.c:62: undefined reference to `shl_load' Log
rkward 0.5.7-2rkstructuregetter.cpp:194: undefined reference to `R_data_class(SEXPREC*, Rboolean)' Log
rrep 1.3.3-2rrep.c:230: undefined reference to `write_replacement' Log
s3d 0.2.2-8main.c:501: undefined reference to `s3d_init' Log
s51dude 0.2.0-1.1usbtiny.c:73: undefined reference to `print_error' Log
sam2p 0.49.1-1conftest.cc:(.text+0x32): undefined reference to `operator new(unsigned long)' Log
samtools 0.1.18-1bam_sort.c:309: undefined reference to `__ks_insertsort_sort' Log
sanlock 2.2-1wdmd_client.c:37: undefined reference to `wdmd_connect' Log
screader 1.8-7screader.c:(.text+0x1583): undefined reference to `Auto_TTS' Log
sdlbasic 0.0.20070714-4SDLengine.c:267: undefined reference to `Mix_OpenAudio' Log
shell-fm 0.7+git20100414-1play.c:(.text+0x104f): undefined reference to `scale' Log
shotwell 0.12.3-1libraw.so: undefined reference to `GOMP_parallel_start' Log
sipsak 0.9.6-2.1helper.c:421: undefined reference to `srv_ruli' Log
slirp 1:1.0.17-6if.c:226: undefined reference to `slirp_remque' Log
snort 2.9.2.2-2spo_database.c:3251: undefined reference to `mysql_close' Log
speedy-cgi-perl 2.22-13speedy_backend_main.c:219: undefined reference to `speedy_file_set_state' Log
squashfs-tools 1:4.2-4mksquashfs.c:(.text+0x6b69): undefined reference to `add_dir_entry' Log
squeak-plugins-scratch 1.4.0.2~svn.r83-1sqCamera-linux.c:(.text+0x2dd): undefined reference to `camIsOpen' Log
tabble 0.43-1add_stuff.c:335: undefined reference to `scaled_icon' Log
tango 7.2.6+dfsg-13libtango.so: undefined reference to `operator>>=(short, cdrStream&)' Log
tcpick 0.2.1-6loop.c:101: undefined reference to `verify' Log
tcsh 6.18.01-2| /«PKGBUILDDIR»/conftest.c:20: undefined reference to `crypt' Log
terminatorx 3.84-2tX_dial.c:292: undefined reference to `gtk_tx_dial_draw' Log
tinyscheme 1.37-3.1scheme.o:(.data.rel+0x168): undefined reference to `is_macro' Log
tiobench 0.3.3-5tiotest.c:1191: undefined reference to `crc32' Log
tuxonice-userui 1.1-1parse.c:418: undefined reference to `strcmp' Log
uaputl 1.12-2uaputl.c:(.text+0x5fea): undefined reference to `has_dup_channel' Log
udftools 1.0.0b3-14.2mkudffs.c:104: undefined reference to `query_lvidiu' Log
usermode 1.109-1userhelper.c:236: undefined reference to `powl' Log
uswsusp 1.0+20110509-2resume.c:468: undefined reference to `open_printk' Log
velvet 1.2.03~nozlibcopy-1src/run.c:(.text+0x3d2): undefined reference to `isCreateBinary' Log
virtuoso-opensource 6.1.4+dfsg1-1scn3.l:508: undefined reference to `lex_hash_kw' Log
weplab 0.1.5-2bruteforce.c:211: undefined reference to `IncrementKeyOptimized' Log
whowatch 1.6.0a-2screen.c:232: undefined reference to `scr_line' Log
wiggle 0.8-2merge2.c:338: undefined reference to `isolate_conflicts' Log
wizznic 0.9.2-preview2+dfsg-1waveimg.c:(.text+0x171): undefined reference to `freadPixel' Log
wmifs 1.3b1-20misc.c:122: undefined reference to `list_cons' Log
wmitime 0.3-11misc.c:122: undefined reference to `list_cons' Log
wmmon 1.1+20120402-1../wmgeneral/misc.c:(.text+0x154): undefined reference to `list_cons' Log
wmppp.app 1.3.0-8misc.c:122: undefined reference to `list_cons' Log
wmressel 0.8-5misc.c:122: undefined reference to `list_cons' Log
wmtime 1.0b2-10../wmgeneral/misc.c:(.text+0x154): undefined reference to `list_cons' Log
xdms 1.3.2-4u_heavy.c:62: undefined reference to `decode_c' Log
xfce4-places-plugin 1.3.0-1support.c:159: undefined reference to `places_bookmark_action_create' Log
xjadeo 0.6.4-1xjadeo-midi.o:(.rodata+0xb8): undefined reference to `as_midi_close' Log
xl2tpd 1.3.1+dfsg-1control.c:(.text+0x241d): undefined reference to `check_control' Log
xmorph 1:20090926loadsave_mesh.c:103: undefined reference to `showerr' Log
xqf 1.0.5-2config.c:297: undefined reference to `get_debug_level' Log
yorick 2.2.02+dfsg-3task.c:1662: undefined reference to `p_qclear' Log
171 errors
Return to the list