[Bug 1032639] Re: can not link against libxml2

2013-09-14 Thread Dmitrijs Ledkovs
This is an intentional toolchain change, which brings significant
benefits and features to Ubuntu. Similar changes are adopted by other
distributions such as Debian and Fedora. Here are further details:

https://wiki.debian.org/ToolChain/DSOLinking

http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1032639

Title:
  can not link against libxml2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/1032639/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1032639] Re: can not link against libxml2

2013-09-13 Thread whitis
This unacceptable change in the linker has the potential to break many 
packages.   Especially when:
cc=gcc $(include) $(libs) 
prog1: prog1.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1032639

Title:
  can not link against libxml2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/1032639/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1032639] Re: can not link against libxml2

2012-09-07 Thread marc...@gmail.com
I had the same problem when compiling libxenserver-6.0.0-1-src. The
solution was the same as above, i.e. changing the line 65 of the
Makefile like this:

$(CC) $(LDFLAGS) -o $@ $< -L . -lxenserver

becomes:

$(CC) -o $@ $< -L . -lxenserver $(LDFLAGS)

Then the compilation worked just fine.

Diff:
---
@@ -62,7 +62,7 @@
$(AR) rcs libxenserver.a $^
 
 $(TEST_PROGRAMS): test/%: test/%.o libxenserver.so
-   $(CC) $(LDFLAGS) -o $@ $< -L . -lxenserver
+   $(CC) -o $@ $< -L . -lxenserver $(LDFLAGS)
 
 
 .PHONY: install
---

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1032639

Title:
  can not link against libxml2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/1032639/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1032639] Re: can not link against libxml2

2012-08-03 Thread Jason Conti
Thanks for the bug report. With the changes to the linker in 11.10+, you
must be sure when compiling to specify the -llibrary arguments after the
objects that reference them.

In the case above:

gcc -o main $(xml2-config --cflags --libs) main.o

should be:

gcc -o main main.o $(xml2-config --cflags --libs)

so that the -llibrary args end up at the end of the command line. Please see 
http://wiki.debian.org/ToolChain/DSOLinking
for an overview of the changes.

** Changed in: libxml2 (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1032639

Title:
  can not link against libxml2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/1032639/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1032639] Re: can not link against libxml2

2012-08-03 Thread Philipp Rosenberger
Ubuntu version is 12.04 as amd64 and as x86.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1032639

Title:
  can not link against libxml2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/1032639/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs