Skip to contentSkip to conversation

Are xen.git/tools/pkg-config/*.pc used anywere/working ?

DISCUSSION Anthony PERARD 3 participants 5 messages Jan 21, 2019 – Feb 21, 2019

lore
Share & tools
lore
#0 lore raw

Hi,

I've been trying to use the pkg-config files generated in tools/pkg-config/ when building QEMU, but those files only contains "-Wl,-rpath-link" and "-l" options. At link times, the linker just doesn't find the *.so.

Are those *.pc actually used anywhere, and working for someone? QEMU certainly can't use them. (The one that end-up been installed on the system works fine.)

I think that the file generated in tools/pkg-config/*.pc should also have the -L options. To me, -rpath-link is only useful for the dependency of a .so (e.g. xencall been linked against xentoollog, but qemu doesn't need to link against it).

Cheers,

Signature · 6 lines
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw
Quoted 7 lines · Anthony PERARD

Hi,

I've been trying to use the pkg-config files generated in tools/pkg-config/ when building QEMU, but those files only contains "-Wl,-rpath-link" and "-l" options. At link times, the linker just doesn't find the *.so.

Quoted 8 lines

Are those *.pc actually used anywhere, and working for someone? QEMU certainly can't use them. (The one that end-up been installed on the system works fine.)

I think that the file generated in tools/pkg-config/*.pc should also have the -L options. To me, -rpath-link is only useful for the dependency of a .so (e.g. xencall been linked against xentoollog, but qemu doesn't need to link against it).

Good point.

Juergen? Presumably you had those files working when you wrote those patches?

Wei.

Quoted 5 lines

Cheers,

Signature · 1 line
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 17 lines · Wei Liu
Quoted 7 lines · Anthony PERARD

Hi,

I've been trying to use the pkg-config files generated in tools/pkg-config/ when building QEMU, but those files only contains "-Wl,-rpath-link" and "-l" options. At link times, the linker just doesn't find the *.so.

Quoted 8 lines

Are those *.pc actually used anywhere, and working for someone? QEMU certainly can't use them. (The one that end-up been installed on the system works fine.)

I think that the file generated in tools/pkg-config/*.pc should also have the -L options. To me, -rpath-link is only useful for the dependency of a .so (e.g. xencall been linked against xentoollog, but qemu doesn't need to link against it).

Quoted 4 lines

Good point.

Juergen? Presumably you had those files working when you wrote those patches?

I think they did.

Maybe I was fooled somehow? But AFAIR I did some iterations until they worked for me.

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 20 lines · Juergen Gross
Quoted 19 lines · Wei Liu
Quoted 7 lines · Anthony PERARD

Hi,

I've been trying to use the pkg-config files generated in tools/pkg-config/ when building QEMU, but those files only contains "-Wl,-rpath-link" and "-l" options. At link times, the linker just doesn't find the *.so.

Quoted 8 lines

Are those *.pc actually used anywhere, and working for someone? QEMU certainly can't use them. (The one that end-up been installed on the system works fine.)

I think that the file generated in tools/pkg-config/*.pc should also have the -L options. To me, -rpath-link is only useful for the dependency of a .so (e.g. xencall been linked against xentoollog, but qemu doesn't need to link against it).

Good point.

Quoted 7 lines
Quoted 2 lines

Juergen? Presumably you had those files working when you wrote those patches?

I think they did.

Maybe I was fooled somehow? But AFAIR I did some iterations until they worked for me.

Oh, I have just found an old patch lying around adding the "-L" option to the local pkg-config files, as qemu needs those for building... :-)

I'll post it.

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw
Quoted 26 lines · Juergen Gross
Quoted 25 lines · Juergen Gross
Quoted 17 lines · Wei Liu
Quoted 7 lines · Anthony PERARD

Hi,

I've been trying to use the pkg-config files generated in tools/pkg-config/ when building QEMU, but those files only contains "-Wl,-rpath-link" and "-l" options. At link times, the linker just doesn't find the *.so.

Quoted 8 lines

Are those *.pc actually used anywhere, and working for someone? QEMU certainly can't use them. (The one that end-up been installed on the system works fine.)

I think that the file generated in tools/pkg-config/*.pc should also have the -L options. To me, -rpath-link is only useful for the dependency of a .so (e.g. xencall been linked against xentoollog, but qemu doesn't need to link against it).

Quoted 4 lines

Good point.

Juergen? Presumably you had those files working when you wrote those patches?

I think they did.

Quoted 7 lines
Quoted 2 lines

Maybe I was fooled somehow? But AFAIR I did some iterations until they worked for me.

Oh, I have just found an old patch lying around adding the "-L" option to the local pkg-config files, as qemu needs those for building... :-)

I'll post it.

Nice. :-)

Wei.

Quoted 9 lines

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel