Debian Package rebuild

Rebuild of the Debian archive with clang

"Missing symbols at link time" build failure(s)
clang 3.6.0
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 - 3.9.1 - 4.0.1 - 5.0 - 6.0 - 8.0.1 - 9.0.1 - 10.0.0 - 11.0.0 - 12.0.1 - 13.0.0
PackageVersionSupposed error messageFull log Bug report
abook 0.6.0~pre2-3filter.c:754: undefined reference to `field_id' Log 756536
adplug 2.2.1+dfsg3-0.1../src/.libs/libadplug.so: undefined reference to `OPL_CALC_RH' Log
afterstep 2.2.12-3asvector.c:290: undefined reference to `vector_find_data' Log
alsa-tools 1.0.28-1as10k1.c:524: undefined reference to `output_tram_line' Log 756805
asmon 0.71-5../wmgeneral/misc.c:(.text+0x26c): undefined reference to `list_cons' Log
autofs 5.0.8-2automount.c:1408: undefined reference to `dump_core' Log 757038
bandwidthd 2.0.1+cvs20090917-7bandwidthd.c:696: undefined reference to `Credit' Log 757040
bbrun 1.6-6misc.c:122: undefined reference to `list_cons' Log 757042
bcache-tools 1.0.7-1make-bcache.c:277: undefined reference to `crc64' Log
berusky2 0.10-3box.cpp:89: undefined reference to `mmalloc' Log
biococoa 2.2.2-2BCScoreMatrix.m:(.text+0x1fd): undefined reference to `objc_msg_lookup_super' Log
busybox 1:1.22.0-15tar.c:1180: undefined reference to `unpack_Z_stream' Log
bwm-ng 0.6-3.1bwm-ng.c:212: undefined reference to `get_iface_stats' Log 757167
cenon.app 4.0.2-1PerformanceMap.m:752: undefined reference to `objc_msg_lookup_super' Log
condor 8.2.3~dfsg.1-6ld: CMakeFiles/gce_gahp.dir/io_loop_pthread.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' Log
crimson 0.5.2-1path.h:76: undefined reference to `vtable for Path' Log
ddccontrol 0.4.2-11i2c-algo-bit.c:507: undefined reference to `readbytes' Log 757268
deborphan 1.7.28.8-0.1deborphan.c:378: undefined reference to `strhash' Log 757276
debram 1.0.3-0.2conv.c:131: undefined reference to `unlat1' Log 757277
einspline 0.9.2-2time_multi.c:107: undefined reference to `eval_UBspline_1d_s_vg' Log
eso-midas 13.09pl1.4-1ccdmosaic.c:224: undefined reference to `sorti' Log
eterm 0.9.6-1./.libs/libEterm.so: undefined reference to `blank_screen_mem' Log
excellent-bifurcation 0.0.20071015-6display_init.c:(.text+0x3f88): undefined reference to `xpart' Log 757406
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
garden-of-coloured-lights 1.0.8-2enemy.c:4421: undefined reference to `ypart' Log 757422
gargoyle-free 2011.1a-2terps/nitfol/op_math.c:(.text+0x2d): undefined reference to `set_var' Log 757426
genius 1.0.19-1gtkplot3d.c:2051: undefined reference to `roundint' 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
gnustep-back 0.24.0-4GSFunction.m:171: undefined reference to `free' Log
gnustep-base 1.24.7-1Unicode.m:2710: undefined reference to `getenv' Log
gnustep-dl2 0.12.0-13AdvancedEntityInspector.m:124: undefined reference to `__objc_exec_class' Log
hardinfo 0.5.1-1.4shell.c:1005: undefined reference to `strend' Log 757525
ifrit 3.4.2-1iscriptkit.h:735: undefined reference to `iArray::~iArray()' Log
irda-utils 0.9.18-12irlap.c:(.text+0x7f8): undefined reference to `parse_i_frame' Log
kbdd 0.6-4libkbdd.c:162: undefined reference to `_init_windows' Log
le 1.14.9-2user.cc:1630: undefined reference to `operator new(unsigned long)' Log
libmnl 1.0.3-5genl-family-get.c:194: undefined reference to `mnl_nlmsg_put_header' Log
libnetfilter-acct 1.0.2-1.1nfacct-get.c:52: undefined reference to `nfacct_nlmsg_build_hdr' Log
libnetfilter-cthelper 1.0.0-1nfct-helper-get.c:47: undefined reference to `nfct_helper_nlmsg_build_hdr' Log
libnetfilter-cttimeout 1.0.0-2nfct-timeout-add.c:35: undefined reference to `nfct_timeout_alloc' Log
librsync 0.9.7-10./.libs/librsync.so: undefined reference to `rs_appendflush' Log
lincity 1.13.1-11lcx11.c:471: undefined reference to `pixmap_index' Log 757859
lirc 0.9.0~pre1-1.2transmit.c:389: undefined reference to `send_code' Log
lives 2.2.8~ds0-1saveplay.c:1681: undefined reference to `count_virtual_frames' Log
log4cplus 1.0.4-1.2loggingserver.cxx:52: undefined reference to `log4cplus::helpers::Socket::~Socket()' Log
ltris 1.0.19-2bowl.c:(.text+0x297b): undefined reference to `delay_reset' Log
maq 0.7.1-5get_pos.c:33: undefined reference to `assemble_fill_buffer' Log
mgetty 1.1.36-2.1pbm2g3.c:(.text+0x349): undefined reference to `putwhitespan' Log
mirrormagic 2.0.2.0deb1-11text.c:63: undefined reference to `ClearRectangle' Log
mm3d 1.3.7-1.4keycfg.cc:(.text+0x8d41): undefined reference to `llvm_gcda_start_file' Log
mona 1.4-15-1../DFA/.libs/libmonadfa.so: undefined reference to `make_loop' Log
mz 0.40-1mops_checksums.c:(.text+0x11a): undefined reference to `mops_hton4' Log
nbd 1:3.8-4nbd-server.c:1326: undefined reference to `err_nonfatal' Log
netpipes 4.2-7faucet.c:191: undefined reference to `get_port' Log
netrek-client-cow 3.3.0-3redraw.c:90: undefined reference to `clearLocal' Log
nfft 3.2.3+dfsg-1nfft_benchomp.c:34: undefined reference to `nfft_get_omp_num_threads' Log
overgod 1.0-4actor.c:1018: undefined reference to `xpart' Log
padevchooser 0.9.4-1.1ld: browser.o: undefined reference to symbol 'pa_log_level_meta' 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
php5 5.6.7+dfsg-1main.c:1608: undefined reference to `DTRACE_REQUEST_STARTUP' Log
pmk 0.10.4-1detect_cpu.c:486: undefined reference to `x86_check_cpuid_flag' Log
ptouch-driver 1.3-8rastertoptch.c:816: undefined reference to `emit_feed_cut_mirror' Log
quarry 0.2.0.dfsg.1-4parse-list.c:891: undefined reference to `association_list_find_association' Log
rarcrack 0.2-1rarcrack.c:(.text+0x329): undefined reference to `savestatus' Log
ratbox-services 1.2.4+repack-2service.c:829: undefined reference to `string_to_array' Log
recode 3.6-21./.libs/librecode.so: undefined reference to `aliases_lookup' Log
redshift-plasmoid 1.0-1qglobal.h:1330: undefined reference to `RedshiftController::MinTemperature' Log
renaissance 0.9.0-4NSViewSize.m:238: undefined reference to `__objc_exec_class' Log
ruby2.1 2.1.5-1array.c:469: undefined reference to `RUBY_DTRACE_ARRAY_CREATE_ENABLED' Log
s51dude 0.3.1-1usbtiny.c:75: undefined reference to `print_error' Log
screader 1.8-7screader.c:(.text+0x17b3): undefined reference to `Auto_TTS' Log
sdlbasic 0.0.20070714-5SDLengine.c:267: undefined reference to `Mix_OpenAudio' Log
shell-fm 0.7+git20100414-2play.c:(.text+0x10b5): undefined reference to `scale' Log
sipsak 0.9.6-2.2helper.c:421: undefined reference to `srv_ruli' Log
slirp 1:1.0.17-7if.c:226: undefined reference to `slirp_remque' Log
sope 2.2.9-2NGPropertyListParser.m:285: undefined reference to `__stack_chk_fail' Log
squeak-plugins-scratch 1.4.0.2~svn.r83-2sqCamera-linux.c:(.text+0x2cd): undefined reference to `camIsOpen' Log
tabble 0.43-2add_stuff.c:335: undefined reference to `scaled_icon' Log
tcpcopy 0.6.3-2tc_router.c:32: undefined reference to `link_list_tail' Log
tcpick 0.2.1-6loop.c:101: undefined reference to `verify' Log
teeworlds 0.6.2+dfsg-2netban.h:181: undefined reference to `CNetBan::CBanPool::Reset()' Log
tinyscheme 1.41-1scheme.o:(.data+0x168): undefined reference to `is_macro' Log
trousers 0.3.13-3tcsps.c:595: undefined reference to `write_data' Log
tuxonice-userui 1.1+dfsg1.gc3bdd83-3render.c:560: undefined reference to `free' Log
uaputl 1.12-2uaputl.c:(.text+0x6399): undefined reference to `has_dup_channel' Log
udftools 1.0.0b3-14.3mkudffs.c:104: undefined reference to `query_lvidiu' Log
usermode 1.109-1userhelper.c:236: undefined reference to `powl' Log
uswsusp 1.0+20120915-6resume.c:471: undefined reference to `open_printk' Log
velvet 1.2.10+dfsg1-1run.c:245: undefined reference to `isCreateBinary' Log
vtun 3.0.3-2main.c:155: undefined reference to `clear_nat_hack_flags' Log
weplab 0.1.5-2bruteforce.c:211: undefined reference to `IncrementKeyOptimized' Log
whitedb 0.7.2-1./.libs/libwgdb.so: undefined reference to `wg_compare_and_swap' Log
wizznic 0.9.2-preview2+dfsg-1.1waveimg.c:(.text+0x161): undefined reference to `freadPixel' Log
wmcube 1.0.1-1misc.c:122: undefined reference to `list_cons' Log
wmifs 1.4-2misc.c:121: undefined reference to `list_cons' Log
wmmon 1.1+20131205-1../wmgeneral/misc.c:(.text+0x164): undefined reference to `list_cons' Log
wmppp.app 1.3.0+20140915-1misc.c:122: undefined reference to `list_cons' Log
wmressel 0.8-5misc.c:122: undefined reference to `list_cons' Log
wmtime 1.2-1misc.c:122: undefined reference to `list_cons' Log
xdms 1.3.2-6u_heavy.c:62: undefined reference to `decode_c' Log
xfce4-places-plugin 1.6.0-1support.c:155: undefined reference to `places_bookmark_action_create' Log
xjadeo 0.8.1-1display_x11.c:652: undefined reference to `stride_memcpy' Log
xl2tpd 1.3.6+dfsg-2control.c:1741: undefined reference to `check_control' Log
xmorph 1:20140707+nmu1loadsave_mesh.c:103: undefined reference to `showerr' Log
108 errors
Return to the list