code logs -> 2020 -> Fri, 24 Jul 2020< code.20200723.log - code.20200725.log >
--- Log opened Fri Jul 24 00:00:45 2020
00:59 Kindamoody is now known as Kindamoody[zZz]
02:04 Degi [Degi@Nightstar-7tin16.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
02:16 Degi [Degi@Nightstar-snvmjh.dyn.telefonica.de] has joined #code
02:42 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
03:56 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [[NS] Quit: Leaving]
04:15 catalys11 is now known as catalyst
04:30 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
04:30 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
07:35 Vorntastic [uid293981@Nightstar-ks9.9ff.184.192.IP] has joined #code
07:35 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
09:42 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
09:50 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
10:17 Kindamoody[zZz] is now known as Kindamoody
10:47
<&[R]>
So I'm trying to get back into C with a small project, but I'm having a hell of a time figguring out why I can't link it
10:48
<&[R]>
$ gcc -o ixp /usr/lib/libixp.a ixpsrv.c 2>&1 | ncat termbin.com 9999
10:48
<&[R]>
https://termbin.com/fcvp
10:48
<&[R]>
$ objdump -t /usr/lib/libixp.a | grep -o 'ixp_.*' | sort -u | ncat termbin.com 9999
10:48
<&[R]>
https://termbin.com/9gas
10:48
<&[R]>
$ objdump -t /usr/lib/libixp.a | ncat termbin.com 9999
10:48
<&[R]>
https://termbin.com/2wis
10:49
<&[R]>
AFAICT all of those /are/ in libixp.a, but gcc's ld can't find them?
11:04
<&[R]>
nm, got it!
11:06
<~Vorntastic>
Now tell us what happened or you will be denvercoder9
11:08
<&[R]>
Apparently argument order is important, and make won't correctly order things by default
11:09
<~Vorntastic>
Lame
11:10
<&[R]>
cc -c -o ixpsrv.o ixpsrv.c
11:10
<&[R]>
cc -o ixp ixpsrv.o -lixp -no-pie
11:10
<&[R]>
Those are the current commands being used
11:58 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [[NS] Quit: Leaving]
12:24 macdjord [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
12:24 mode/#code [+o macdjord] by ChanServ
12:27 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
13:43 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [[NS] Quit: -a- Connection Timed Out]
13:43 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
14:03 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
14:08 catalyst_ [catalyst@Nightstar-tgn6t2.dab.02.net] has joined #code
14:09 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Ping timeout: 121 seconds]
15:11 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:11 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:10 Kindamoody is now known as Kindamoody|afk
16:51 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
17:34 catalyst_ [catalyst@Nightstar-tgn6t2.dab.02.net] has quit [Ping timeout: 121 seconds]
17:34 catalyst_ [catalyst@Nightstar-08o229.dab.02.net] has joined #code
17:56 Vorntastic [uid293981@Nightstar-ks9.9ff.184.192.IP] has quit [[NS] Quit: Connection closed for inactivity]
19:34 catalyst_ [catalyst@Nightstar-08o229.dab.02.net] has quit [[NS] Quit: -a- Connection Timed Out]
19:34 catalyst_ [catalyst@Nightstar-08o229.dab.02.net] has joined #code
20:09
<&McMartin>
Oh yeah, order is important because Linux has a flat namespace
20:10
<&McMartin>
One of the few places where Windows and Linux are different and Linux is the one with the brain damage -_-
20:10
<&McMartin>
(Order is often important anyway just to resolve within a module what to do if multiple third-party libraries have symbol conflicts, but two-level namespaces make almost all of that go away)
20:57
< Yossarian>
argument order to cc and gcc?
21:00
< Yossarian>
I have a headache so I don't want to think about it too hard but I've seen neat ways to parse arguments passed to main
21:00
< Yossarian>
just gotta find the NSAID
21:01
<&[R]>
https://github.com/0intro/libixp/blob/master/include/ixp_local.h#L16
21:01
<&[R]>
(RE: parsing CLI args)
21:07 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
21:07 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
21:38 Kindamoody|afk is now known as Kindamoody
21:51
<&McMartin>
Yossarian: Yeah, -l arguments are such that you only search for symbols from later in the list.
21:52
< Yossarian>
oh in the linking process if it doesn't find the appropriate symbol
22:47 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
22:48 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
23:43 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
--- Log closed Sat Jul 25 00:00:47 2020
code logs -> 2020 -> Fri, 24 Jul 2020< code.20200723.log - code.20200725.log >

[ Latest log file ]