Opened 9 months ago

Last modified 4 months ago

#69354 new defect

Macports on BSD compiles libsqlite3400.so, but looks to link against libsqlite3.40.0.so

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: base Version: 2.9.1
Keywords: openbsd Cc: catap (Kirill A. Korinsky)
Port:

Description

For some reason sqlite3 library is built as libsqlite3400.so, and then linking fails, expectedly.

  1. S. To reproduce, use gmake to build, make will not work at all.

Change History (6)

comment:1 Changed 9 months ago by catap (Kirill A. Korinsky)

Frankly speaking I really doubt that MacPorts can be used on anything else than macOS.

Some parts can work. But majority won't.

comment:2 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

There are users who use MacPorts on Linux. If someone wants to fix this problem, go ahead. Sounds like it could be a bug in the SQLite build system though. Attach a log file showing the build failure if you want any help with it.

comment:3 in reply to:  1 Changed 9 months ago by barracuda156

Replying to catap:

Frankly speaking I really doubt that MacPorts can be used on anything else than macOS.

Some parts can work. But majority won't.

At the moment there is no question of having everything in ports working on BSD, of course it won’t, at least without significant effort (and no one has time for that anyway), but everything does not work on any given macOS version either :)

But given that numerous ports claim platforms freebsd and linux, Macports base itself should work. (And why shouldn’t it after all?)

comment:4 in reply to:  2 Changed 9 months ago by barracuda156

Replying to ryandesign:

There are users who use MacPorts on Linux. If someone wants to fix this problem, go ahead. Sounds like it could be a bug in the SQLite build system though. Attach a log file showing the build failure if you want any help with it.

I will, I need to find some reasonable way to make with system interact with outside world. There is no browser at the moment.

comment:5 Changed 4 months ago by RJVB (René Bertin)

What's the general form for versioned shared libraries on *BSD (or OpenBSD in particular)?

My Linux port:sqlite3 (@3.41.0) installs libsqlite3.so.0.8.6, with symlink libsqlite3.so.0 as the SONAME.

Porting a port to a different platform always requires checking for Mac-specific tweaks in the Portfile and any patchfiles.

comment:6 Changed 4 months ago by barracuda156

At least FreeBSD installs these:

%%NO_TEA%%%%STATIC%%lib/libsqlite3.a
%%NO_TEA%%lib/libsqlite3.so
%%NO_TEA%%lib/libsqlite3.so.0
%%NO_TEA%%lib/libsqlite3.so.0.8.6

https://github.com/freebsd/freebsd-ports/blob/f401c51108a4c49b34fa3d8d0ab4acb5370814b8/databases/sqlite3/pkg-plist

I cannot see online the same info for OpenBSD, need to check.

Note: See TracTickets for help on using tickets.